java.lang.Object
com.simibubi.create.foundation.utility.flywheel.box.MutableBox
All Implemented Interfaces:
Box

public class MutableBox extends Object implements Box
  • Field Details

    • minX

      protected int minX
    • minY

      protected int minY
    • minZ

      protected int minZ
    • maxX

      protected int maxX
    • maxY

      protected int maxY
    • maxZ

      protected int maxZ
  • Constructor Details

    • MutableBox

      public MutableBox()
    • MutableBox

      public MutableBox(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
  • Method Details

    • from

      public static MutableBox from(net.minecraft.world.phys.AABB aabb)
    • from

      public static MutableBox from(net.minecraft.core.Vec3i pos)
    • from

      public static MutableBox from(net.minecraft.core.SectionPos pos)
    • from

      public static MutableBox from(net.minecraft.core.Vec3i start, net.minecraft.core.Vec3i end)
    • ofRadius

      public static MutableBox ofRadius(int radius)
    • containingAll

      public static Box containingAll(Collection<net.minecraft.core.BlockPos> positions)
    • getMinX

      public int getMinX()
      Specified by:
      getMinX in interface Box
    • getMinY

      public int getMinY()
      Specified by:
      getMinY in interface Box
    • getMinZ

      public int getMinZ()
      Specified by:
      getMinZ in interface Box
    • getMaxX

      public int getMaxX()
      Specified by:
      getMaxX in interface Box
    • getMaxY

      public int getMaxY()
      Specified by:
      getMaxY in interface Box
    • getMaxZ

      public int getMaxZ()
      Specified by:
      getMaxZ in interface Box
    • setMinX

      public void setMinX(int minX)
    • setMinY

      public void setMinY(int minY)
    • setMinZ

      public MutableBox setMinZ(int minZ)
    • setMaxX

      public void setMaxX(int maxX)
    • setMaxY

      public void setMaxY(int maxY)
    • setMaxZ

      public void setMaxZ(int maxZ)
    • setMin

      public void setMin(int x, int y, int z)
    • setMax

      public void setMax(int x, int y, int z)
    • setMin

      public void setMin(net.minecraft.core.Vec3i v)
    • setMax

      public void setMax(net.minecraft.core.Vec3i v)
    • assign

      public void assign(Box other)
    • assign

      public void assign(net.minecraft.world.phys.AABB other)
    • assign

      public void assign(net.minecraft.core.Vec3i start, net.minecraft.core.Vec3i end)
    • unionAssign

      public void unionAssign(Box other)
    • unionAssign

      public void unionAssign(net.minecraft.world.phys.AABB other)
    • intersectAssign

      public void intersectAssign(Box other)
    • fixMinMax

      public void fixMinMax()
    • translate

      public void translate(int x, int y, int z)
    • translate

      public void translate(net.minecraft.core.Vec3i by)
    • grow

      public void grow(int x, int y, int z)
    • grow

      public void grow(int s)
    • nextPowerOf2

      public void nextPowerOf2()
      Grow this box to have power of 2 side lengths, scaling from the minimum coords.
    • nextPowerOf2Centered

      public void nextPowerOf2Centered()
      Grow this box to have power of 2 side length, scaling from the center.
    • mirrorAbout

      public void mirrorAbout(net.minecraft.core.Direction.Axis axis)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object