public class EntityTrackerEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
playerEntitiesUpdated |
java.util.Set<EntityPlayerMP> |
trackingPlayers |
int |
updateCounter |
Constructor and Description |
---|
EntityTrackerEntry(Entity entityIn,
int rangeIn,
int maxRangeIn,
int updateFrequencyIn,
boolean sendVelocityUpdatesIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
Entity |
getTrackedEntity() |
int |
hashCode() |
boolean |
isVisibleTo(EntityPlayerMP playerMP) |
void |
removeFromTrackedPlayers(EntityPlayerMP playerMP) |
void |
removeTrackedPlayerSymmetric(EntityPlayerMP playerMP) |
void |
resetPlayerVisibility() |
void |
sendDestroyEntityPacketToTrackedPlayers() |
void |
sendPacketToTrackedPlayers(Packet<?> packetIn) |
void |
sendToTrackingAndSelf(Packet<?> packetIn) |
void |
setMaxRange(int maxRangeIn) |
void |
updatePlayerEntities(java.util.List<EntityPlayer> players) |
void |
updatePlayerEntity(EntityPlayerMP playerMP) |
void |
updatePlayerList(java.util.List<EntityPlayer> players) |
public int updateCounter
public boolean playerEntitiesUpdated
public final java.util.Set<EntityPlayerMP> trackingPlayers
public EntityTrackerEntry(Entity entityIn, int rangeIn, int maxRangeIn, int updateFrequencyIn, boolean sendVelocityUpdatesIn)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void updatePlayerList(java.util.List<EntityPlayer> players)
public void sendPacketToTrackedPlayers(Packet<?> packetIn)
public void sendToTrackingAndSelf(Packet<?> packetIn)
public void sendDestroyEntityPacketToTrackedPlayers()
public void removeFromTrackedPlayers(EntityPlayerMP playerMP)
public void updatePlayerEntity(EntityPlayerMP playerMP)
public boolean isVisibleTo(EntityPlayerMP playerMP)
public void updatePlayerEntities(java.util.List<EntityPlayer> players)
public void removeTrackedPlayerSymmetric(EntityPlayerMP playerMP)
public Entity getTrackedEntity()
public void setMaxRange(int maxRangeIn)
public void resetPlayerVisibility()