Package net.minecraft.src
Class EntityTrackerEntry
java.lang.Object
net.minecraft.src.EntityTrackerEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintintintintintdoubledoubledoublebooleanintHolds references to all the players that are currently receiving position updates for this entity.intcheck for sync when ticks % updateFrequency==0 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidvoidremoveFromWatchingList(EntityPlayerMP par1EntityPlayerMP) voidremovePlayerFromTracker(EntityPlayerMP par1EntityPlayerMP) voidsendEventsToPlayers(List par1List) voidsendLocationToAllClients(List par1List) also sends velocity, rotation, and riding info.voidsendPacketToAllAssociatedPlayers(Packet par1Packet) if this is a player, then it recieves the message alsovoidsendPacketToAllTrackingPlayers(Packet par1Packet) if this is a player, then it is not informedvoidtryStartWachingThis(EntityPlayerMP par1EntityPlayerMP) if the player is more than the distance threshold (typically 64) then the player is removed instead
-
Field Details
-
myEntity
-
blocksDistanceThreshold
public int blocksDistanceThreshold -
updateFrequency
public int updateFrequencycheck for sync when ticks % updateFrequency==0 -
lastScaledXPosition
public int lastScaledXPosition -
lastScaledYPosition
public int lastScaledYPosition -
lastScaledZPosition
public int lastScaledZPosition -
lastYaw
public int lastYaw -
lastPitch
public int lastPitch -
lastHeadMotion
public int lastHeadMotion -
motionX
public double motionX -
motionY
public double motionY -
motionZ
public double motionZ -
ticks
public int ticks -
playerEntitiesUpdated
public boolean playerEntitiesUpdated -
trackingPlayers
Holds references to all the players that are currently receiving position updates for this entity.
-
-
Constructor Details
-
EntityTrackerEntry
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
sendLocationToAllClients
also sends velocity, rotation, and riding info. -
sendPacketToAllTrackingPlayers
if this is a player, then it is not informed -
sendPacketToAllAssociatedPlayers
if this is a player, then it recieves the message also -
informAllAssociatedPlayersOfItemDestruction
public void informAllAssociatedPlayersOfItemDestruction() -
removeFromWatchingList
-
tryStartWachingThis
if the player is more than the distance threshold (typically 64) then the player is removed instead -
sendEventsToPlayers
-
removePlayerFromTracker
-