|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockChangeDelegate
A delegate for handling block changes. This serves as a direct interface between generation algorithms in the server implementation and utilizing code.
Method Summary | |
---|---|
int |
getHeight()
Gets the height of the world. |
int |
getTypeId(int x,
int y,
int z)
Get the block type at the location. |
boolean |
isEmpty(int x,
int y,
int z)
Checks if the specified block is empty (air) or not. |
boolean |
setRawTypeId(int x,
int y,
int z,
int typeId)
Set a block type at the specified coordinates without doing all world updates and notifications. |
boolean |
setRawTypeIdAndData(int x,
int y,
int z,
int typeId,
int data)
Set a block type and data at the specified coordinates without doing all world updates and notifications. |
boolean |
setTypeId(int x,
int y,
int z,
int typeId)
Set a block type at the specified coordinates. |
boolean |
setTypeIdAndData(int x,
int y,
int z,
int typeId,
int data)
Set a block type and data at the specified coordinates. |
Method Detail |
---|
boolean setRawTypeId(int x, int y, int z, int typeId)
x
- X coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block ID
boolean setRawTypeIdAndData(int x, int y, int z, int typeId, int data)
x
- X coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block IDdata
- Block data
boolean setTypeId(int x, int y, int z, int typeId)
x
- X coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block ID
boolean setTypeIdAndData(int x, int y, int z, int typeId, int data)
x
- X coordinatey
- Y coordinatez
- Z coordinatetypeId
- New block IDdata
- Block data
int getTypeId(int x, int y, int z)
x
- X coordinatey
- Y coordinatez
- Z coordinate
int getHeight()
boolean isEmpty(int x, int y, int z)
x
- X coordinatey
- Y coordinatez
- Z coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |