public class EntityTracker
extends java.lang.Object
Constructor and Description |
---|
EntityTracker(WorldServer theWorldIn) |
Modifier and Type | Method and Description |
---|---|
static long |
getPositionLong(double value) |
java.util.Set<? extends EntityPlayer> |
getTrackingPlayers(Entity entity)
Get all players tracking the given Entity.
|
void |
removePlayerFromTrackers(EntityPlayerMP player) |
void |
sendLeashedEntitiesInChunk(EntityPlayerMP player,
Chunk chunkIn) |
void |
sendToTracking(Entity entityIn,
Packet<?> packetIn) |
void |
sendToTrackingAndSelf(Entity entityIn,
Packet<?> packetIn) |
void |
setViewDistance(int p_187252_1_) |
void |
tick() |
void |
track(Entity entityIn) |
void |
track(Entity entityIn,
int trackingRange,
int updateFrequency) |
void |
track(Entity entityIn,
int trackingRange,
int updateFrequency,
boolean sendVelocityUpdates) |
void |
untrack(Entity entityIn) |
static void |
updateServerPosition(Entity entityIn,
double x,
double y,
double z) |
void |
updateVisibility(EntityPlayerMP player) |
public EntityTracker(WorldServer theWorldIn)
public static long getPositionLong(double value)
public static void updateServerPosition(Entity entityIn, double x, double y, double z)
public void track(Entity entityIn)
public void track(Entity entityIn, int trackingRange, int updateFrequency)
public void track(Entity entityIn, int trackingRange, int updateFrequency, boolean sendVelocityUpdates)
public void untrack(Entity entityIn)
public void tick()
public void updateVisibility(EntityPlayerMP player)
public java.util.Set<? extends EntityPlayer> getTrackingPlayers(Entity entity)
entity
- the Entitypublic void removePlayerFromTrackers(EntityPlayerMP player)
public void sendLeashedEntitiesInChunk(EntityPlayerMP player, Chunk chunkIn)
public void setViewDistance(int p_187252_1_)