Class BukkitEntityData

java.lang.Object
com.ticxo.modelengine.api.entity.data.AbstractEntityData
com.ticxo.modelengine.api.entity.data.BukkitEntityData
All Implemented Interfaces:
IEntityData, DataIO
Direct Known Subclasses:
BukkitPlayer.BukkitPlayerData

public class BukkitEntityData extends AbstractEntityData
  • Field Details

    • entityHandler

      protected final EntityHandler entityHandler
    • entity

      protected final org.bukkit.entity.Entity entity
    • baseEntity

      protected final BukkitEntity baseEntity
    • culler

      protected final ModelCuller culler
    • isEntityValid

      protected final QueuedBoolean isEntityValid
    • isDataValid

      protected final QueuedBoolean isDataValid
    • isForcedAlive

      protected final QueuedBoolean isForcedAlive
    • location

      protected final QueuedAtomic<org.bukkit.Location> location
    • passengers

      protected final QueuedAtomic<List<org.bukkit.entity.Entity>> passengers
    • glowColor

      protected final QueuedInt glowColor
    • yRot

      protected final QueuedFloat yRot
    • yHeadRot

      protected final QueuedFloat yHeadRot
    • xHeadRot

      protected final QueuedFloat xHeadRot
    • yBodyRot

      protected final QueuedFloat yBodyRot
    • isWalking

      protected final QueuedBoolean isWalking
    • isStrafing

      protected final QueuedBoolean isStrafing
    • isJumping

      protected final QueuedBoolean isJumping
    • isFlying

      protected final QueuedBoolean isFlying
    • health

      protected final QueuedFloat health
    • maxHealth

      protected final QueuedFloat maxHealth
    • isRemoved

      protected final QueuedBoolean isRemoved
    • isBaseGlowing

      protected final QueuedBoolean isBaseGlowing
    • isOnFire

      protected final QueuedBoolean isOnFire
    • boundingBox

      protected final QueuedAtomic<org.bukkit.util.BoundingBox> boundingBox
    • syncTracking

      protected final Set<UUID> syncTracking
    • asyncTracking

      protected final Map<UUID,CullType> asyncTracking
    • startTrackingQueue

      protected final Queue<Queue<UUID>> startTrackingQueue
    • startTracking

      protected final Set<UUID> startTracking
    • stopTrackingQueue

      protected final Queue<Queue<UUID>> stopTrackingQueue
    • stopTracking

      protected final Set<UUID> stopTracking
    • trackingPredicate

      protected final Predicate<org.bukkit.entity.Player> trackingPredicate
    • tracked

      protected TrackedEntity tracked
    • attributeAccessor

      protected final AttributeAccessor attributeAccessor
    • syncTick

      protected int syncTick
    • wasValid

      protected boolean wasValid
    • foliaExecuteFailures

      protected int foliaExecuteFailures
    • reuseLoc

      protected final org.bukkit.Location reuseLoc
    • reuseState

      protected final EntityState reuseState
    • reuseTracking

      protected final Set<UUID> reuseTracking
  • Constructor Details

    • BukkitEntityData

      public BukkitEntityData(org.bukkit.entity.Entity entity, BukkitEntity base)
    • BukkitEntityData

      public BukkitEntityData(org.bukkit.entity.Entity entity, BukkitEntity base, ModelCuller culler)
  • Method Details

    • asyncUpdate

      public void asyncUpdate()
      Description copied from interface: IEntityData
      Update method called from an async thread.
    • syncUpdate

      public void syncUpdate()
      Description copied from interface: IEntityData
      Update method called from the server thread.
    • cullUpdate

      public void cullUpdate()
      Description copied from interface: IEntityData
      Update method called from the cull thread.
    • cleanup

      public void cleanup()
      Description copied from interface: IEntityData
      Called after all renderers under the owner of this data object have finished rendering. Useful for cleaning up per-tick data.
    • destroy

      public void destroy()
      Description copied from interface: IEntityData
      Called when IEntityData.isDataValid() is false and this object is being removed from the EntityDataTracker. Will always be called from the server thread.
    • isDataValid

      public boolean isDataValid()
    • isEntityValid

      public boolean isEntityValid()
    • isForcedAlive

      public boolean isForcedAlive()
    • setForcedAlive

      public void setForcedAlive(boolean flag)
    • getGlowColor

      public int getGlowColor()
    • getLocation

      public org.bukkit.Location getLocation()
    • getPassengers

      public List<org.bukkit.entity.Entity> getPassengers()
    • getStartTracking

      public Set<UUID> getStartTracking()
    • resendTracking

      public void resendTracking(UUID player)
      Re-queues player through start-tracking so the model re-spawns to them next tick — needed after a world change, since a force-paired viewer never re-enters tracking on its own. No-op if untracked.
    • getMutableTracking

      public Map<UUID,CullType> getMutableTracking()
    • getTracking

      public Map<UUID,CullType> getTracking()
    • getStopTracking

      public Set<UUID> getStopTracking()
    • hasTracking

      public boolean hasTracking()
    • isBaseGlowing

      public boolean isBaseGlowing()
    • isOnFire

      public boolean isOnFire()
    • getTracked

      public TrackedEntity getTracked()
    • getYRot

      public float getYRot()
    • getYHeadRot

      public float getYHeadRot()
    • getXHeadRot

      public float getXHeadRot()
    • getYBodyRot

      public float getYBodyRot()
    • isWalking

      public boolean isWalking()
    • isStrafing

      public boolean isStrafing()
    • isJumping

      public boolean isJumping()
    • isFlying

      public boolean isFlying()
    • getHealth

      public float getHealth()
    • getMaxHealth

      public float getMaxHealth()
    • isRemoved

      public boolean isRemoved()
    • getBoundingBox

      public org.bukkit.util.BoundingBox getBoundingBox()
    • getBaseEntity

      public BukkitEntity getBaseEntity()