Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.block.PistonMoveReaction Enum Reference

Public Member Functions

int getId ()
 

Static Public Member Functions

 [static initializer]
 
static PistonMoveReaction getById (int id)
 

Public Attributes

 MOVE =(0)
 
 BREAK =(1)
 
 BLOCK =(2)
 

Detailed Description

Definition at line 6 of file PistonMoveReaction.java.

Member Function Documentation

static PistonMoveReaction org.bukkit.block.PistonMoveReaction.getById ( int  id)
static
Parameters
idAn ID
Returns
The move reaction with that ID
Deprecated:
Magic value

Definition at line 48 of file PistonMoveReaction.java.

48  {
49  return byId.get(id);
50  }
int org.bukkit.block.PistonMoveReaction.getId ( )
Returns
The ID of the move reaction
Deprecated:
Magic value

Definition at line 38 of file PistonMoveReaction.java.

38  {
39  return this.id;
40  }

Member Data Documentation

org.bukkit.block.PistonMoveReaction.BLOCK =(2)

Indicates that the block will resist being pushed or pulled.

Definition at line 19 of file PistonMoveReaction.java.

org.bukkit.block.PistonMoveReaction.BREAK =(1)

Indicates the block is fragile and will break if pushed on.

Definition at line 15 of file PistonMoveReaction.java.

org.bukkit.block.PistonMoveReaction.MOVE =(0)

Indicates that the block can be pushed or pulled.

Definition at line 11 of file PistonMoveReaction.java.


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