Changes
Page history
Replace placeholder with java
authored
Sep 29, 2023
by
Ticxo
Show whitespace changes
Inline
Side-by-side
API/Basic/Add-Remove-Model.md
View page @
a0a02798
## 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
);
...
...
...
...