class PlayerManager.PlayerInstance
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ChunkCoordIntPair |
chunkCoords |
private int |
flagsYAreasToUpdate |
private short[] |
locationOfBlockChange |
private int |
numBlocksToUpdate |
private java.util.List<EntityPlayerMP> |
playersWatchingChunk |
private long |
previousWorldTime |
Constructor and Description |
---|
PlayerInstance(int chunkX,
int chunkZ) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(EntityPlayerMP player) |
void |
flagChunkForUpdate(int x,
int y,
int z) |
private void |
increaseInhabitedTime(Chunk theChunk) |
void |
onUpdate() |
void |
processChunk() |
void |
removePlayer(EntityPlayerMP player) |
private void |
sendTileToAllPlayersWatchingChunk(TileEntity theTileEntity) |
void |
sendToAllPlayersWatchingChunk(Packet thePacket) |
private final java.util.List<EntityPlayerMP> playersWatchingChunk
private final ChunkCoordIntPair chunkCoords
private short[] locationOfBlockChange
private int numBlocksToUpdate
private int flagsYAreasToUpdate
private long previousWorldTime
public void addPlayer(EntityPlayerMP player)
public void removePlayer(EntityPlayerMP player)
public void processChunk()
private void increaseInhabitedTime(Chunk theChunk)
public void flagChunkForUpdate(int x, int y, int z)
public void sendToAllPlayersWatchingChunk(Packet thePacket)
public void onUpdate()
private void sendTileToAllPlayersWatchingChunk(TileEntity theTileEntity)