<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a></code>, <code><ahref="../configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">BoundingBox</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a>, <ahref="../configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></span></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#contains(org.bukkit.util.BoundingBox)"class="member-name-link">contains</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#contains(org.bukkit.util.Vector)"class="member-name-link">contains</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> position)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#contains(org.bukkit.util.Vector,org.bukkit.util.Vector)"class="member-name-link">contains</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> min,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> max)</code></div>
<divclass="block">Checks if this bounding box fully contains the bounding box that is
defined by the given corners.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#copy(org.bukkit.util.BoundingBox)"class="member-name-link">copy</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</code></div>
<divclass="block">Copies another bounding box.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#deserialize(java.util.Map)"class="member-name-link">deserialize</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> args)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Expands this bounding box uniformly by the given value in all directions.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Expands this bounding box uniformly by the given values in both positive
and negative directions.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Expands this bounding box in the specified direction.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Expands this bounding box by the given values in the corresponding
directions.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#expand(org.bukkit.block.BlockFace,double)"class="member-name-link">expand</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> blockFace,
<divclass="block">Expands this bounding box in the direction specified by the given block
face.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#expand(org.bukkit.util.Vector)"class="member-name-link">expand</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> expansion)</code></div>
<divclass="block">Expands this bounding box uniformly by the given values in both positive
and negative directions.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#expand(org.bukkit.util.Vector,double)"class="member-name-link">expand</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> direction,
<divclass="block">Expands this bounding box in the specified direction.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Expands this bounding box in the specified direction.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#expandDirectional(org.bukkit.util.Vector)"class="member-name-link">expandDirectional</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> direction)</code></div>
<divclass="block">Expands this bounding box in the specified direction.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a></code></div>
<divclass="block">Gets the height of the bounding box.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#intersection(org.bukkit.util.BoundingBox)"class="member-name-link">intersection</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</code></div>
<divclass="block">Resizes this bounding box to represent the intersection of this and the
given bounding box.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#of(org.bukkit.block.Block)"class="member-name-link">of</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a> block)</code></div>
<divclass="block">Creates a new 1x1x1 sized bounding box containing the given block.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#of(org.bukkit.block.Block,org.bukkit.block.Block)"class="member-name-link">of</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a> corner1,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a> corner2)</code></div>
<divclass="block">Creates a new bounding box using the coordinates of the given blocks as
corners.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#of(org.bukkit.Location,double,double,double)"class="member-name-link">of</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> center,
<divclass="block">Creates a new bounding box using the given center and extents.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#of(org.bukkit.Location,org.bukkit.Location)"class="member-name-link">of</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> corner1,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> corner2)</code></div>
<divclass="block">Creates a new bounding box using the coordinates of the given locations
as corners.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#of(org.bukkit.util.Vector,double,double,double)"class="member-name-link">of</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> center,
<divclass="block">Creates a new bounding box using the given center and extents.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#of(org.bukkit.util.Vector,org.bukkit.util.Vector)"class="member-name-link">of</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> corner1,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> corner2)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#overlaps(org.bukkit.util.BoundingBox)"class="member-name-link">overlaps</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#overlaps(org.bukkit.util.Vector,org.bukkit.util.Vector)"class="member-name-link">overlaps</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> min,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> max)</code></div>
<divclass="block">Checks if this bounding box overlaps with the bounding box that is
defined by the given corners.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#rayTrace(org.bukkit.util.Vector,org.bukkit.util.Vector,double)"class="member-name-link">rayTrace</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> start,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> direction,
<divclass="block">Calculates the intersection of this bounding box with the specified line
segment.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Resizes this bounding box.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>></code></div>
<divclass="block">Creates a Map representation of this class.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Shifts this bounding box by the given amounts.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#shift(org.bukkit.Location)"class="member-name-link">shift</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> shift)</code></div>
<divclass="block">Shifts this bounding box by the given amounts.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#shift(org.bukkit.util.Vector)"class="member-name-link">shift</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> shift)</code></div>
<divclass="block">Shifts this bounding box by the given amounts.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="block">Expands this bounding box to contain (or border) the specified position.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#union(org.bukkit.Location)"class="member-name-link">union</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> position)</code></div>
<divclass="block">Expands this bounding box to contain (or border) the specified position.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#union(org.bukkit.util.BoundingBox)"class="member-name-link">union</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</code></div>
<divclass="block">Expands this bounding box to contain both this and the given bounding
box.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#union(org.bukkit.util.Vector)"class="member-name-link">union</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> position)</code></div>
<divclass="block">Expands this bounding box to contain (or border) the specified position.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">of</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> corner1,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> corner2)</span></div>
<divclass="block">Creates a new bounding box using the coordinates of the given vectors as
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">of</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> corner1,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> corner2)</span></div>
<divclass="block">Creates a new bounding box using the coordinates of the given locations
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">of</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a> corner1,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a> corner2)</span></div>
<divclass="block">Creates a new bounding box using the coordinates of the given blocks as
corners.
<p>
The bounding box will be sized to fully contain both blocks.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>corner1</code> - the first corner block</dd>
<dd><code>corner2</code> - the second corner block</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">of</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a> block)</span></div>
<divclass="block">Creates a new 1x1x1 sized bounding box containing the given block.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">of</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> center,
double x,
double y,
double z)</span></div>
<divclass="block">Creates a new bounding box using the given center and extents.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>center</code> - the center</dd>
<dd><code>x</code> - 1/2 the size of the bounding box along the x axis</dd>
<dd><code>y</code> - 1/2 the size of the bounding box along the y axis</dd>
<dd><code>z</code> - 1/2 the size of the bounding box along the z axis</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">of</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> center,
double x,
double y,
double z)</span></div>
<divclass="block">Creates a new bounding box using the given center and extents.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>center</code> - the center</dd>
<dd><code>x</code> - 1/2 the size of the bounding box along the x axis</dd>
<dd><code>y</code> - 1/2 the size of the bounding box along the y axis</dd>
<dd><code>z</code> - 1/2 the size of the bounding box along the z axis</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">resize</span><wbr><spanclass="parameters">(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)</span></div>
<divclass="block">Resizes this bounding box.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x1</code> - the first corner's x value</dd>
<dd><code>y1</code> - the first corner's y value</dd>
<dd><code>z1</code> - the first corner's z value</dd>
<dd><code>x2</code> - the second corner's x value</dd>
<dd><code>y2</code> - the second corner's y value</dd>
<dd><code>z2</code> - the second corner's z value</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a></span> <spanclass="element-name">getMin</span>()</div>
<divclass="block">Gets the minimum corner as vector.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a></span> <spanclass="element-name">getMax</span>()</div>
<divclass="block">Gets the maximum corner as vector.</div>
<divclass="block">Gets the z coordinate of the center of the bounding box.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the center's z coordinate</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCenter()">
<h3>getCenter</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a></span> <spanclass="element-name">getCenter</span>()</div>
<divclass="block">Gets the center of the bounding box.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">copy</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</span></div>
<divclass="block">Copies another bounding box.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - the other bounding box</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(double negativeX,
double negativeY,
double negativeZ,
double positiveX,
double positiveY,
double positiveZ)</span></div>
<divclass="block">Expands this bounding box by the given values in the corresponding
directions.
<p>
Negative values will shrink the bounding box in the corresponding
direction. Shrinking will be limited to the point where the affected
opposite faces would meet if the they shrank at uniform speeds.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>negativeX</code> - the amount of expansion in the negative x direction</dd>
<dd><code>negativeY</code> - the amount of expansion in the negative y direction</dd>
<dd><code>negativeZ</code> - the amount of expansion in the negative z direction</dd>
<dd><code>positiveX</code> - the amount of expansion in the positive x direction</dd>
<dd><code>positiveY</code> - the amount of expansion in the positive y direction</dd>
<dd><code>positiveZ</code> - the amount of expansion in the positive z direction</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(double x,
double y,
double z)</span></div>
<divclass="block">Expands this bounding box uniformly by the given values in both positive
and negative directions.
<p>
Negative values will shrink the bounding box. Shrinking will be limited
to the bounding box's current size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - the amount of expansion in both positive and negative x
direction</dd>
<dd><code>y</code> - the amount of expansion in both positive and negative y
direction</dd>
<dd><code>z</code> - the amount of expansion in both positive and negative z
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> expansion)</span></div>
<divclass="block">Expands this bounding box uniformly by the given values in both positive
and negative directions.
<p>
Negative values will shrink the bounding box. Shrinking will be limited
to the bounding box's current size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>expansion</code> - the expansion values</dd>
<dt>Returns:</dt>
<dd>this bounding box (now expanded)</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="expand(double)">
<h3>expand</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(double expansion)</span></div>
<divclass="block">Expands this bounding box uniformly by the given value in all directions.
<p>
A negative value will shrink the bounding box. Shrinking will be limited
to the bounding box's current size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>expansion</code> - the amount of expansion</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(double dirX,
double dirY,
double dirZ,
double expansion)</span></div>
<divclass="block">Expands this bounding box in the specified direction.
<p>
The magnitude of the direction will scale the expansion. A negative
expansion value will shrink the bounding box in this direction. Shrinking
will be limited to the bounding box's current size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>dirX</code> - the x direction component</dd>
<dd><code>dirY</code> - the y direction component</dd>
<dd><code>dirZ</code> - the z direction component</dd>
<dd><code>expansion</code> - the amount of expansion</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> direction,
double expansion)</span></div>
<divclass="block">Expands this bounding box in the specified direction.
<p>
The magnitude of the direction will scale the expansion. A negative
expansion value will shrink the bounding box in this direction. Shrinking
will be limited to the bounding box's current size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>direction</code> - the direction</dd>
<dd><code>expansion</code> - the amount of expansion</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expand</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> blockFace,
double expansion)</span></div>
<divclass="block">Expands this bounding box in the direction specified by the given block
face.
<p>
A negative expansion value will shrink the bounding box in this
direction. Shrinking will be limited to the bounding box's current size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>blockFace</code> - the block face</dd>
<dd><code>expansion</code> - the amount of expansion</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expandDirectional</span><wbr><spanclass="parameters">(double dirX,
double dirY,
double dirZ)</span></div>
<divclass="block">Expands this bounding box in the specified direction.
<p>
Negative values will expand the bounding box in the negative direction,
positive values will expand it in the positive direction. The magnitudes
of the direction components determine the corresponding amounts of
expansion.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>dirX</code> - the x direction component</dd>
<dd><code>dirY</code> - the y direction component</dd>
<dd><code>dirZ</code> - the z direction component</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">expandDirectional</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> direction)</span></div>
<divclass="block">Expands this bounding box in the specified direction.
<p>
Negative values will expand the bounding box in the negative direction,
positive values will expand it in the positive direction. The magnitude
of the direction vector determines the amount of expansion.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>direction</code> - the direction and magnitude of the expansion</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">union</span><wbr><spanclass="parameters">(double posX,
double posY,
double posZ)</span></div>
<divclass="block">Expands this bounding box to contain (or border) the specified position.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">union</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> position)</span></div>
<divclass="block">Expands this bounding box to contain (or border) the specified position.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">union</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> position)</span></div>
<divclass="block">Expands this bounding box to contain (or border) the specified position.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">union</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</span></div>
<divclass="block">Expands this bounding box to contain both this and the given bounding
box.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - the other bounding box</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">intersection</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</span></div>
<divclass="block">Resizes this bounding box to represent the intersection of this and the
given bounding box.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - the other bounding box</dd>
<dt>Returns:</dt>
<dd>this bounding box (now representing the intersection)</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if the bounding boxes don't overlap</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">shift</span><wbr><spanclass="parameters">(double shiftX,
double shiftY,
double shiftZ)</span></div>
<divclass="block">Shifts this bounding box by the given amounts.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>shiftX</code> - the shift in x direction</dd>
<dd><code>shiftY</code> - the shift in y direction</dd>
<dd><code>shiftZ</code> - the shift in z direction</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">shift</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> shift)</span></div>
<divclass="block">Shifts this bounding box by the given amounts.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">shift</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> shift)</span></div>
<divclass="block">Shifts this bounding box by the given amounts.</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">overlaps</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</span></div>
<divclass="block">Checks if this bounding box overlaps with the given bounding box.
<p>
Bounding boxes that are only intersecting at the borders are not
considered overlapping.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - the other bounding box</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">overlaps</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> min,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> max)</span></div>
<divclass="block">Checks if this bounding box overlaps with the bounding box that is
defined by the given corners.
<p>
Bounding boxes that are only intersecting at the borders are not
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">contains</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> position)</span></div>
<divclass="block">Checks if this bounding box contains the specified position.
<p>
Positions exactly on the minimum borders of the bounding box are
considered to be inside the bounding box, while positions exactly on the
maximum borders are considered to be outside. This allows bounding boxes
to reside directly next to each other with positions always only residing
in exactly one of them.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>position</code> - the position</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the bounding box contains the position</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">contains</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> other)</span></div>
<divclass="block">Checks if this bounding box fully contains the given bounding box.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - the other bounding box</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the bounding box contains the given bounding
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">contains</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> min,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> max)</span></div>
<divclass="block">Checks if this bounding box fully contains the bounding box that is
defined by the given corners.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>min</code> - the first corner</dd>
<dd><code>max</code> - the second corner</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the bounding box contains the specified
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></span> <spanclass="element-name">rayTrace</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> start,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Vector.html"title="class in org.bukkit.util">Vector</a> direction,
double maxDistance)</span></div>
<divclass="block">Calculates the intersection of this bounding box with the specified line
segment.
<p>
Intersections at edges and corners yield one of the affected block faces
as hit result, but it is not defined which of them.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>start</code> - the start position</dd>
<dd><code>direction</code> - the ray direction</dd>
<dd><code>maxDistance</code> - the maximum distance</dd>
<dt>Returns:</dt>
<dd>the ray trace hit result, or <code>null</code> if there is no hit</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</span></div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toString()">
<h3>toString</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">toString</span>()</div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="clone()">
<h3>clone</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">clone</span>()</div>
<divclass="block">Creates a copy of this bounding box.</div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<dt>Returns:</dt>
<dd>the cloned bounding box</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="serialize()">
<h3>serialize</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>></span> <spanclass="element-name">serialize</span>()</div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../configuration/serialization/ConfigurationSerializable.html#serialize()">ConfigurationSerializable</a></code></span></div>
<divclass="block">Creates a Map representation of this class.
<p>
This class must provide a method to restore this class, as defined in
the <ahref="../configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization"><code>ConfigurationSerializable</code></a> interface javadocs.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../configuration/serialization/ConfigurationSerializable.html#serialize()">serialize</a></code> in interface <code><ahref="../configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></code></dd>
<dt>Returns:</dt>
<dd>Map containing the current state of this class</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">deserialize</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> args)</span></div>