public class PlayerChunkMapEntry
extends java.lang.Object
Constructor and Description |
---|
PlayerChunkMapEntry(PlayerChunkMap mapIn,
int chunkX,
int chunkZ) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(EntityPlayerMP player) |
void |
blockChanged(int x,
int y,
int z) |
boolean |
containsPlayer(EntityPlayerMP player) |
Chunk |
getChunk() |
double |
getClosestPlayerDistance() |
ChunkPos |
getPos() |
boolean |
hasPlayerMatching(com.google.common.base.Predicate<EntityPlayerMP> predicate) |
boolean |
hasPlayerMatchingInRange(double range,
com.google.common.base.Predicate<EntityPlayerMP> predicate) |
boolean |
isSentToPlayers() |
boolean |
providePlayerChunk(boolean canGenerate) |
void |
removePlayer(EntityPlayerMP player) |
void |
sendPacket(Packet<?> packetIn) |
void |
sendToPlayer(EntityPlayerMP player) |
boolean |
sendToPlayers() |
void |
update() |
void |
updateChunkInhabitedTime() |
public PlayerChunkMapEntry(PlayerChunkMap mapIn, int chunkX, int chunkZ)
public ChunkPos getPos()
public void addPlayer(EntityPlayerMP player)
public void removePlayer(EntityPlayerMP player)
public boolean providePlayerChunk(boolean canGenerate)
public boolean sendToPlayers()
public void sendToPlayer(EntityPlayerMP player)
public void updateChunkInhabitedTime()
public void blockChanged(int x, int y, int z)
public void sendPacket(Packet<?> packetIn)
public void update()
public boolean containsPlayer(EntityPlayerMP player)
public boolean hasPlayerMatching(com.google.common.base.Predicate<EntityPlayerMP> predicate)
public boolean hasPlayerMatchingInRange(double range, com.google.common.base.Predicate<EntityPlayerMP> predicate)
public boolean isSentToPlayers()
@Nullable public Chunk getChunk()
public double getClosestPlayerDistance()