Package org.bukkit.block.data.type
Interface Switch
-
- All Superinterfaces:
BlockData,Cloneable,Directional,Powerable
public interface Switch extends Directional, Powerable
'face' represents the face to which a lever or button is stuck.
This is used in conjunction withDirectionalto compute the orientation of these blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSwitch.FaceThe face to which a switch type block is stuck.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Switch.FacegetFace()Gets the value of the 'face' property.voidsetFace(Switch.Face face)Sets the value of the 'face' property.-
Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getMaterial, matches, merge
-
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
Methods inherited from interface org.bukkit.block.data.Powerable
isPowered, setPowered
-
-
-
-
Method Detail
-
getFace
@NotNull Switch.Face getFace()
Gets the value of the 'face' property.- Returns:
- the 'face' value
-
setFace
void setFace(@NotNull Switch.Face face)Sets the value of the 'face' property.- Parameters:
face- the new 'face' value
-
-