java.lang.Object
net.minecraft.world.level.levelgen.structure.BoundingBox

public class BoundingBox extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • CODEC

      public static final com.mojang.serialization.Codec<BoundingBox> CODEC
    • minX

      private int minX
    • minY

      private int minY
    • minZ

      private int minZ
    • maxX

      private int maxX
    • maxY

      private int maxY
    • maxZ

      private int maxZ
  • Constructor Details

    • BoundingBox

      public BoundingBox(BlockPos p_162364_)
    • BoundingBox

      public BoundingBox(int p_71001_, int p_71002_, int p_71003_, int p_71004_, int p_71005_, int p_71006_)
  • Method Details

    • fromCorners

      public static BoundingBox fromCorners(Vec3i p_162376_, Vec3i p_162377_)
    • infinite

      public static BoundingBox infinite()
    • orientBox

      public static BoundingBox orientBox(int p_71032_, int p_71033_, int p_71034_, int p_71035_, int p_71036_, int p_71037_, int p_71038_, int p_71039_, int p_71040_, Direction p_71041_)
    • intersects

      public boolean intersects(BoundingBox p_71050_)
    • intersects

      public boolean intersects(int p_71020_, int p_71021_, int p_71022_, int p_71023_)
    • encapsulatingPositions

      public static Optional<BoundingBox> encapsulatingPositions(Iterable<BlockPos> p_162379_)
    • encapsulatingBoxes

      public static Optional<BoundingBox> encapsulatingBoxes(Iterable<BoundingBox> p_162389_)
    • encapsulate

      @Deprecated public BoundingBox encapsulate(BoundingBox p_162387_)
      Deprecated.
    • encapsulate

      @Deprecated public BoundingBox encapsulate(BlockPos p_162372_)
      Deprecated.
    • move

      @Deprecated public BoundingBox move(int p_162368_, int p_162369_, int p_162370_)
      Deprecated.
    • move

      @Deprecated public BoundingBox move(Vec3i p_162374_)
      Deprecated.
    • moved

      public BoundingBox moved(int p_71046_, int p_71047_, int p_71048_)
    • inflatedBy

      public BoundingBox inflatedBy(int p_191962_)
    • isInside

      public boolean isInside(Vec3i p_71052_)
    • isInside

      public boolean isInside(int p_261671_, int p_261537_, int p_261678_)
    • getLength

      public Vec3i getLength()
    • getXSpan

      public int getXSpan()
    • getYSpan

      public int getYSpan()
    • getZSpan

      public int getZSpan()
    • getCenter

      public BlockPos getCenter()
    • forAllCorners

      public void forAllCorners(Consumer<BlockPos> p_162381_)
    • toString

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

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

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

      public int minX()
    • minY

      public int minY()
    • minZ

      public int minZ()
    • maxX

      public int maxX()
    • maxY

      public int maxY()
    • maxZ

      public int maxZ()