Package api.world

Class ChunkTracker

java.lang.Object
api.world.ChunkTracker

public class ChunkTracker extends Object
  • Field Details

    • worldServer

      public final WorldServer worldServer
    • trackerEntriesMap

      public final LongHashMap trackerEntriesMap
  • Constructor Details

    • ChunkTracker

      public ChunkTracker(WorldServer world, int iChunkViewDistance)
  • Method Details

    • update

      public void update()
    • flagBlockForClientUpdate

      public void flagBlockForClientUpdate(int i, int j, int k)
    • addPlayer

      public void addPlayer(EntityPlayerMP player)
    • updateMovingPlayer

      public void updateMovingPlayer(EntityPlayerMP player)
    • removeChunkFromTracker

      public void removeChunkFromTracker(api.world.ChunkTrackerEntry entry)
    • filterChunksToBeSentToClient

      public void filterChunksToBeSentToClient(EntityPlayerMP player)
    • removePlayer

      public void removePlayer(EntityPlayerMP player)
      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)