Package com.ticxo.modelengine.api.model
Class ModelUpdaters
java.lang.Object
com.ticxo.modelengine.api.model.ModelUpdaters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()voidgetModeledEntity(int id) getModeledEntity(UUID uuid) longregisterModeledEntity(BaseEntity<?> base, ModeledEntity modeledEntity) voidrekeyEntityId(UUID uuid, int oldId, int newId) Re-keys a model in the entity-id lookup after its backing entity's network id changes (e.g.removeModeledEntity(int id) removeModeledEntity(UUID uuid) voidvoidstart()voidstartDesyncMonitor(UUID uuid) voidstopDesyncMonitor(UUID uuid) voidtick()
-
Constructor Details
-
ModelUpdaters
public ModelUpdaters()
-
-
Method Details
-
start
public void start() -
tick
public void tick() -
startDesyncMonitor
-
stopDesyncMonitor
-
end
public void end() -
registerModeledEntity
public Optional<ModeledEntity> registerModeledEntity(BaseEntity<?> base, ModeledEntity modeledEntity) -
getModeledEntity
-
rekeyEntityId
Re-keys a model in the entity-id lookup after its backing entity's network id changes (e.g. a cross-world teleport recreates the NMS entity). The uuid lookup is unaffected and stays stable. -
getModeledEntity
-
removeModeledEntity
-
removeModeledEntity
-
getRemovalEpoch
public long getRemovalEpoch() -
forceRemoveModeledEntity
-
saveAllModels
public void saveAllModels() -
getProfiler
-