Package me.xxastaspastaxx.dimensions
Class AxisOrFace
java.lang.Object
me.xxastaspastaxx.dimensions.AxisOrFace
Is used to combine Orientable & Directional
-
Constructor Summary
ConstructorsConstructorDescriptionAxisOrFace(String axisOrFace)Stores the axis or the face if there is a value of the given string in any of these enums -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.data.BlockDatagetNewData(org.bukkit.block.data.BlockData blockData)Changes the block data to be placed either along the set Axis or facing the set BlockFacebooleanisData(org.bukkit.block.data.BlockData blockData)Check if the block data has the correct Axis/Face
-
Constructor Details
-
Method Details
-
getNewData
public org.bukkit.block.data.BlockData getNewData(org.bukkit.block.data.BlockData blockData)Changes the block data to be placed either along the set Axis or facing the set BlockFace- Parameters:
blockData- the BlockData that is going to be corrected- Returns:
- the BlockData with the correct Axis/Face
-
isData
public boolean isData(org.bukkit.block.data.BlockData blockData)Check if the block data has the correct Axis/Face- Parameters:
blockData- the blockdata that is going to be checkd- Returns:
- true if the block data has the correct Axis/Face
-