YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.EntityTrackerEntry Class Reference

Public Member Functions

 EntityTrackerEntry (Entity par1Entity, int par2, int par3, boolean par4)
 
boolean equals (Object par1Obj)
 
int hashCode ()
 
void sendLocationToAllClients (List par1List)
 
void sendPacketToAllTrackingPlayers (Packet par1Packet)
 
void sendPacketToAllAssociatedPlayers (Packet par1Packet)
 
void informAllAssociatedPlayersOfItemDestruction ()
 
void removeFromWatchingList (EntityPlayerMP par1EntityPlayerMP)
 
void tryStartWachingThis (EntityPlayerMP par1EntityPlayerMP)
 
void sendEventsToPlayers (List par1List)
 
void removePlayerFromTracker (EntityPlayerMP par1EntityPlayerMP)
 

Public Attributes

Entity myEntity
 
int blocksDistanceThreshold
 
int updateFrequency
 
int lastScaledXPosition
 
int lastScaledYPosition
 
int lastScaledZPosition
 
int lastYaw
 
int lastPitch
 
int lastHeadMotion
 
double motionX
 
double motionY
 
double motionZ
 
int ticks = 0
 
boolean playerEntitiesUpdated = false
 
Set trackingPlayers = new HashSet()
 

Constructor & Destructor Documentation

net.minecraft.entity.EntityTrackerEntry.EntityTrackerEntry ( Entity  par1Entity,
int  par2,
int  par3,
boolean  par4 
)

Member Function Documentation

boolean net.minecraft.entity.EntityTrackerEntry.equals ( Object  par1Obj)
int net.minecraft.entity.EntityTrackerEntry.hashCode ( )
void net.minecraft.entity.EntityTrackerEntry.informAllAssociatedPlayersOfItemDestruction ( )
void net.minecraft.entity.EntityTrackerEntry.removeFromWatchingList ( EntityPlayerMP  par1EntityPlayerMP)
void net.minecraft.entity.EntityTrackerEntry.removePlayerFromTracker ( EntityPlayerMP  par1EntityPlayerMP)
void net.minecraft.entity.EntityTrackerEntry.sendEventsToPlayers ( List  par1List)
void net.minecraft.entity.EntityTrackerEntry.sendLocationToAllClients ( List  par1List)

also sends velocity, rotation, and riding info.

void net.minecraft.entity.EntityTrackerEntry.sendPacketToAllAssociatedPlayers ( Packet  par1Packet)

if this is a player, then it recieves the message also

void net.minecraft.entity.EntityTrackerEntry.sendPacketToAllTrackingPlayers ( Packet  par1Packet)

if this is a player, then it is not informed

void net.minecraft.entity.EntityTrackerEntry.tryStartWachingThis ( EntityPlayerMP  par1EntityPlayerMP)

if the player is more than the distance threshold (typically 64) then the player is removed instead

Member Data Documentation

int net.minecraft.entity.EntityTrackerEntry.blocksDistanceThreshold
int net.minecraft.entity.EntityTrackerEntry.lastHeadMotion
int net.minecraft.entity.EntityTrackerEntry.lastPitch
int net.minecraft.entity.EntityTrackerEntry.lastScaledXPosition
int net.minecraft.entity.EntityTrackerEntry.lastScaledYPosition
int net.minecraft.entity.EntityTrackerEntry.lastScaledZPosition
int net.minecraft.entity.EntityTrackerEntry.lastYaw
double net.minecraft.entity.EntityTrackerEntry.motionX
double net.minecraft.entity.EntityTrackerEntry.motionY
double net.minecraft.entity.EntityTrackerEntry.motionZ
Entity net.minecraft.entity.EntityTrackerEntry.myEntity
boolean net.minecraft.entity.EntityTrackerEntry.playerEntitiesUpdated = false
int net.minecraft.entity.EntityTrackerEntry.ticks = 0
Set net.minecraft.entity.EntityTrackerEntry.trackingPlayers = new HashSet()

Holds references to all the players that are currently receiving position updates for this entity.

int net.minecraft.entity.EntityTrackerEntry.updateFrequency

check for sync when ticks % updateFrequency==0


The documentation for this class was generated from the following file: