Package net.minecraft.server.world
Class ServerChunkLoadingManager.EntityTracker
java.lang.Object
net.minecraft.server.world.ServerChunkLoadingManager.EntityTracker
- Enclosing class:
ServerChunkLoadingManager
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/ServerChunkLoadingManager$EntityTracker
intermediary net/minecraft/class_3898$class_3208
official arm$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/ServerChunkLoadingManager$EntityTracker;entry:Lnet/minecraft/server/network/EntityTrackerEntry;
intermediary field_18246
Lnet/minecraft/class_3898$class_3208;field_18246:Lnet/minecraft/class_3231;
official b
Larm$b;b:Lasf;
-
entity
- Mappings:
Namespace Name Mixin selector named entity
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;entity:Lnet/minecraft/entity/Entity;
intermediary field_18247
Lnet/minecraft/class_3898$class_3208;field_18247:Lnet/minecraft/class_1297;
official c
Larm$b;c:Lbvj;
-
maxDistance
private final int maxDistance- Mappings:
Namespace Name Mixin selector named maxDistance
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;maxDistance:I
intermediary field_18248
Lnet/minecraft/class_3898$class_3208;field_18248:I
official d
Larm$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/ServerChunkLoadingManager$EntityTracker;trackedSection:Lnet/minecraft/util/math/ChunkSectionPos;
intermediary field_18249
Lnet/minecraft/class_3898$class_3208;field_18249:Lnet/minecraft/class_4076;
official e
Larm$b;e:Lkj;
-
listeners
- Mappings:
Namespace Name Mixin selector named listeners
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;listeners:Ljava/util/Set;
intermediary field_18250
Lnet/minecraft/class_3898$class_3208;field_18250:Ljava/util/Set;
official f
Larm$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/ServerChunkLoadingManager$EntityTracker;<init>(Lnet/minecraft/server/world/ServerChunkLoadingManager;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>
Larm$b;<init>(Larm;Lbvj;IIZ)V
-
-
Method Details
-
equals
- Overrides:
equals
in classObject
- Mappings:
Namespace Name Mixin selector named equals
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_3898$class_3208;equals(Ljava/lang/Object;)Z
official equals
Larm$b;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode() -
sendToOtherNearbyPlayers
- Mappings:
Namespace Name Mixin selector named sendToOtherNearbyPlayers
Lnet/minecraft/server/world/ServerChunkLoadingManager$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
Larm$b;a(Laac;)V
-
sendToNearbyPlayers
- Mappings:
Namespace Name Mixin selector named sendToNearbyPlayers
Lnet/minecraft/server/world/ServerChunkLoadingManager$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
Larm$b;b(Laac;)V
-
stopTracking
public void stopTracking()- Mappings:
Namespace Name Mixin selector named stopTracking
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;stopTracking()V
intermediary method_18728
Lnet/minecraft/class_3898$class_3208;method_18728()V
official a
Larm$b;a()V
-
stopTracking
- Mappings:
Namespace Name Mixin selector named stopTracking
Lnet/minecraft/server/world/ServerChunkLoadingManager$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
Larm$b;a(Lasi;)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/ServerChunkLoadingManager$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
Larm$b;b(Lasi;)V
-
adjustTrackingDistance
private int adjustTrackingDistance(int initialDistance) - Mappings:
Namespace Name Mixin selector named adjustTrackingDistance
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;adjustTrackingDistance(I)I
intermediary method_27906
Lnet/minecraft/class_3898$class_3208;method_27906(I)I
official a
Larm$b;a(I)I
-
getMaxTrackDistance
private int getMaxTrackDistance()- Mappings:
Namespace Name Mixin selector named getMaxTrackDistance
Lnet/minecraft/server/world/ServerChunkLoadingManager$EntityTracker;getMaxTrackDistance()I
intermediary method_22844
Lnet/minecraft/class_3898$class_3208;method_22844()I
official b
Larm$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/ServerChunkLoadingManager$EntityTracker;updateTrackedStatus(Ljava/util/List;)V
intermediary method_18729
Lnet/minecraft/class_3898$class_3208;method_18729(Ljava/util/List;)V
official a
Larm$b;a(Ljava/util/List;)V
-