Class AxisOrFace

java.lang.Object
me.xxastaspastaxx.dimensions.AxisOrFace

public class AxisOrFace extends Object
Is used to combine Orientable & Directional
  • Constructor Summary

    Constructors
    Constructor
    Description
    AxisOrFace​(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 Type
    Method
    Description
    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
    boolean
    isData​(org.bukkit.block.data.BlockData blockData)
    Check if the block data has the correct Axis/Face

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AxisOrFace

      public AxisOrFace(String axisOrFace)
      Stores the axis or the face if there is a value of the given string in any of these enums
      Parameters:
      axisOrFace - String value of Axis or BlockFace
  • 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