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