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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ticxo.modelengine.api.entity.data.IEntityData
IEntityData.CullCameraOverride -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AttributeAccessorprotected final BukkitEntityprotected final QueuedAtomic<org.bukkit.util.BoundingBox>protected final ModelCullerprotected final org.bukkit.entity.Entityprotected final EntityHandlerprotected intprotected final QueuedIntprotected final QueuedFloatprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedBooleanprotected final QueuedAtomic<org.bukkit.Location>protected final QueuedFloatprotected final QueuedAtomic<List<org.bukkit.entity.Entity>>protected final org.bukkit.Locationprotected final EntityStateprotected intprotected TrackedEntityprotected final Predicate<org.bukkit.entity.Player>protected booleanprotected final QueuedFloatprotected final QueuedFloatprotected final QueuedFloatprotected final QueuedFloatFields inherited from interface com.ticxo.modelengine.api.entity.data.IEntityData
CULL_TYPE_DATA_LOADER, CULL_TYPE_DATA_SAVER -
Constructor Summary
ConstructorsConstructorDescriptionBukkitEntityData(org.bukkit.entity.Entity entity, BukkitEntity base) BukkitEntityData(org.bukkit.entity.Entity entity, BukkitEntity base, ModelCuller culler) -
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate method called from an async thread.voidcleanup()Called after all renderers under theownerof this data object have finished rendering.voidUpdate method called from the cull thread.voiddestroy()Called whenIEntityData.isDataValid()is false and this object is being removed from theEntityDataTracker.org.bukkit.util.BoundingBoxintfloatorg.bukkit.LocationfloatList<org.bukkit.entity.Entity>floatfloatfloatfloatgetYRot()booleanbooleanbooleanbooleanbooleanisFlying()booleanbooleanbooleanisOnFire()booleanbooleanbooleanvoidresendTracking(UUID player) Re-queuesplayerthrough start-tracking so the model re-spawns to them next tick — needed after a world change, since a force-paired viewer never re-enters tracking on its own.voidsetForcedAlive(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, getCullExempt, getCullHitbox, getCullInterval, getVerticalCull, getVerticalCullDistance, getVerticalCullType, isCullExempt, isModelGlowing, markBoneGlowing, markModelGlowing, setBackCull, setBackCullAngle, setBackCullIgnoreRadius, setBackCullType, setBlockedCull, setBlockedCullIgnoreRadius, setBlockedCullType, setCullExempt, 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 -
baseEntity
-
culler
-
isEntityValid
-
isDataValid
-
isForcedAlive
-
location
-
passengers
-
glowColor
-
yRot
-
yHeadRot
-
xHeadRot
-
yBodyRot
-
isWalking
-
isStrafing
-
isJumping
-
isFlying
-
health
-
maxHealth
-
isRemoved
-
isBaseGlowing
-
isOnFire
-
boundingBox
-
syncTracking
-
asyncTracking
-
startTrackingQueue
-
startTracking
-
stopTrackingQueue
-
stopTracking
-
trackingPredicate
-
tracked
-
attributeAccessor
-
syncTick
protected int syncTick -
wasValid
protected boolean wasValid -
foliaExecuteFailures
protected int foliaExecuteFailures -
reuseLoc
protected final org.bukkit.Location reuseLoc -
reuseState
-
reuseTracking
-
-
Constructor Details
-
BukkitEntityData
-
BukkitEntityData
-
-
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. -
cullUpdate
public void cullUpdate()Description copied from interface:IEntityDataUpdate method called from the cull 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) -
getGlowColor
public int getGlowColor() -
getLocation
public org.bukkit.Location getLocation() -
getPassengers
-
getStartTracking
-
resendTracking
Re-queuesplayerthrough start-tracking so the model re-spawns to them next tick — needed after a world change, since a force-paired viewer never re-enters tracking on its own. No-op if untracked. -
getMutableTracking
-
getTracking
-
getStopTracking
-
hasTracking
public boolean hasTracking() -
isBaseGlowing
public boolean isBaseGlowing() -
isOnFire
public boolean isOnFire() -
getTracked
-
getYRot
public float getYRot() -
getYHeadRot
public float getYHeadRot() -
getXHeadRot
public float getXHeadRot() -
getYBodyRot
public float getYBodyRot() -
isWalking
public boolean isWalking() -
isStrafing
public boolean isStrafing() -
isJumping
public boolean isJumping() -
isFlying
public boolean isFlying() -
getHealth
public float getHealth() -
getMaxHealth
public float getMaxHealth() -
isRemoved
public boolean isRemoved() -
getBoundingBox
public org.bukkit.util.BoundingBox getBoundingBox() -
getBaseEntity
-