Added Block.getPistonMoveReaction, BlockPistonExtend and BlockPistonRetractEvent

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-07-15 23:59:12 +02:00
parent 402794beff
commit 86ab32254f
9 changed files with 205 additions and 0 deletions

View File

@@ -66,6 +66,15 @@ public interface Block {
*/
Block getRelative(BlockFace face);
/**
* Gets the block at the given offsets
*
* @param face face
* @param distance distance
* @return Block at the given offset and distance
*/
Block getRelative(BlockFace face, int distance);
/**
* Gets the type of this block
*
@@ -268,4 +277,11 @@ public interface Block {
* @return Humidity of this block
*/
double getHumidity();
/**
* Returns the reaction of the block when moved by a piston
*
* @return reaction
*/
PistonMoveReaction getPistonMoveReaction();
}