public class EntityTracker
extends java.lang.Object
Constructor and Description |
---|
EntityTracker(WorldServer theWorldIn) |
Modifier and Type | Method and Description |
---|---|
void |
addEntityToTracker(Entity entityIn,
int trackingRange,
int updateFrequency,
boolean sendVelocityUpdates) |
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 |
sendToAllTrackingEntity(Entity entityIn,
Packet<?> packetIn) |
void |
sendToTrackingAndSelf(Entity entityIn,
Packet<?> packetIn) |
void |
setViewDistance(int p_187252_1_) |
void |
trackEntity(Entity entityIn) |
void |
trackEntity(Entity entityIn,
int trackingRange,
int updateFrequency) |
void |
untrackEntity(Entity entityIn) |
static void |
updateServerPosition(Entity entityIn,
double x,
double y,
double z) |
void |
updateTrackedEntities() |
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 trackEntity(Entity entityIn)
public void trackEntity(Entity entityIn, int trackingRange, int updateFrequency)
public void addEntityToTracker(Entity entityIn, int trackingRange, int updateFrequency, boolean sendVelocityUpdates)
public void untrackEntity(Entity entityIn)
public void updateTrackedEntities()
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_)