Package net.minecraft.world.server
Class ChunkManager.EntityTracker
- java.lang.Object
-
- net.minecraft.world.server.ChunkManager.EntityTracker
-
- Enclosing class:
- ChunkManager
class ChunkManager.EntityTracker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Entity
entity
private SectionPos
lastSectionPos
private int
range
private java.util.Set<ServerPlayerEntity>
seenBy
private TrackedEntity
serverEntity
-
Constructor Summary
Constructors Constructor Description EntityTracker(Entity p_i50468_2_, int p_i50468_3_, int p_i50468_4_, boolean p_i50468_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
broadcast(IPacket<?> p_219391_1_)
void
broadcastAndSend(IPacket<?> p_219392_1_)
void
broadcastRemoved()
boolean
equals(java.lang.Object p_equals_1_)
private int
getEffectiveRange()
int
hashCode()
void
removePlayer(ServerPlayerEntity p_219399_1_)
private int
scaledRange(int p_241091_1_)
void
updatePlayer(ServerPlayerEntity p_219400_1_)
void
updatePlayers(java.util.List<ServerPlayerEntity> p_219397_1_)
-
-
-
Field Detail
-
serverEntity
private final TrackedEntity serverEntity
-
entity
private final Entity entity
-
range
private final int range
-
lastSectionPos
private SectionPos lastSectionPos
-
seenBy
private final java.util.Set<ServerPlayerEntity> seenBy
-
-
Constructor Detail
-
EntityTracker
public EntityTracker(Entity p_i50468_2_, int p_i50468_3_, int p_i50468_4_, boolean p_i50468_5_)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
broadcast
public void broadcast(IPacket<?> p_219391_1_)
-
broadcastAndSend
public void broadcastAndSend(IPacket<?> p_219392_1_)
-
broadcastRemoved
public void broadcastRemoved()
-
removePlayer
public void removePlayer(ServerPlayerEntity p_219399_1_)
-
updatePlayer
public void updatePlayer(ServerPlayerEntity p_219400_1_)
-
scaledRange
private int scaledRange(int p_241091_1_)
-
getEffectiveRange
private int getEffectiveRange()
-
updatePlayers
public void updatePlayers(java.util.List<ServerPlayerEntity> p_219397_1_)
-
-