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(<any> predicate) |
boolean |
hasPlayerMatchingInRange(double range,
<any> predicate) |
boolean |
isSentToPlayers() |
boolean |
providePlayerChunk(boolean canGenerate)
Provide the chunk at the player's location.
|
void |
removePlayer(EntityPlayerMP player) |
void |
sendNearbySpecialEntities(EntityPlayerMP player)
Send packets to player for:
- nearby tile entities
- nearby entities that are leashed
- nearby entities with
|
void |
sendPacket(Packet<?> packetIn) |
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 sendNearbySpecialEntities(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(<any> predicate)
public boolean hasPlayerMatchingInRange(double range, <any> predicate)
public boolean isSentToPlayers()
public Chunk getChunk()
public double getClosestPlayerDistance()