Creating a Dummy
Dummy<?> dummy = new Dummy<>();
// The dummy will no longer spawn and despawn for players automatically
dummy.setDetectingPlayers(false);
ModeledEntity modeledEntity = ModelEngineAPI.createModeledEntity(dummy);
ActiveModel activeModel = ModelEngineAPI.createActiveModel("test_model");
modeledEntity.addModel(activeModel, true);
Forced model viewing
Dummy<?> dummy = ...
dummy.setForceViewing(player, true);
Note: A forced viewer will be able to see the model forever, even when out of render radius.
Forced model hiding
Dummy<?> dummy = ...
dummy.setForceHidden(player, true);
Removing a Dummy
Dummy<?> dummy = ...
// Mark the Dummy as removed. Model Engine will automatically despawn it
dummy.setRemoved(true);