Class GlowStructurePiece

java.lang.Object
net.glowstone.generator.structures.GlowStructurePiece
Direct Known Subclasses:
GlowDesertWell, GlowDungeon, GlowTemplePiece

public abstract class GlowStructurePiece extends Object
  • Field Details

  • Constructor Details

    • GlowStructurePiece

      public GlowStructurePiece()
    • GlowStructurePiece

      public GlowStructurePiece(org.bukkit.Location location, org.bukkit.util.Vector size)
    • GlowStructurePiece

      public GlowStructurePiece(Random random, org.bukkit.Location location, org.bukkit.util.Vector size)
      Creates a structure piece.
      Parameters:
      random - the PRNG that will choose the orientation
      location - the root location
      size - the size as a width-height-depth vector
  • Method Details

    • getNumericOrientation

      public int getNumericOrientation()
      Returns the orientation using the numeric code from NBT.
      Returns:
      the orientation (0=north, 1=east, 2=south, 3=west)
    • setNumericOrientation

      public void setNumericOrientation(int orientation)
      Sets the orientation using the numeric code from NBT.
      Parameters:
      orientation - the new orientation (0=north, 1=east, 2=south, 3=west)
    • getRelativeFacing

      protected final org.bukkit.block.BlockFace getRelativeFacing(org.bukkit.block.BlockFace face)
    • generate

      public boolean generate(org.bukkit.World world, Random random, StructureBoundingBox boundingBox, BlockStateDelegate delegate)
    • getBoundingBox

      public StructureBoundingBox getBoundingBox()
    • setBoundingBox

      public void setBoundingBox(StructureBoundingBox boundingBox)
    • getOrientation

      public org.bukkit.block.BlockFace getOrientation()
    • getUnknownGd

      public int getUnknownGd()
      The NBT data field "GD" described in https://minecraft.gamepedia.com/Generated_structures_data_file_format like this: "Appears to be some sort of measure of how far this piece is from the start."
    • setUnknownGd

      public void setUnknownGd(int unknownGd)
      The NBT data field "GD" described in https://minecraft.gamepedia.com/Generated_structures_data_file_format like this: "Appears to be some sort of measure of how far this piece is from the start."