Class ServerChunkLoadingManager.EntityTracker

java.lang.Object
net.minecraft.server.world.ServerChunkLoadingManager.EntityTracker
Enclosing class:
ServerChunkLoadingManager

private class ServerChunkLoadingManager.EntityTracker extends Object
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 apt$b
  • Field Details

    • entry

      final EntityTrackerEntry 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 Lapt$b;b:Laql;
    • entity

      final Entity 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 Lapt$b;c:Lbsh;
    • 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 Lapt$b;d:I
    • trackedSection

      ChunkSectionPos trackedSection
      The chunk section position of the tracked entity, may be outdated as an entity ticks. This is used by tickEntityMovement() to bypass unnecessary status updates before calling updateTrackedStatus().
      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 Lapt$b;e:Lkc;
    • listeners

      private final Set<PlayerAssociatedNetworkHandler> 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 Lapt$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> Lapt$b;<init>(Lapt;Lbsh;IIZ)V
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      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 Lapt$b;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • sendToOtherNearbyPlayers

      public void sendToOtherNearbyPlayers(Packet<?> packet)
      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 Lapt$b;a(Lzb;)V
    • sendToNearbyPlayers

      public void sendToNearbyPlayers(Packet<?> packet)
      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 Lapt$b;b(Lzb;)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 Lapt$b;a()V
    • stopTracking

      public void stopTracking(ServerPlayerEntity player)
      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 Lapt$b;a(Laqn;)V
    • updateTrackedStatus

      public void updateTrackedStatus(ServerPlayerEntity player)
      Updates the tracked status of this tracker's entity for the player.

      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 Lapt$b;b(Laqn;)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 Lapt$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 Lapt$b;b()I
    • updateTrackedStatus

      public void updateTrackedStatus(List<ServerPlayerEntity> players)
      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 Lapt$b;a(Ljava/util/List;)V