Package net.minecraft.server.network
Class EntityTrackerEntry
java.lang.Object
net.minecraft.server.network.EntityTrackerEntry
public class EntityTrackerEntry extends Object
- Mappings:
Namespace Name official aau
intermediary net/minecraft/class_3231
named net/minecraft/server/network/EntityTrackerEntry
-
Field Summary
Fields Modifier and Type Field Description private boolean
alwaysUpdateVelocity
private Entity
entity
private boolean
hadVehicle
private int
lastHeadPitch
private boolean
lastOnGround
private List<Entity>
lastPassengers
private int
lastPitch
private long
lastX
private long
lastY
private int
lastYaw
private long
lastZ
private static Logger
LOGGER
private Consumer<Packet<?>>
receiver
private int
tickInterval
private int
trackingTick
private int
updatesWithoutVehicle
private Vec3d
velocity
private ServerWorld
world
-
Constructor Summary
Constructors Constructor Description EntityTrackerEntry(ServerWorld world, Entity entity, int tickInterval, boolean alwaysUpdateVelocity, Consumer<Packet<?>> receiver)
-
Method Summary
Modifier and Type Method Description Vec3d
getLastPos()
Decodes lastX/Y/Z into a position vectorvoid
sendPackets(Consumer<Packet<?>> sender)
private void
sendSyncPacket(Packet<?> packet)
Sends a packet for synchronization with watcher and tracked player (if applicable)void
startTracking(ServerPlayerEntity player)
void
stopTracking(ServerPlayerEntity player)
private void
storeEncodedCoordinates()
Stores the tracked entity's current coordinates encoded as lastX/Y/Zprivate void
syncEntityData()
Synchronizes tracked data and attributesvoid
tick()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Laau;a:Lorg/apache/logging/log4j/Logger;
intermediary field_14041
Lnet/minecraft/class_3231;field_14041:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/network/EntityTrackerEntry;LOGGER:Lorg/apache/logging/log4j/Logger;
-
world
- Mappings:
Namespace Name Mixin selector official b
Laau;b:Laav;
intermediary field_18258
Lnet/minecraft/class_3231;field_18258:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/server/network/EntityTrackerEntry;world:Lnet/minecraft/server/world/ServerWorld;
-
entity
- Mappings:
Namespace Name Mixin selector official c
Laau;c:Laqv;
intermediary field_14049
Lnet/minecraft/class_3231;field_14049:Lnet/minecraft/class_1297;
named entity
Lnet/minecraft/server/network/EntityTrackerEntry;entity:Lnet/minecraft/entity/Entity;
-
tickInterval
private final int tickInterval- Mappings:
Namespace Name Mixin selector official d
Laau;d:I
intermediary field_14037
Lnet/minecraft/class_3231;field_14037:I
named tickInterval
Lnet/minecraft/server/network/EntityTrackerEntry;tickInterval:I
-
alwaysUpdateVelocity
private final boolean alwaysUpdateVelocity- Mappings:
Namespace Name Mixin selector official e
Laau;e:Z
intermediary field_14039
Lnet/minecraft/class_3231;field_14039:Z
named alwaysUpdateVelocity
Lnet/minecraft/server/network/EntityTrackerEntry;alwaysUpdateVelocity:Z
-
receiver
- Mappings:
Namespace Name Mixin selector official f
Laau;f:Ljava/util/function/Consumer;
intermediary field_18259
Lnet/minecraft/class_3231;field_18259:Ljava/util/function/Consumer;
named receiver
Lnet/minecraft/server/network/EntityTrackerEntry;receiver:Ljava/util/function/Consumer;
-
lastX
private long lastX- Mappings:
Namespace Name Mixin selector official g
Laau;g:J
intermediary field_14050
Lnet/minecraft/class_3231;field_14050:J
named lastX
Lnet/minecraft/server/network/EntityTrackerEntry;lastX:J
-
lastY
private long lastY- Mappings:
Namespace Name Mixin selector official h
Laau;h:J
intermediary field_14035
Lnet/minecraft/class_3231;field_14035:J
named lastY
Lnet/minecraft/server/network/EntityTrackerEntry;lastY:J
-
lastZ
private long lastZ- Mappings:
Namespace Name Mixin selector official i
Laau;i:J
intermediary field_14048
Lnet/minecraft/class_3231;field_14048:J
named lastZ
Lnet/minecraft/server/network/EntityTrackerEntry;lastZ:J
-
lastYaw
private int lastYaw- Mappings:
Namespace Name Mixin selector official j
Laau;j:I
intermediary field_14060
Lnet/minecraft/class_3231;field_14060:I
named lastYaw
Lnet/minecraft/server/network/EntityTrackerEntry;lastYaw:I
-
lastPitch
private int lastPitch- Mappings:
Namespace Name Mixin selector official k
Laau;k:I
intermediary field_14047
Lnet/minecraft/class_3231;field_14047:I
named lastPitch
Lnet/minecraft/server/network/EntityTrackerEntry;lastPitch:I
-
lastHeadPitch
private int lastHeadPitch- Mappings:
Namespace Name Mixin selector official l
Laau;l:I
intermediary field_14059
Lnet/minecraft/class_3231;field_14059:I
named lastHeadPitch
Lnet/minecraft/server/network/EntityTrackerEntry;lastHeadPitch:I
-
velocity
- Mappings:
Namespace Name Mixin selector official m
Laau;m:Ldiu;
intermediary field_18278
Lnet/minecraft/class_3231;field_18278:Lnet/minecraft/class_243;
named velocity
Lnet/minecraft/server/network/EntityTrackerEntry;velocity:Lnet/minecraft/util/math/Vec3d;
-
trackingTick
private int trackingTick- Mappings:
Namespace Name Mixin selector official n
Laau;n:I
intermediary field_14040
Lnet/minecraft/class_3231;field_14040:I
named trackingTick
Lnet/minecraft/server/network/EntityTrackerEntry;trackingTick:I
-
updatesWithoutVehicle
private int updatesWithoutVehicle- Mappings:
Namespace Name Mixin selector official o
Laau;o:I
intermediary field_14043
Lnet/minecraft/class_3231;field_14043:I
named updatesWithoutVehicle
Lnet/minecraft/server/network/EntityTrackerEntry;updatesWithoutVehicle:I
-
lastPassengers
- Mappings:
Namespace Name Mixin selector official p
Laau;p:Ljava/util/List;
intermediary field_14045
Lnet/minecraft/class_3231;field_14045:Ljava/util/List;
named lastPassengers
Lnet/minecraft/server/network/EntityTrackerEntry;lastPassengers:Ljava/util/List;
-
hadVehicle
private boolean hadVehicle- Mappings:
Namespace Name Mixin selector official q
Laau;q:Z
intermediary field_14051
Lnet/minecraft/class_3231;field_14051:Z
named hadVehicle
Lnet/minecraft/server/network/EntityTrackerEntry;hadVehicle:Z
-
lastOnGround
private boolean lastOnGround- Mappings:
Namespace Name Mixin selector official r
Laau;r:Z
intermediary field_14036
Lnet/minecraft/class_3231;field_14036:Z
named lastOnGround
Lnet/minecraft/server/network/EntityTrackerEntry;lastOnGround:Z
-
-
Constructor Details
-
EntityTrackerEntry
public EntityTrackerEntry(ServerWorld world, Entity entity, int tickInterval, boolean alwaysUpdateVelocity, Consumer<Packet<?>> receiver)- Mappings:
Namespace Name Mixin selector official <init>
Laau;<init>(Laav;Laqv;IZLjava/util/function/Consumer;)V
intermediary <init>
Lnet/minecraft/class_3231;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;IZLjava/util/function/Consumer;)V
named <init>
Lnet/minecraft/server/network/EntityTrackerEntry;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;IZLjava/util/function/Consumer;)V
-
-
Method Details
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official a
Laau;a()V
intermediary method_18756
Lnet/minecraft/class_3231;method_18756()V
named tick
Lnet/minecraft/server/network/EntityTrackerEntry;tick()V
-
stopTracking
- Mappings:
Namespace Name Mixin selector official a
Laau;a(Laaw;)V
intermediary method_14302
Lnet/minecraft/class_3231;method_14302(Lnet/minecraft/class_3222;)V
named stopTracking
Lnet/minecraft/server/network/EntityTrackerEntry;stopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
startTracking
- Mappings:
Namespace Name Mixin selector official b
Laau;b(Laaw;)V
intermediary method_18760
Lnet/minecraft/class_3231;method_18760(Lnet/minecraft/class_3222;)V
named startTracking
Lnet/minecraft/server/network/EntityTrackerEntry;startTracking(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
sendPackets
- Mappings:
Namespace Name Mixin selector official a
Laau;a(Ljava/util/function/Consumer;)V
intermediary method_18757
Lnet/minecraft/class_3231;method_18757(Ljava/util/function/Consumer;)V
named sendPackets
Lnet/minecraft/server/network/EntityTrackerEntry;sendPackets(Ljava/util/function/Consumer;)V
-
syncEntityData
private void syncEntityData()Synchronizes tracked data and attributes- Mappings:
Namespace Name Mixin selector official c
Laau;c()V
intermediary method_14306
Lnet/minecraft/class_3231;method_14306()V
named syncEntityData
Lnet/minecraft/server/network/EntityTrackerEntry;syncEntityData()V
-
storeEncodedCoordinates
private void storeEncodedCoordinates()Stores the tracked entity's current coordinates encoded as lastX/Y/Z- Mappings:
Namespace Name Mixin selector official d
Laau;d()V
intermediary method_18761
Lnet/minecraft/class_3231;method_18761()V
named storeEncodedCoordinates
Lnet/minecraft/server/network/EntityTrackerEntry;storeEncodedCoordinates()V
-
getLastPos
Decodes lastX/Y/Z into a position vector- Mappings:
Namespace Name Mixin selector official b
Laau;b()Ldiu;
intermediary method_18759
Lnet/minecraft/class_3231;method_18759()Lnet/minecraft/class_243;
named getLastPos
Lnet/minecraft/server/network/EntityTrackerEntry;getLastPos()Lnet/minecraft/util/math/Vec3d;
-
sendSyncPacket
Sends a packet for synchronization with watcher and tracked player (if applicable)- Mappings:
Namespace Name Mixin selector official a
Laau;a(Lpa;)V
intermediary method_18758
Lnet/minecraft/class_3231;method_18758(Lnet/minecraft/class_2596;)V
named sendSyncPacket
Lnet/minecraft/server/network/EntityTrackerEntry;sendSyncPacket(Lnet/minecraft/network/Packet;)V
-