|
|
## Adding model
|
|
|
|
|
|
```<placeholder>
|
|
|
```java
|
|
|
// Spawn a new entity
|
|
|
Pig pig = location.getWorld().spawn(location, Pig.class);
|
|
|
// Create a new ModeledEntity from the spawned entity
|
... | ... | @@ -14,7 +14,7 @@ modeledEntity.addModel(activeModel, true); |
|
|
|
|
|
## Removing model
|
|
|
|
|
|
```<placeholder>
|
|
|
```java
|
|
|
// Grab the ModeledEntity instance associated with the entity
|
|
|
// Can also use entity ID or entity UUID
|
|
|
ModeledEntity modeledEntity = ModelEngineAPI.getModeledEntity(pig);
|
... | ... | |