class ThreadedAnvilChunkStorage.EntityTracker extends Object
Modifier and Type | Field and Description |
---|---|
private Entity |
entity |
private EntityTrackerEntry |
entry |
private ChunkSectionPos |
lastCameraPosition |
private int |
maxDistance |
private Set<ServerPlayerEntity> |
playersTracking |
Constructor and Description |
---|
EntityTracker(Entity maxDistance,
int tickInterval,
int int2,
boolean bool) |
Modifier and Type | Method and Description |
---|---|
private int |
adjustTrackingDistance(int initialDistance) |
boolean |
equals(Object o) |
private int |
getMaxTrackDistance() |
int |
hashCode() |
void |
sendToNearbyPlayers(Packet<?> packet) |
void |
sendToOtherNearbyPlayers(Packet<?> packet) |
void |
stopTracking() |
void |
stopTracking(ServerPlayerEntity serverPlayerEntity) |
void |
updateCameraPosition(List<ServerPlayerEntity> players) |
void |
updateCameraPosition(ServerPlayerEntity player) |
private final EntityTrackerEntry entry
private final Entity entity
private final int maxDistance
private ChunkSectionPos lastCameraPosition
private final Set<ServerPlayerEntity> playersTracking
public EntityTracker(Entity maxDistance, int tickInterval, int int2, boolean bool)
public void sendToOtherNearbyPlayers(Packet<?> packet)
public void sendToNearbyPlayers(Packet<?> packet)
public void stopTracking()
public void stopTracking(ServerPlayerEntity serverPlayerEntity)
public void updateCameraPosition(ServerPlayerEntity player)
private int adjustTrackingDistance(int initialDistance)
private int getMaxTrackDistance()
public void updateCameraPosition(List<ServerPlayerEntity> players)