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.Entity
protected final EntityHandler
protected final AtomicBoolean
protected final AtomicBoolean
protected final AtomicBoolean
protected int
protected 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 TrackedEntity
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>
Set<org.bukkit.entity.Player>
Set<org.bukkit.entity.Player>
boolean
boolean
boolean
void
setForcedAlive
(boolean flag) 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
-
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: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() -
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
-