Package net.minecraft.server.level
Class ServerEntity
java.lang.Object
net.minecraft.server.level.ServerEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Entity
static final int
private static final int
private Vec3
private int
private int
private int
private final ServerLevel
private static final org.slf4j.Logger
private final VecDeltaCodec
private int
private int
private static final double
private static final int
private final boolean
private List
<SynchedEntityData.DataValue<?>> private final int
private boolean
private boolean
-
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_) float
float
float
removedPassengers
(List<Entity> p_277592_, List<Entity> p_277658_) void
removePairing
(ServerPlayer p_8535_) void
private void
void
sendPairingData
(ServerPlayer p_289562_, PacketAndPayloadAcceptor<ClientGamePacketListener> p_289563_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TOLERANCE_LEVEL_ROTATION
private static final int TOLERANCE_LEVEL_ROTATION- See Also:
-
TOLERANCE_LEVEL_POSITION
private static final double TOLERANCE_LEVEL_POSITION- See Also:
-
FORCED_POS_UPDATE_PERIOD
public static final int FORCED_POS_UPDATE_PERIOD- See Also:
-
FORCED_TELEPORT_PERIOD
private static final int FORCED_TELEPORT_PERIOD- See Also:
-
level
-
entity
-
updateInterval
private final int updateInterval -
trackDelta
private final boolean trackDelta -
broadcast
-
positionCodec
-
lastSentYRot
private int lastSentYRot -
lastSentXRot
private int lastSentXRot -
lastSentYHeadRot
private int lastSentYHeadRot -
lastSentMovement
-
tickCount
private int tickCount -
teleportDelay
private int teleportDelay -
lastPassengers
-
wasRiding
private boolean wasRiding -
wasOnGround
private boolean wasOnGround -
trackedDataValues
-
-
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() -
removedPassengers
-
removePairing
-
addPairing
-
sendPairingData
public void sendPairingData(ServerPlayer p_289562_, PacketAndPayloadAcceptor<ClientGamePacketListener> p_289563_) -
getPositionBase
-
getLastSentMovement
-
getLastSentXRot
public float getLastSentXRot() -
getLastSentYRot
public float getLastSentYRot() -
getLastSentYHeadRot
public float getLastSentYHeadRot() -
sendDirtyEntityData
private void sendDirtyEntityData() -
broadcastAndSend
-