public class PlayerChunkMap
extends java.lang.Object
Constructor and Description |
---|
PlayerChunkMap(WorldServer serverWorld) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(EntityPlayerMP player) |
boolean |
contains(int chunkX,
int chunkZ) |
void |
entryChanged(PlayerChunkMapEntry entry) |
java.util.Iterator<Chunk> |
getChunkIterator() |
PlayerChunkMapEntry |
getEntry(int x,
int z) |
static int |
getFurthestViewableBlock(int distance) |
WorldServer |
getWorldServer() |
boolean |
isPlayerWatchingChunk(EntityPlayerMP player,
int chunkX,
int chunkZ) |
void |
markBlockForUpdate(BlockPos pos) |
void |
removeEntry(PlayerChunkMapEntry entry) |
void |
removePlayer(EntityPlayerMP player) |
void |
setPlayerViewRadius(int radius) |
void |
tick() |
void |
updateMovingPlayer(EntityPlayerMP player) |
public PlayerChunkMap(WorldServer serverWorld)
public WorldServer getWorldServer()
public java.util.Iterator<Chunk> getChunkIterator()
public void tick()
public boolean contains(int chunkX, int chunkZ)
@Nullable public PlayerChunkMapEntry getEntry(int x, int z)
public void markBlockForUpdate(BlockPos pos)
public void addPlayer(EntityPlayerMP player)
public void removePlayer(EntityPlayerMP player)
public void updateMovingPlayer(EntityPlayerMP player)
public boolean isPlayerWatchingChunk(EntityPlayerMP player, int chunkX, int chunkZ)
public void setPlayerViewRadius(int radius)
public static int getFurthestViewableBlock(int distance)
public void entryChanged(PlayerChunkMapEntry entry)
public void removeEntry(PlayerChunkMapEntry entry)