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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bukkit.entity.Entityprotected final EntityHandlerprotected final AtomicBooleanprotected final AtomicBooleanprotected final AtomicBooleanprotected intprotected final AtomicReference<org.bukkit.Location>protected final AtomicReference<List<org.bukkit.entity.Entity>>protected final Set<org.bukkit.entity.Player>protected final Set<org.bukkit.entity.Player>protected final Set<org.bukkit.entity.Player>protected TrackedEntityFields 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 TypeMethodDescriptionvoidUpdate method called from an async thread.voidcleanup()Called after all renderers under theownerof this data object have finished rendering.voiddestroy()Called whenIEntityData.isDataValid()is false and this object is being removed from theEntityDataTracker.org.bukkit.LocationList<org.bukkit.entity.Entity>Set<org.bukkit.entity.Player>Set<org.bukkit.entity.Player>booleanbooleanbooleanvoidsetForcedAlive(boolean flag) voidUpdate 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, verticalCullTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ticxo.modelengine.api.entity.data.IEntityData
load, save
-
Field Details
-
entityHandler
-
entity
protected final org.bukkit.entity.Entity entity -
isEntityValid
-
isDataValid
-
isForcedAlive
-
location
-
passengers
-
syncTracking
-
asyncTracking
-
startTrackingQueue
-
startTracking
-
stopTrackingQueue
-
stopTracking
-
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:IEntityDataUpdate method called from an async thread. -
syncUpdate
public void syncUpdate()Description copied from interface:IEntityDataUpdate method called from the server thread. -
cleanup
public void cleanup()Description copied from interface:IEntityDataCalled after all renderers under theownerof this data object have finished rendering. Useful for cleaning up per-tick data. -
destroy
public void destroy()Description copied from interface:IEntityDataCalled whenIEntityData.isDataValid()is false and this object is being removed from theEntityDataTracker. 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
-
getStartTracking
-
getTracking
-
getStopTracking
-
getTracked
-