public class PlayerChunkMapEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private short[] |
changedBlocks |
private int |
changedSectionFilter |
private int |
changes |
private Chunk |
chunk |
private long |
lastUpdateInhabitedTime |
private java.lang.Runnable |
loadedRunnable |
private boolean |
loading |
private static org.apache.logging.log4j.Logger |
LOGGER |
private PlayerChunkMap |
playerChunkMap |
private java.util.List<EntityPlayerMP> |
players |
private ChunkPos |
pos |
private boolean |
sentToPlayers |
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() |
java.util.List<EntityPlayerMP> |
getWatchingPlayers() |
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) |
private void |
sendBlockEntity(TileEntity be) |
void |
sendPacket(Packet<?> packetIn) |
void |
sendToPlayer(EntityPlayerMP player) |
boolean |
sendToPlayers() |
void |
update() |
void |
updateChunkInhabitedTime() |
private static final org.apache.logging.log4j.Logger LOGGER
private final PlayerChunkMap playerChunkMap
private final java.util.List<EntityPlayerMP> players
private final ChunkPos pos
private short[] changedBlocks
@Nullable private Chunk chunk
private int changes
private int changedSectionFilter
private long lastUpdateInhabitedTime
private boolean sentToPlayers
private java.lang.Runnable loadedRunnable
private boolean loading
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()
private void sendBlockEntity(@Nullable TileEntity be)
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()
public java.util.List<EntityPlayerMP> getWatchingPlayers()