|
|
## Creating a Dummy
|
|
|
|
|
|
```<placeholder>
|
|
|
```java
|
|
|
Dummy<?> dummy = new Dummy<>();
|
|
|
// The dummy will no longer spawn and despawn automatically
|
|
|
dummy.setDetectingPlayers(false);
|
... | ... | @@ -11,7 +11,7 @@ modeledEntity.addModel(activeModel, true); |
|
|
|
|
|
## Forced model viewing
|
|
|
|
|
|
```<placeholder>
|
|
|
```java
|
|
|
Dummy<?> dummy = ...
|
|
|
dummy.setForceViewing(player, true);
|
|
|
```
|
... | ... | @@ -20,14 +20,14 @@ dummy.setForceViewing(player, true); |
|
|
|
|
|
## Forced model hiding
|
|
|
|
|
|
```<placeholder>
|
|
|
```java
|
|
|
Dummy<?> dummy = ...
|
|
|
dummy.setForceHidden(player, true);
|
|
|
```
|
|
|
|
|
|
## Removing a Dummy
|
|
|
|
|
|
```<placeholder>
|
|
|
```java
|
|
|
Dummy<?> dummy = ...
|
|
|
// Mark the Dummy as removed. Model Engine will automatically despawn it
|
|
|
dummy.setRemoved(true);
|
... | ... | |