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
    • isEntityValid

      protected final AtomicBoolean isEntityValid
    • isDataValid

      protected final AtomicBoolean isDataValid
    • isForcedAlive

      protected final AtomicBoolean isForcedAlive
    • location

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

      protected final AtomicReference<List<org.bukkit.entity.Entity>> passengers
    • syncTracking

      protected final Set<org.bukkit.entity.Player> syncTracking
    • asyncTracking

      protected final Map<org.bukkit.entity.Player,CullType> asyncTracking
    • startTrackingQueue

      protected final Queue<Queue<org.bukkit.entity.Player>> startTrackingQueue
    • startTracking

      protected final Set<org.bukkit.entity.Player> startTracking
    • stopTrackingQueue

      protected final Queue<Queue<org.bukkit.entity.Player>> stopTrackingQueue
    • stopTracking

      protected final Set<org.bukkit.entity.Player> stopTracking
    • tracked

      protected TrackedEntity tracked
    • lastCulled

      protected int lastCulled
  • Constructor Details

    • BukkitEntityData

      public BukkitEntityData(org.bukkit.entity.Entity entity)
  • 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.
    • 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)
    • getLocation

      public org.bukkit.Location getLocation()
    • getPassengers

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

      public Set<org.bukkit.entity.Player> getStartTracking()
    • getTracking

      public Map<org.bukkit.entity.Player,CullType> getTracking()
    • getStopTracking

      public Set<org.bukkit.entity.Player> getStopTracking()
    • getTracked

      public TrackedEntity getTracked()