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