public class EntityTrackerEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
encodedPosX |
private long |
encodedPosY |
private long |
encodedPosZ |
private int |
encodedRotationPitch |
private int |
encodedRotationYaw |
private int |
lastHeadMotion |
private double |
lastTrackedEntityMotionX |
private double |
lastTrackedEntityMotionY |
private double |
lastTrackedEntityPosX |
private double |
lastTrackedEntityPosY |
private double |
lastTrackedEntityPosZ |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
maxRange |
private double |
motionZ |
private boolean |
onGround |
private java.util.List<Entity> |
passengers |
boolean |
playerEntitiesUpdated |
private int |
range |
private boolean |
ridingEntity |
private boolean |
sendVelocityUpdates |
private int |
ticksSinceLastForcedTeleport |
private Entity |
trackedEntity |
java.util.Set<EntityPlayerMP> |
trackingPlayers |
int |
updateCounter |
private boolean |
updatedPlayerVisibility |
private int |
updateFrequency |
Constructor and Description |
---|
EntityTrackerEntry(Entity entityIn,
int rangeIn,
int maxRangeIn,
int updateFrequencyIn,
boolean sendVelocityUpdatesIn) |
Modifier and Type | Method and Description |
---|---|
private Packet<?> |
createSpawnPacket() |
boolean |
equals(java.lang.Object p_equals_1_) |
Entity |
getTrackedEntity() |
int |
hashCode() |
private boolean |
isPlayerWatchingThisChunk(EntityPlayerMP playerMP) |
boolean |
isVisibleTo(EntityPlayerMP playerMP) |
void |
removeFromTrackedPlayers(EntityPlayerMP playerMP) |
void |
removeTrackedPlayerSymmetric(EntityPlayerMP playerMP) |
void |
resetPlayerVisibility() |
void |
sendDestroyEntityPacketToTrackedPlayers() |
private void |
sendMetadata() |
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) |
private static final org.apache.logging.log4j.Logger LOGGER
private final Entity trackedEntity
private final int range
private int maxRange
private final int updateFrequency
private long encodedPosX
private long encodedPosY
private long encodedPosZ
private int encodedRotationYaw
private int encodedRotationPitch
private int lastHeadMotion
private double lastTrackedEntityMotionX
private double lastTrackedEntityMotionY
private double motionZ
public int updateCounter
private double lastTrackedEntityPosX
private double lastTrackedEntityPosY
private double lastTrackedEntityPosZ
private boolean updatedPlayerVisibility
private final boolean sendVelocityUpdates
private int ticksSinceLastForcedTeleport
private java.util.List<Entity> passengers
private boolean ridingEntity
private boolean onGround
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)
private void sendMetadata()
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)
private boolean isPlayerWatchingThisChunk(EntityPlayerMP playerMP)
public void updatePlayerEntities(java.util.List<EntityPlayer> players)
private Packet<?> createSpawnPacket()
public void removeTrackedPlayerSymmetric(EntityPlayerMP playerMP)
public Entity getTrackedEntity()
public void setMaxRange(int maxRangeIn)
public void resetPlayerVisibility()