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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bukkit.Location
protected final Set<org.bukkit.entity.Player>
protected final Queue<org.bukkit.entity.Player>
protected final Set<org.bukkit.entity.Player>
protected final Queue<org.bukkit.entity.Player>
protected final Set<org.bukkit.entity.Player>
protected final DummyTrackedEntity
Fields inherited from interface com.ticxo.modelengine.api.entity.data.IEntityData
CULL_TYPE_DATA_LOADER, CULL_TYPE_DATA_SAVER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Update method called from an async thread.void
cleanup()
Called after all renderers under theowner
of this data object have finished rendering.void
destroy()
Called whenIEntityData.isDataValid()
is false and this object is being removed from theEntityDataTracker
.org.bukkit.Location
List<org.bukkit.entity.Entity>
int
Set<org.bukkit.entity.Player>
Set<org.bukkit.entity.Player>
boolean
void
setLocation
(org.bukkit.Location location) void
setRenderRadius
(int radius) void
Update method called from the server thread.Methods inherited from class com.ticxo.modelengine.api.entity.data.AbstractEntityData
backCull, backCullAngle, backCullIgnoreRadius, backCullType, blockedCull, blockedCullIgnoreRadius, blockedCullType, cullInterval, getBackCull, getBackCullAngle, getBackCullIgnoreRadius, getBackCullType, getBlockedCull, getBlockedCullIgnoreRadius, getBlockedCullType, getCullHitbox, getCullInterval, getVerticalCull, getVerticalCullDistance, getVerticalCullType, setBackCull, setBackCullAngle, setBackCullIgnoreRadius, setBackCullType, setBlockedCull, setBlockedCullIgnoreRadius, setBlockedCullType, setCullHitbox, setCullInterval, setVerticalCull, setVerticalCullDistance, setVerticalCullType, updateConfig, verticalCull, verticalCullDistance, verticalCullType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ticxo.modelengine.api.entity.data.IEntityData
load, save
-
Field Details
-
dummy
-
tracked
-
syncTracking
-
asyncTracking
-
startTrackingQueue
-
startTracking
-
stopTrackingQueue
-
stopTracking
-
location
protected org.bukkit.Location location
-
-
Constructor Details
-
DummyEntityData
-
-
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 theowner
of this data object have finished rendering. Useful for cleaning up per-tick data. -
destroy
public void destroy()Description copied from interface:IEntityData
Called whenIEntityData.isDataValid()
is false and this object is being removed from theEntityDataTracker
. Will always be called from the server thread. -
isDataValid
public boolean isDataValid() -
getPassengers
-
getStartTracking
-
getTracking
-
getStopTracking
-
getRenderRadius
public int getRenderRadius() -
setRenderRadius
public void setRenderRadius(int radius) -
getTracked
-
getLocation
public org.bukkit.Location getLocation() -
setLocation
public void setLocation(org.bukkit.Location location)
-