public class EntityTrackerEntry extends Object
Modifier and Type | Field and Description |
---|---|
int |
blocksDistanceThreshold |
int |
lastHeadMotion |
int |
lastPitch |
int |
lastScaledXPosition |
int |
lastScaledYPosition |
int |
lastScaledZPosition |
int |
lastYaw |
double |
motionX |
double |
motionY |
double |
motionZ |
Entity |
myEntity |
boolean |
playerEntitiesUpdated |
int |
ticks |
Set |
trackingPlayers
Holds references to all the players that are currently receiving position updates for this entity.
|
int |
updateFrequency
check for sync when ticks % updateFrequency==0
|
Constructor and Description |
---|
EntityTrackerEntry(Entity par1Entity,
int par2,
int par3,
boolean par4) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object par1Obj) |
int |
hashCode() |
void |
informAllAssociatedPlayersOfItemDestruction() |
void |
removeFromWatchingList(EntityPlayerMP par1EntityPlayerMP) |
void |
removePlayerFromTracker(EntityPlayerMP par1EntityPlayerMP) |
void |
sendEventsToPlayers(List par1List) |
void |
sendLocationToAllClients(List par1List)
also sends velocity, rotation, and riding info.
|
void |
sendPacketToAllAssociatedPlayers(Packet par1Packet)
if this is a player, then it recieves the message also
|
void |
sendPacketToAllTrackingPlayers(Packet par1Packet)
if this is a player, then it is not informed
|
void |
tryStartWachingThis(EntityPlayerMP par1EntityPlayerMP)
if the player is more than the distance threshold (typically 64) then the player is removed instead
|
public Entity myEntity
public int blocksDistanceThreshold
public int updateFrequency
public int lastScaledXPosition
public int lastScaledYPosition
public int lastScaledZPosition
public int lastYaw
public int lastPitch
public int lastHeadMotion
public double motionX
public double motionY
public double motionZ
public int ticks
public boolean playerEntitiesUpdated
public Set trackingPlayers
public EntityTrackerEntry(Entity par1Entity, int par2, int par3, boolean par4)
public void sendLocationToAllClients(List par1List)
public void sendPacketToAllTrackingPlayers(Packet par1Packet)
public void sendPacketToAllAssociatedPlayers(Packet par1Packet)
public void informAllAssociatedPlayersOfItemDestruction()
public void removeFromWatchingList(EntityPlayerMP par1EntityPlayerMP)
public void tryStartWachingThis(EntityPlayerMP par1EntityPlayerMP)
public void sendEventsToPlayers(List par1List)
public void removePlayerFromTracker(EntityPlayerMP par1EntityPlayerMP)