Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.BlockChangeDelegate Interface Reference

Public Member Functions

boolean setRawTypeId (int x, int y, int z, int typeId)
 
boolean setRawTypeIdAndData (int x, int y, int z, int typeId, int data)
 
boolean setTypeId (int x, int y, int z, int typeId)
 
boolean setTypeIdAndData (int x, int y, int z, int typeId, int data)
 
int getTypeId (int x, int y, int z)
 
int getHeight ()
 
boolean isEmpty (int x, int y, int z)
 

Detailed Description

A delegate for handling block changes. This serves as a direct interface between generation algorithms in the server implementation and utilizing code.

Definition at line 8 of file BlockChangeDelegate.java.

Member Function Documentation

int org.bukkit.BlockChangeDelegate.getHeight ( )

Gets the height of the world.

Returns
Height of the world
int org.bukkit.BlockChangeDelegate.getTypeId ( int  x,
int  y,
int  z 
)

Get the block type at the location.

Parameters
xX coordinate
yY coordinate
zZ coordinate
Returns
The block ID
Deprecated:
Magic value
boolean org.bukkit.BlockChangeDelegate.isEmpty ( int  x,
int  y,
int  z 
)

Checks if the specified block is empty (air) or not.

Parameters
xX coordinate
yY coordinate
zZ coordinate
Returns
True if the block is considered empty.
boolean org.bukkit.BlockChangeDelegate.setRawTypeId ( int  x,
int  y,
int  z,
int  typeId 
)

Set a block type at the specified coordinates without doing all world updates and notifications.

It is safe to have this call World.setTypeId, but it may be slower than World.setRawTypeId.

Parameters
xX coordinate
yY coordinate
zZ coordinate
typeIdNew block ID
Returns
true if the block was set successfully
Deprecated:
Magic value
boolean org.bukkit.BlockChangeDelegate.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.

It is safe to have this call World.setTypeId, but it may be slower than World.setRawTypeId.

Parameters
xX coordinate
yY coordinate
zZ coordinate
typeIdNew block ID
dataBlock data
Returns
true if the block was set successfully
Deprecated:
Magic value
boolean org.bukkit.BlockChangeDelegate.setTypeId ( int  x,
int  y,
int  z,
int  typeId 
)

Set a block type at the specified coordinates.

This method cannot call World.setRawTypeId, a full update is needed.

Parameters
xX coordinate
yY coordinate
zZ coordinate
typeIdNew block ID
Returns
true if the block was set successfully
Deprecated:
Magic value
boolean org.bukkit.BlockChangeDelegate.setTypeIdAndData ( int  x,
int  y,
int  z,
int  typeId,
int  data 
)

Set a block type and data at the specified coordinates.

This method cannot call World.setRawTypeId, a full update is needed.

Parameters
xX coordinate
yY coordinate
zZ coordinate
typeIdNew block ID
dataBlock data
Returns
true if the block was set successfully
Deprecated:
Magic value

The documentation for this interface was generated from the following file: