Package api.world
Class ChunkTracker
java.lang.Object
api.world.ChunkTracker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(EntityPlayerMP player) voidvoidflagBlockForClientUpdate(int i, int j, int k) static intgetFurthestViewableBlock(int iChunkViewDistance) booleanisChunkBeingWatched(int iChunkX, int iChunkZ) booleanisChunkWatchedByPlayerAndSentToClient(EntityPlayerMP player, int iChunkX, int iChunkZ) voidremoveChunkFromTracker(api.world.ChunkTrackerEntry entry) voidremovePlayer(EntityPlayerMP player) Removes an EntityPlayerMP from the PlayerManager.voidupdate()voidupdateMovingPlayer(EntityPlayerMP player)
-
Field Details
-
worldServer
-
trackerEntriesMap
-
-
Constructor Details
-
ChunkTracker
-
-
Method Details
-
update
public void update() -
flagBlockForClientUpdate
public void flagBlockForClientUpdate(int i, int j, int k) -
addPlayer
-
updateMovingPlayer
-
removeChunkFromTracker
public void removeChunkFromTracker(api.world.ChunkTrackerEntry entry) -
filterChunksToBeSentToClient
-
removePlayer
Removes an EntityPlayerMP from the PlayerManager. -
isChunkWatchedByPlayerAndSentToClient
public boolean isChunkWatchedByPlayerAndSentToClient(EntityPlayerMP player, int iChunkX, int iChunkZ) -
getFurthestViewableBlock
public static int getFurthestViewableBlock(int iChunkViewDistance) -
isChunkBeingWatched
public boolean isChunkBeingWatched(int iChunkX, int iChunkZ)
-