public class TrackedEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
encodedPosX |
private long |
encodedPosY |
private long |
encodedPosZ |
private int |
encodedRotationPitch |
private int |
encodedRotationYaw |
private int |
encodedRotationYawHead |
private static org.apache.logging.log4j.Logger |
LOGGER |
private boolean |
onGround |
private java.util.function.Consumer<IPacket<?>> |
packetConsumer |
private java.util.List<Entity> |
passengers |
private boolean |
riding |
private boolean |
sendVelocityUpdates |
private int |
ticksSinceAbsoluteTeleport |
private Entity |
trackedEntity |
private int |
updateCounter |
private int |
updateFrequency |
private Vec3d |
velocity |
private ServerWorld |
world |
Constructor and 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_) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
func_219456_b() |
private void |
sendMetadata() |
private void |
sendPacket(IPacket<?> p_219451_1_) |
void |
sendSpawnPackets(java.util.function.Consumer<IPacket<?>> p_219452_1_) |
void |
tick() |
void |
track(ServerPlayerEntity player) |
void |
untrack(ServerPlayerEntity player) |
private void |
updateEncodedPosition() |
private static final org.apache.logging.log4j.Logger LOGGER
private final ServerWorld world
private final Entity trackedEntity
private final int updateFrequency
private final boolean sendVelocityUpdates
private final java.util.function.Consumer<IPacket<?>> packetConsumer
private long encodedPosX
private long encodedPosY
private long encodedPosZ
private int encodedRotationYaw
private int encodedRotationPitch
private int encodedRotationYawHead
private Vec3d velocity
private int updateCounter
private int ticksSinceAbsoluteTeleport
private java.util.List<Entity> passengers
private boolean riding
private boolean onGround
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_)
public void tick()
public void untrack(ServerPlayerEntity player)
public void track(ServerPlayerEntity player)
public void sendSpawnPackets(java.util.function.Consumer<IPacket<?>> p_219452_1_)
private void sendMetadata()
private void updateEncodedPosition()
public Vec3d func_219456_b()
private void sendPacket(IPacket<?> p_219451_1_)