Package net.minecraft.server.level
Class ServerEntity
java.lang.Object
net.minecraft.server.level.ServerEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate Vec3
private final Entity
private final ServerLevel
private static final org.slf4j.Logger
private final VecDeltaCodec
private int
private int
private static final int
private final boolean
private final int
private boolean
private boolean
private int
private int
private int
-
Constructor Summary
ConstructorDescriptionServerEntity
(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPairing
(ServerPlayer p_8542_) private void
broadcastAndSend
(Packet<?> p_8539_) void
removePairing
(ServerPlayer p_8535_) void
private void
void
sendPairingData
(Consumer<Packet<?>> p_8537_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TOLERANCE_LEVEL_ROTATION
private static final int TOLERANCE_LEVEL_ROTATION- See Also:
-
level
-
entity
-
updateInterval
private final int updateInterval -
trackDelta
private final boolean trackDelta -
broadcast
-
positionCodec
-
yRotp
private int yRotp -
xRotp
private int xRotp -
yHeadRotp
private int yHeadRotp -
ap
-
tickCount
private int tickCount -
teleportDelay
private int teleportDelay -
lastPassengers
-
wasRiding
private boolean wasRiding -
wasOnGround
private boolean wasOnGround
-
-
Constructor Details
-
ServerEntity
public ServerEntity(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_)
-
-
Method Details
-
sendChanges
public void sendChanges() -
removePairing
-
addPairing
-
sendPairingData
-
sendDirtyEntityData
private void sendDirtyEntityData() -
broadcastAndSend
-