Class Structure.StructureBlock

java.lang.Object
redempt.redlib.multiblock.Structure.StructureBlock
Enclosing class:
Structure

public static class Structure.StructureBlock extends Object
Represents a block in a Structure instance
  • Method Details

    • getRelativeCoordinates

      public int[] getRelativeCoordinates()
      Gets the relative coordinates of this block in the Structure. The same block will always be in the same relative location across Structures, regardless of rotation. [x, y, z]
      Returns:
      The relative coordiantes of this StructureBlock
    • getStructureData

      public org.bukkit.block.BlockState getStructureData()
      Returns:
      The BlockState that the MultiBlockStructure would set at this location if it were built here
    • getStructureType

      public org.bukkit.Material getStructureType()
      Returns:
      The Material that the MultiBlockStructure would set at this location if it were built here
    • getRelativeX

      public int getRelativeX()
      Gets the relative X of this block
      Returns:
      The relative X of this block
    • getRelativeY

      public int getRelativeY()
      Gets the relative Y of this block
      Returns:
      The relative Y of this block
    • getRelativeZ

      public int getRelativeZ()
      Gets the relative Z of this block
      Returns:
      The relative Z of this block
    • getStructure

      public Structure getStructure()
      Gets the Structure this block is part of
      Returns:
      The Structure
    • getBlock

      public org.bukkit.block.Block getBlock()
      Gets the Block this StructureBlock references
      Returns:
      The Block