|
WIP |
|
## Creating a Dummy
|
|
\ No newline at end of file |
|
|
|
|
|
```<placeholder>
|
|
|
|
Dummy<?> dummy = new Dummy<>();
|
|
|
|
// The dummy will no longer spawn and despawn automatically
|
|
|
|
dummy.setDetectingPlayers(false);
|
|
|
|
ModeledEntity modeledEntity = ModelEngineAPI.createModeledEntity(dummy);
|
|
|
|
ActiveModel activeModel = ModelEngineAPI.createActiveModel("test_model");
|
|
|
|
modeledEntity.addModel(activeModel, true);
|
|
|
|
```
|
|
|
|
|
|
|
|
## Forced model viewing
|
|
|
|
|
|
|
|
```<placeholder>
|
|
|
|
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
|
|
|
|
|
|
|
|
```<placeholder>
|
|
|
|
Dummy<?> dummy = ...
|
|
|
|
dummy.setForceHidden(player, true);
|
|
|
|
```
|
|
|
|
|
|
|
|
## Removing a Dummy
|
|
|
|
|
|
|
|
```<placeholder>
|
|
|
|
Dummy<?> dummy = ...
|
|
|
|
// Mark the Dummy as removed. Model Engine will automatically despawn it
|
|
|
|
dummy.setRemoved(true);
|
|
|
|
``` |
|
|
|
\ No newline at end of file |