类 ServerEntity
java.lang.Object
net.minecraft.server.level.ServerEntity
-
字段概要
字段修饰符和类型字段说明private final BiConsumer
<Packet<?>, List<UUID>> private final Entity
static final int
private static final int
private Vec3
private byte
private byte
private byte
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
-
构造器概要
构造器构造器说明ServerEntity
(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_, BiConsumer<Packet<?>, List<UUID>> p_394447_) -
方法概要
修饰符和类型方法说明void
addPairing
(ServerPlayer p_8542_) private void
broadcastAndSend
(Packet<?> p_8539_) float
float
float
private void
handleMinecartPosRot
(NewMinecartBehavior p_364284_, byte p_368668_, byte p_368551_, boolean p_368717_) mountedOrDismounted
(List<Entity> p_394226_) void
removePairing
(ServerPlayer p_8535_) void
private void
void
sendPairingData
(ServerPlayer p_289562_, Consumer<Packet<? super ClientGamePacketListener>> p_289563_)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TOLERANCE_LEVEL_ROTATION
private static final int TOLERANCE_LEVEL_ROTATION- 另请参阅:
-
TOLERANCE_LEVEL_POSITION
private static final double TOLERANCE_LEVEL_POSITION- 另请参阅:
-
FORCED_POS_UPDATE_PERIOD
public static final int FORCED_POS_UPDATE_PERIOD- 另请参阅:
-
FORCED_TELEPORT_PERIOD
private static final int FORCED_TELEPORT_PERIOD- 另请参阅:
-
level
-
entity
-
updateInterval
private final int updateInterval -
trackDelta
private final boolean trackDelta -
broadcast
-
broadcastWithIgnore
-
positionCodec
-
lastSentYRot
private byte lastSentYRot -
lastSentXRot
private byte lastSentXRot -
lastSentYHeadRot
private byte lastSentYHeadRot -
lastSentMovement
-
tickCount
private int tickCount -
teleportDelay
private int teleportDelay -
lastPassengers
-
wasRiding
private boolean wasRiding -
wasOnGround
private boolean wasOnGround -
trackedDataValues
-
-
构造器详细资料
-
ServerEntity
public ServerEntity(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_, BiConsumer<Packet<?>, List<UUID>> p_394447_)
-
-
方法详细资料
-
sendChanges
public void sendChanges() -
mountedOrDismounted
-
handleMinecartPosRot
private void handleMinecartPosRot(NewMinecartBehavior p_364284_, byte p_368668_, byte p_368551_, boolean p_368717_) -
removePairing
-
addPairing
-
sendPairingData
public void sendPairingData(ServerPlayer p_289562_, Consumer<Packet<? super ClientGamePacketListener>> p_289563_) -
getPositionBase
-
getLastSentMovement
-
getLastSentXRot
public float getLastSentXRot() -
getLastSentYRot
public float getLastSentYRot() -
getLastSentYHeadRot
public float getLastSentYHeadRot() -
sendDirtyEntityData
private void sendDirtyEntityData() -
broadcastAndSend
-