Class TrackedEntity


  • public class TrackedEntity
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • entity

        private final Entity entity
      • updateInterval

        private final int updateInterval
      • trackDelta

        private final boolean trackDelta
      • broadcast

        private final java.util.function.Consumer<IPacket<?>> broadcast
      • xp

        private long xp
      • yp

        private long yp
      • zp

        private long zp
      • yRotp

        private int yRotp
      • xRotp

        private int xRotp
      • yHeadRotp

        private int yHeadRotp
      • tickCount

        private int tickCount
      • teleportDelay

        private int teleportDelay
      • lastPassengers

        private java.util.List<Entity> lastPassengers
      • wasRiding

        private boolean wasRiding
      • wasOnGround

        private boolean wasOnGround
    • Constructor Detail

      • TrackedEntity

        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_)
    • Method Detail

      • sendChanges

        public void sendChanges()
      • sendPairingData

        public void sendPairingData​(java.util.function.Consumer<IPacket<?>> p_219452_1_)
      • sendDirtyEntityData

        private void sendDirtyEntityData()
      • updateSentPos

        private void updateSentPos()
      • broadcastAndSend

        private void broadcastAndSend​(IPacket<?> p_219451_1_)