Package net.minecraft.server.world
Class ThreadedAnvilChunkStorage.EntityTracker
java.lang.Object
net.minecraft.server.world.ThreadedAnvilChunkStorage.EntityTracker
- Enclosing class:
ThreadedAnvilChunkStorage
An entity tracker governs which players' clients can see an entity. Each
tracker corresponds to one entity in a server world and is mapped from the
entity's network ID.
- See Also:
- Mappings:
Namespace Name named net/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker
intermediary net/minecraft/class_3898$class_3208
official aqo$b
-
Field Summary
Modifier and TypeFieldDescription(package private) final Entity
(package private) final EntityTrackerEntry
private final Set
<PlayerAssociatedNetworkHandler> private final int
(package private) ChunkSectionPos
The chunk section position of the tracked entity, may be outdated as an entity ticks. -
Constructor Summary
ConstructorDescriptionEntityTracker
(Entity entity, int maxDistance, int tickInterval, boolean alwaysUpdateVelocity) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
adjustTrackingDistance
(int initialDistance) boolean
private int
int
hashCode()
void
sendToNearbyPlayers
(Packet<?> packet) void
sendToOtherNearbyPlayers
(Packet<?> packet) void
void
stopTracking
(ServerPlayerEntity player) void
updateTrackedStatus
(List<ServerPlayerEntity> players) Updates the tracked status of this tracker's entity for the given players.void
Updates the tracked status of this tracker's entity for theplayer
.
-
Field Details
-
entry
- Mappings:
Namespace Name Mixin selector named entry
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;entry:Lnet/minecraft/server/network/EntityTrackerEntry;
intermediary field_18246
Lnet/minecraft/class_3898$class_3208;field_18246:Lnet/minecraft/class_3231;
official b
Laqo$b;b:Lare;
-
entity
- Mappings:
Namespace Name Mixin selector named entity
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;entity:Lnet/minecraft/entity/Entity;
intermediary field_18247
Lnet/minecraft/class_3898$class_3208;field_18247:Lnet/minecraft/class_1297;
official c
Laqo$b;c:Lbsw;
-
maxDistance
private final int maxDistance- Mappings:
Namespace Name Mixin selector named maxDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;maxDistance:I
intermediary field_18248
Lnet/minecraft/class_3898$class_3208;field_18248:I
official d
Laqo$b;d:I
-
trackedSection
ChunkSectionPos trackedSectionThe chunk section position of the tracked entity, may be outdated as an entity ticks. This is used bytickEntityMovement()
to bypass unnecessary status updates before callingupdateTrackedStatus()
.- Mappings:
Namespace Name Mixin selector named trackedSection
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;trackedSection:Lnet/minecraft/util/math/ChunkSectionPos;
intermediary field_18249
Lnet/minecraft/class_3898$class_3208;field_18249:Lnet/minecraft/class_4076;
official e
Laqo$b;e:Lkb;
-
listeners
- Mappings:
Namespace Name Mixin selector named listeners
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;listeners:Ljava/util/Set;
intermediary field_18250
Lnet/minecraft/class_3898$class_3208;field_18250:Ljava/util/Set;
official f
Laqo$b;f:Ljava/util/Set;
-
-
Constructor Details
-
EntityTracker
public EntityTracker(Entity entity, int maxDistance, int tickInterval, boolean alwaysUpdateVelocity) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;<init>(Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;Lnet/minecraft/entity/Entity;IIZ)V
intermediary <init>
Lnet/minecraft/class_3898$class_3208;<init>(Lnet/minecraft/class_3898;Lnet/minecraft/class_1297;IIZ)V
official <init>
Laqo$b;<init>(Laqo;Lbsw;IIZ)V
-
-
Method Details
-
equals
- Overrides:
equals
in classObject
- Mappings:
Namespace Name Mixin selector named equals
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_3898$class_3208;equals(Ljava/lang/Object;)Z
official equals
Laqo$b;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode() -
sendToOtherNearbyPlayers
- Mappings:
Namespace Name Mixin selector named sendToOtherNearbyPlayers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;sendToOtherNearbyPlayers(Lnet/minecraft/network/packet/Packet;)V
intermediary method_18730
Lnet/minecraft/class_3898$class_3208;method_18730(Lnet/minecraft/class_2596;)V
official a
Laqo$b;a(Lzw;)V
-
sendToNearbyPlayers
- Mappings:
Namespace Name Mixin selector named sendToNearbyPlayers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;sendToNearbyPlayers(Lnet/minecraft/network/packet/Packet;)V
intermediary method_18734
Lnet/minecraft/class_3898$class_3208;method_18734(Lnet/minecraft/class_2596;)V
official b
Laqo$b;b(Lzw;)V
-
stopTracking
public void stopTracking()- Mappings:
Namespace Name Mixin selector named stopTracking
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;stopTracking()V
intermediary method_18728
Lnet/minecraft/class_3898$class_3208;method_18728()V
official a
Laqo$b;a()V
-
stopTracking
- Mappings:
Namespace Name Mixin selector named stopTracking
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;stopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18733
Lnet/minecraft/class_3898$class_3208;method_18733(Lnet/minecraft/class_3222;)V
official a
Laqo$b;a(Larg;)V
-
updateTrackedStatus
Updates the tracked status of this tracker's entity for theplayer
.If this tracker should be listened by the player, the player's tracking listener is added if it is not in the listeners; if this tracker should not be listened by the player, the player's tracking listener is removed if it is in the listeners.
- Mappings:
Namespace Name Mixin selector named updateTrackedStatus
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;updateTrackedStatus(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18736
Lnet/minecraft/class_3898$class_3208;method_18736(Lnet/minecraft/class_3222;)V
official b
Laqo$b;b(Larg;)V
-
adjustTrackingDistance
private int adjustTrackingDistance(int initialDistance) - Mappings:
Namespace Name Mixin selector named adjustTrackingDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;adjustTrackingDistance(I)I
intermediary method_27906
Lnet/minecraft/class_3898$class_3208;method_27906(I)I
official a
Laqo$b;a(I)I
-
getMaxTrackDistance
private int getMaxTrackDistance()- Mappings:
Namespace Name Mixin selector named getMaxTrackDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;getMaxTrackDistance()I
intermediary method_22844
Lnet/minecraft/class_3898$class_3208;method_22844()I
official b
Laqo$b;b()I
-
updateTrackedStatus
Updates the tracked status of this tracker's entity for the given players.- See Also:
- Mappings:
Namespace Name Mixin selector named updateTrackedStatus
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$EntityTracker;updateTrackedStatus(Ljava/util/List;)V
intermediary method_18729
Lnet/minecraft/class_3898$class_3208;method_18729(Ljava/util/List;)V
official a
Laqo$b;a(Ljava/util/List;)V
-