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

public class BoundingBox extends Object
  • Field Details Link icon

    • LOGGER Link icon

      private static final org.slf4j.Logger LOGGER
    • CODEC Link icon

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

      private int minX
    • minY Link icon

      private int minY
    • minZ Link icon

      private int minZ
    • maxX Link icon

      private int maxX
    • maxY Link icon

      private int maxY
    • maxZ Link icon

      private int maxZ
  • Constructor Details Link icon

    • BoundingBox Link icon

      public BoundingBox(BlockPos p_162364_)
    • BoundingBox Link icon

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

    • fromCorners Link icon

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

      public static BoundingBox infinite()
    • orientBox Link icon

      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_)
    • intersectingChunks Link icon

      public Stream<ChunkPos> intersectingChunks()
    • intersects Link icon

      public boolean intersects(BoundingBox p_71050_)
    • intersects Link icon

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

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

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

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

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

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

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

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

      public BoundingBox inflatedBy(int p_191962_)
    • inflatedBy Link icon

      public BoundingBox inflatedBy(int p_332684_, int p_332721_, int p_329326_)
    • isInside Link icon

      public boolean isInside(Vec3i p_71052_)
    • isInside Link icon

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

      public Vec3i getLength()
    • getXSpan Link icon

      public int getXSpan()
    • getYSpan Link icon

      public int getYSpan()
    • getZSpan Link icon

      public int getZSpan()
    • getCenter Link icon

      public BlockPos getCenter()
    • forAllCorners Link icon

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

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

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

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

      public int minX()
    • minY Link icon

      public int minY()
    • minZ Link icon

      public int minZ()
    • maxX Link icon

      public int maxX()
    • maxY Link icon

      public int maxY()
    • maxZ Link icon

      public int maxZ()