Figured it out. Now my TE only needs to send Packets when a Player loads the containing chunk or when the TE changes (for example its orientation).
IChunkLoader.java
ChunkLoad_ChunkWatchEvent.java
and my TileEntity (which implements IChunkLoader) has a Method onChunkLoaded(Player)
Hi,
How can i let my TileEntity send Packets (Server => Player) everytime a Player loads the chunk that contains the TE?
I'm looking for a function like onChunkLoaded(), where i can put something like PacketDispatcher.sentToPlayer(myPacket, playerWhoLoadedTheChunk).
Does anyone have an idea how to do this?
thx