public class PlayerCreativeTerrainEditEvent extends PlayerWorldEditEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerCreativeTerrainEditEvent.Mode |
| Constructor and Description |
|---|
PlayerCreativeTerrainEditEvent(Player player,
int terrainID,
int cx,
int cy,
int cz,
int bx,
int by,
int bz,
int brushsize,
PlayerCreativeTerrainEditEvent.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBrushSize()
Gets the size of the brush.
|
PlayerCreativeTerrainEditEvent.Mode |
getCreativeEditMode()
Gets the edit mode, i.e. the terrain edit sub tool (Add, Subtract, Paint, Smooth etc).
|
int |
getTerrainID()
Gets the terrain id the player wants to place.
|
void |
setTerrainID(int id)
Changes the terrain id to another id.
|
getBlockPositionX, getBlockPositionY, getBlockPositionZ, getChunkPositionX, getChunkPositionY, getChunkPositionZ, getGlobalBlockPositionX, getGlobalBlockPositionY, getGlobalBlockPositionZ, isCancelled, setCancelledgetPlayerpublic PlayerCreativeTerrainEditEvent(Player player, int terrainID, int cx, int cy, int cz, int bx, int by, int bz, int brushsize, PlayerCreativeTerrainEditEvent.Mode mode)
public int getTerrainID()
public void setTerrainID(int id)
id - the new terrain id.public PlayerCreativeTerrainEditEvent.Mode getCreativeEditMode()
public int getBrushSize()