Class StructureBoundingBox

java.lang.Object
net.minecraft.src.StructureBoundingBox

public class StructureBoundingBox extends Object
  • Field Details

    • minX

      public int minX
      The first x coordinate of a bounding box.
    • minY

      public int minY
      The first y coordinate of a bounding box.
    • minZ

      public int minZ
      The first z coordinate of a bounding box.
    • maxX

      public int maxX
      The second x coordinate of a bounding box.
    • maxY

      public int maxY
      The second y coordinate of a bounding box.
    • maxZ

      public int maxZ
      The second z coordinate of a bounding box.
  • Constructor Details

    • StructureBoundingBox

      public StructureBoundingBox()
    • StructureBoundingBox

      public StructureBoundingBox(int[] par1ArrayOfInteger)
    • StructureBoundingBox

      public StructureBoundingBox(StructureBoundingBox par1StructureBoundingBox)
    • StructureBoundingBox

      public StructureBoundingBox(int par1, int par2, int par3, int par4, int par5, int par6)
    • StructureBoundingBox

      public StructureBoundingBox(int par1, int par2, int par3, int par4)
  • Method Details

    • getNewBoundingBox

      public static StructureBoundingBox getNewBoundingBox()
      returns a new StructureBoundingBox with MAX values
    • getComponentToAddBoundingBox

      public static StructureBoundingBox getComponentToAddBoundingBox(int par0, int par1, int par2, int par3, int par4, int par5, int par6, int par7, int par8, int par9)
      used to project a possible new component Bounding Box - to check if it would cut anything already spawned
    • intersectsWith

      public boolean intersectsWith(StructureBoundingBox par1StructureBoundingBox)
      Returns whether the given bounding box intersects with this one. Args: structureboundingbox
    • intersectsWith

      public boolean intersectsWith(int par1, int par2, int par3, int par4)
      Discover if a coordinate is inside the bounding box area.
    • expandTo

      public void expandTo(StructureBoundingBox par1StructureBoundingBox)
      Expands a bounding box's dimensions to include the supplied bounding box.
    • offset

      public void offset(int par1, int par2, int par3)
      Offsets the current bounding box by the specified coordinates. Args: x, y, z
    • isVecInside

      public boolean isVecInside(int par1, int par2, int par3)
      Returns true if block is inside bounding box
    • getXSize

      public int getXSize()
      Returns width of a bounding box
    • getYSize

      public int getYSize()
      Returns height of a bounding box
    • getZSize

      public int getZSize()
      Returns length of a bounding box
    • getCenterX

      public int getCenterX()
    • getCenterY

      public int getCenterY()
    • getCenterZ

      public int getCenterZ()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • func_143047_a

      public NBTTagIntArray func_143047_a(String par1Str)