Package com.ticxo.modelengine.api.model
Interface ModeledEntity
- All Superinterfaces:
DataIO,IMetaHolder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaddModel(@NotNull ActiveModel model, boolean overrideHitbox) voiddestroy()getAllGlobalBehaviorData(BoneBehaviorType<?> type) BaseEntity<?>getBase()@Nullable String<T extends BoneBehavior>
GlobalBehaviorDatagetGlobalBehaviorData(BoneBehaviorType<T> type) intint<T extends GlobalBehaviorData & MountData>
T<T extends BoneBehavior>
GlobalBehaviorDatagetOrCreateGlobalBehaviorData(BoneBehaviorType<T> type, Supplier<GlobalBehaviorData> supplier) intgetTick()floatfloatfloatbooleanbooleanbooleanbooleanbooleanbooleanisPivotOverride(int id) voidmarkHurt()voidvoidqueuePostInitTask(Runnable runnable) default voidregisterTickTask(ModeledEntity.Phase phase, Consumer<ModeledEntity> consumer) registerTickTask(ModeledEntity.Phase phase, Function<ModeledEntity, Boolean> consumer) <T extends BoneBehavior>
GlobalBehaviorDataremoveGlobalBehaviorData(BoneBehaviorType<T> type) removeModel(String id) voidremoveTickTask(UUID uuid) voidrestore()voidrunTickTasks(ModeledEntity.Phase phase) voidsetBaseEntityVisible(boolean flag) voidsetModelRotationLocked(boolean flag) voidsetRotationTick(int rotationTick) voidsetSaved(boolean flag) voidsetXHeadRot(float rotation) voidsetXHeadRotImmediately(float rotation) voidsetYBodyRot(float rotation) voidsetYBodyRotImmediately(float rotation) voidsetYHeadRot(float rotation) voidsetYHeadRotImmediately(float rotation) booleanbooleantick()voidMethods inherited from interface com.ticxo.modelengine.api.utils.meta.IMetaHolder
getMetadata
-
Method Details
-
getBase
BaseEntity<?> getBase() -
getAnimationLodHandler
AnimationLODHandler getAnimationLodHandler() -
getTick
int getTick() -
tick
boolean tick() -
destroy
void destroy() -
isInitialized
boolean isInitialized() -
isDestroyed
boolean isDestroyed() -
markRemoved
void markRemoved() -
restore
void restore() -
queuePostInitTask
-
isBaseEntityVisible
boolean isBaseEntityVisible() -
setBaseEntityVisible
void setBaseEntityVisible(boolean flag) -
markHurt
void markHurt() -
getHurtTick
int getHurtTick() -
shouldBeSaved
boolean shouldBeSaved() -
setSaved
void setSaved(boolean flag) -
getCachedSaveJson
-
updateSaveCache
void updateSaveCache() -
isModelRotationLocked
boolean isModelRotationLocked() -
setModelRotationLocked
void setModelRotationLocked(boolean flag) -
isGlowing
boolean isGlowing() -
getGlowColor
int getGlowColor() -
getYHeadRot
float getYHeadRot() -
getXHeadRot
float getXHeadRot() -
getYBodyRot
float getYBodyRot() -
setYHeadRot
void setYHeadRot(float rotation) -
setXHeadRot
void setXHeadRot(float rotation) -
setYBodyRot
void setYBodyRot(float rotation) -
setYHeadRotImmediately
void setYHeadRotImmediately(float rotation) -
setXHeadRotImmediately
void setXHeadRotImmediately(float rotation) -
setYBodyRotImmediately
void setYBodyRotImmediately(float rotation) -
setRotationTick
void setRotationTick(int rotationTick) -
addModel
-
removeModel
-
getModel
-
getModels
Map<String,ActiveModel> getModels() -
getOrCreateGlobalBehaviorData
<T extends BoneBehavior> GlobalBehaviorData getOrCreateGlobalBehaviorData(BoneBehaviorType<T> type, Supplier<GlobalBehaviorData> supplier) -
getGlobalBehaviorData
-
removeGlobalBehaviorData
-
getAllGlobalBehaviorData
-
getMountData
-
getRootMotionHandler
RootMotionHandler getRootMotionHandler() -
isPivotOverride
boolean isPivotOverride(int id) -
registerTickTask
-
registerTickTask
-
removeTickTask
-
runTickTasks
-
getDestroyCallback
-
registerSelf
default void registerSelf()
-