Class DummyEntityData<T>

java.lang.Object
com.ticxo.modelengine.api.entity.data.AbstractEntityData
com.ticxo.modelengine.api.entity.data.DummyEntityData<T>
All Implemented Interfaces:
IEntityData, DataIO

public class DummyEntityData<T> extends AbstractEntityData
  • Field Details

    • dummy

      protected final Dummy<T> dummy
    • tracked

      protected final DummyTrackedEntity tracked
    • culler

      protected final ModelCuller culler
    • syncTracking

      protected final Set<UUID> syncTracking
    • asyncTracking

      protected final Map<UUID,CullType> asyncTracking
    • startTrackingQueue

      protected final Queue<UUID> startTrackingQueue
    • startTracking

      protected final Set<UUID> startTracking
    • stopTrackingQueue

      protected final Queue<UUID> stopTrackingQueue
    • stopTracking

      protected final Set<UUID> stopTracking
    • syncUpdateCallback

      protected final Callback<Runnable> syncUpdateCallback
    • asyncUpdateCallback

      protected final Callback<Runnable> asyncUpdateCallback
    • location

      protected org.bukkit.Location location
    • baseGlowing

      protected boolean baseGlowing
  • Constructor Details

    • DummyEntityData

      public DummyEntityData(Dummy<T> dummy)
    • DummyEntityData

      public DummyEntityData(Dummy<T> dummy, 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.
    • getBaseEntity

      public BaseEntity<?> getBaseEntity()
    • isDataValid

      public boolean isDataValid()
    • getPassengers

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

      public Set<UUID> getStartTracking()
    • getMutableTracking

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

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

      public Set<UUID> getStopTracking()
    • hasTracking

      public boolean hasTracking()
    • getRenderRadius

      public int getRenderRadius()
    • setRenderRadius

      public void setRenderRadius(int radius)
    • getTracked

      public DummyTrackedEntity getTracked()
    • getSyncUpdateCallback

      public Callback<Runnable> getSyncUpdateCallback()
    • getAsyncUpdateCallback

      public Callback<Runnable> getAsyncUpdateCallback()
    • getLocation

      public org.bukkit.Location getLocation()
    • setLocation

      public void setLocation(org.bukkit.Location location)
    • isBaseGlowing

      public boolean isBaseGlowing()
    • setBaseGlowing

      public void setBaseGlowing(boolean baseGlowing)