Class ServerEntity

java.lang.Object
net.minecraft.server.level.ServerEntity

public class ServerEntity extends Object
  • 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

      private final ServerLevel level
    • entity

      private final Entity entity
    • updateInterval

      private final int updateInterval
    • trackDelta

      private final boolean trackDelta
    • broadcast

      private final Consumer<Packet<?>> broadcast
    • positionCodec

      private final VecDeltaCodec positionCodec
    • lastSentYRot

      private int lastSentYRot
    • lastSentXRot

      private int lastSentXRot
    • lastSentYHeadRot

      private int lastSentYHeadRot
    • lastSentMovement

      private Vec3 lastSentMovement
    • tickCount

      private int tickCount
    • teleportDelay

      private int teleportDelay
    • lastPassengers

      private List<Entity> lastPassengers
    • wasRiding

      private boolean wasRiding
    • wasOnGround

      private boolean wasOnGround
    • trackedDataValues

      @Nullable private List<SynchedEntityData.DataValue<?>> trackedDataValues
  • Constructor Details

  • Method Details

    • sendChanges

      public void sendChanges()
    • removedPassengers

      private static Stream<Entity> removedPassengers(List<Entity> p_277592_, List<Entity> p_277658_)
    • removePairing

      public void removePairing(ServerPlayer p_8535_)
    • addPairing

      public void addPairing(ServerPlayer p_8542_)
    • sendPairingData

      public void sendPairingData(ServerPlayer p_289562_, PacketAndPayloadAcceptor<ClientGamePacketListener> p_289563_)
    • getPositionBase

      public Vec3 getPositionBase()
    • getLastSentMovement

      public Vec3 getLastSentMovement()
    • getLastSentXRot

      public float getLastSentXRot()
    • getLastSentYRot

      public float getLastSentYRot()
    • getLastSentYHeadRot

      public float getLastSentYHeadRot()
    • sendDirtyEntityData

      private void sendDirtyEntityData()
    • broadcastAndSend

      private void broadcastAndSend(Packet<?> p_8539_)