LevelWriter
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Methods
add an entity to the world, return if the entity is added successfully.
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Destroys a block within the world.
Returns: Whether the block was changed.
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter pos | Type BlockPos | Description The position of the block. |
Parameter doDrops | Type boolean | Description Whether the block drops itself and it’s loot. |
Destroys a block within the world.
Returns: Whether the block was changed.
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter pos | Type BlockPos | Description The position of the block. |
Parameter doDrops | Type boolean | Description Whether the block drops itself and it’s loot. |
Parameter breaker | Type Entity? | Description The entity to break the block. |