Package net.minecraft.world
Class TrackedEntity
- java.lang.Object
-
- net.minecraft.world.TrackedEntity
-
public class TrackedEntity extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Vector3d
ap
private java.util.function.Consumer<IPacket<?>>
broadcast
private Entity
entity
private java.util.List<Entity>
lastPassengers
private ServerWorld
level
private static org.apache.logging.log4j.Logger
LOGGER
private int
teleportDelay
private int
tickCount
private boolean
trackDelta
private int
updateInterval
private boolean
wasOnGround
private boolean
wasRiding
private long
xp
private int
xRotp
private int
yHeadRotp
private long
yp
private int
yRotp
private long
zp
-
Constructor Summary
Constructors Constructor Description TrackedEntity(ServerWorld p_i50704_1_, Entity p_i50704_2_, int p_i50704_3_, boolean p_i50704_4_, java.util.function.Consumer<IPacket<?>> p_i50704_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPairing(ServerPlayerEntity p_219455_1_)
private void
broadcastAndSend(IPacket<?> p_219451_1_)
void
removePairing(ServerPlayerEntity p_219454_1_)
void
sendChanges()
private void
sendDirtyEntityData()
void
sendPairingData(java.util.function.Consumer<IPacket<?>> p_219452_1_)
Vector3d
sentPos()
private void
updateSentPos()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
level
private final ServerWorld level
-
entity
private final Entity entity
-
updateInterval
private final int updateInterval
-
trackDelta
private final boolean trackDelta
-
broadcast
private final java.util.function.Consumer<IPacket<?>> broadcast
-
xp
private long xp
-
yp
private long yp
-
zp
private long zp
-
yRotp
private int yRotp
-
xRotp
private int xRotp
-
yHeadRotp
private int yHeadRotp
-
ap
private Vector3d ap
-
tickCount
private int tickCount
-
teleportDelay
private int teleportDelay
-
lastPassengers
private java.util.List<Entity> lastPassengers
-
wasRiding
private boolean wasRiding
-
wasOnGround
private boolean wasOnGround
-
-
Constructor Detail
-
TrackedEntity
public TrackedEntity(ServerWorld p_i50704_1_, Entity p_i50704_2_, int p_i50704_3_, boolean p_i50704_4_, java.util.function.Consumer<IPacket<?>> p_i50704_5_)
-
-
Method Detail
-
sendChanges
public void sendChanges()
-
removePairing
public void removePairing(ServerPlayerEntity p_219454_1_)
-
addPairing
public void addPairing(ServerPlayerEntity p_219455_1_)
-
sendPairingData
public void sendPairingData(java.util.function.Consumer<IPacket<?>> p_219452_1_)
-
sendDirtyEntityData
private void sendDirtyEntityData()
-
updateSentPos
private void updateSentPos()
-
sentPos
public Vector3d sentPos()
-
broadcastAndSend
private void broadcastAndSend(IPacket<?> p_219451_1_)
-
-