<dd><code>net.kyori.adventure.key.Keyed</code>, <code><ahref="Keyed.html"title="interface in org.bukkit">Keyed</a></code></dd>
</dl>
<dlclass="notes">
<dt>All Known Subinterfaces:</dt>
<dd><code><ahref="generator/LimitedRegion.html"title="interface in org.bukkit.generator">LimitedRegion</a></code>, <code><ahref="World.html"title="interface in org.bukkit">World</a></code></dd>
extends <ahref="Keyed.html"title="interface in org.bukkit">Keyed</a></span></div>
<divclass="block">A RegionAccessor gives access to getting, modifying and spawning <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a>, <ahref="block/BlockState.html"title="interface in org.bukkit.block"><code>BlockState</code></a> and <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a>,
as well as generating some basic structures.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#generateTree(org.bukkit.Location,java.util.Random,org.bukkit.TreeType)"class="member-name-link">generateTree</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> location,
<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/Random.html"title="class or interface in java.util"class="external-link">Random</a> random,
<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="TreeType.html"title="enum class in org.bukkit">TreeType</a> type)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#generateTree(org.bukkit.Location,java.util.Random,org.bukkit.TreeType,java.util.function.Predicate)"class="member-name-link">generateTree</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> location,
<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/Random.html"title="class or interface in java.util"class="external-link">Random</a> random,
<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="TreeType.html"title="enum class in org.bukkit">TreeType</a> 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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>> statePredicate)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#generateTree(org.bukkit.Location,java.util.Random,org.bukkit.TreeType,org.bukkit.util.Consumer)"class="member-name-link">generateTree</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> location,
<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/Random.html"title="class or interface in java.util"class="external-link">Random</a> random,
<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="TreeType.html"title="enum class in org.bukkit">TreeType</a> 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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><<ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>> stateConsumer)</code></div>
<divclass="block">Creates a tree at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a></div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/Biome.html"title="enum class in org.bukkit.block">Biome</a></code></div>
<divclass="block">Gets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given coordinates.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/Biome.html"title="enum class in org.bukkit.block">Biome</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getBiome(org.bukkit.Location)"class="member-name-link">getBiome</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> location)</code></div>
<divclass="block">Gets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a></code></div>
<divclass="block">Gets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given coordinates.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getBlockData(org.bukkit.Location)"class="member-name-link">getBlockData</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> location)</code></div>
<divclass="block">Gets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a></code></div>
<divclass="block">Gets the <ahref="block/BlockState.html"title="interface in org.bukkit.block"><code>BlockState</code></a> at the given coordinates.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getBlockState(org.bukkit.Location)"class="member-name-link">getBlockState</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> location)</code></div>
<divclass="block">Gets the <ahref="block/BlockState.html"title="interface in org.bukkit.block"><code>BlockState</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="block/Biome.html"title="enum class in org.bukkit.block">Biome</a></code></div>
<divclass="block">Gets the computed <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given coordinates.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></code></div>
<divclass="block">Get a list of all entities in this RegionAccessor</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><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/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getEntitiesByClass(java.lang.Class)"class="member-name-link">getEntitiesByClass</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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> cls)</code></div>
<divclass="block">Get a collection of all entities in this RegionAccessor matching the given
class/interface</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getEntitiesByClasses(java.lang.Class...)"class="member-name-link">getEntitiesByClasses</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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><?>... classes)</code></div>
<divclass="block">Get a collection of all entities in this RegionAccessor matching any of the
given classes/interfaces</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<divclass="block">Get a list of all living entities in this RegionAccessor</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="../../io/papermc/paper/world/MoonPhase.html"title="enum class in io.papermc.paper.world">MoonPhase</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="Material.html"title="enum class in org.bukkit">Material</a></code></div>
<divclass="block">Gets the type of the block at the given coordinates.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="Material.html"title="enum class in org.bukkit">Material</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getType(org.bukkit.Location)"class="member-name-link">getType</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> location)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#lineOfSightExists(org.bukkit.Location,org.bukkit.Location)"class="member-name-link">lineOfSightExists</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> from,
<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> to)</code></div>
<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/Biome.html"title="enum class in org.bukkit.block">Biome</a> biome)</code></div>
<divclass="block">Sets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> for the given block coordinates</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setBiome(org.bukkit.Location,org.bukkit.block.Biome)"class="member-name-link">setBiome</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> location,
<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/Biome.html"title="enum class in org.bukkit.block">Biome</a> biome)</code></div>
<divclass="block">Sets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<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/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> blockData)</code></div>
<divclass="block">Sets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given coordinates.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setBlockData(org.bukkit.Location,org.bukkit.block.data.BlockData)"class="member-name-link">setBlockData</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> location,
<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/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> blockData)</code></div>
<divclass="block">Sets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<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="Material.html"title="enum class in org.bukkit">Material</a> material)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setType(org.bukkit.Location,org.bukkit.Material)"class="member-name-link">setType</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> location,
<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="Material.html"title="enum class in org.bukkit">Material</a> material)</code></div>
<divclass="block">Sets the <ahref="Material.html"title="enum class in org.bukkit"><code>Material</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br>T</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#spawn(org.bukkit.Location,java.lang.Class)"class="member-name-link">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz)</code></div>
<divclass="block">Spawn an entity of a specific class at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a></div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br>T</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#spawn(org.bukkit.Location,java.lang.Class,boolean,org.bukkit.util.Consumer)"class="member-name-link">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
boolean randomizeData,
<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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function)</code></div>
<divclass="block">Creates a new entity at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a> with the supplied
function run before the entity is added to the world.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br>T</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><ahref="#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.util.Consumer)"class="member-name-link">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function)</code></div>
<divclass="block">Spawn an entity of a specific class at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>, with
the supplied function run before the entity is added to the world.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br>T</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.util.Consumer,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)"class="member-name-link">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function,
<ahref="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br>T</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><ahref="#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)"class="member-name-link">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<ahref="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br>T</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><ahref="#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason,org.bukkit.util.Consumer)"class="member-name-link">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<ahref="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason,
<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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#spawnEntity(org.bukkit.Location,org.bukkit.entity.EntityType)"class="member-name-link">spawnEntity</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> location,
<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="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> type)</code></div>
<divclass="block">Creates a entity at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a></div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#spawnEntity(org.bukkit.Location,org.bukkit.entity.EntityType,boolean)"class="member-name-link">spawnEntity</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> loc,
<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="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> type,
<divclass="block">Creates a new entity at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><ahref="#spawnEntity(org.bukkit.Location,org.bukkit.entity.EntityType,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)"class="member-name-link">spawnEntity</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> loc,
<ahref="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> type,
<ahref="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><ahref="#spawnEntity(org.bukkit.Location,org.bukkit.entity.EntityType,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason,org.bukkit.util.Consumer)"class="member-name-link">spawnEntity</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> loc,
<ahref="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> type,
<ahref="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason,
<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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>> function)</code></div>
<h3id="methods-inherited-from-class-org.bukkit.Keyed">Methods inherited from interface org.bukkit.<ahref="Keyed.html"title="interface in org.bukkit">Keyed</a></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="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="block/Biome.html"title="enum class in org.bukkit.block">Biome</a></span> <spanclass="element-name">getBiome</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> location)</span></div>
<divclass="block">Gets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - the location of the biome</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="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="block/Biome.html"title="enum class in org.bukkit.block">Biome</a></span> <spanclass="element-name">getBiome</span><wbr><spanclass="parameters">(int x,
int y,
int z)</span></div>
<divclass="block">Gets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given coordinates.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block</dd>
<dd><code>y</code> - Y-coordinate of the block</dd>
<dd><code>z</code> - Z-coordinate of the 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="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="block/Biome.html"title="enum class in org.bukkit.block">Biome</a></span> <spanclass="element-name">getComputedBiome</span><wbr><spanclass="parameters">(int x,
int y,
int z)</span></div>
<divclass="block">Gets the computed <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given coordinates.
<p>The computed Biome is the Biome as seen by clients for rendering
purposes and in the "F3" debug menu. This is computed by looking at the noise biome
at this and surrounding quarts and applying complex math operations.</p>
<p>Most other Biome-related methods named getBiome, setBiome, and similar
operate on the "noise biome", which is stored per-quart, or in other words,
1 Biome per 4x4x4 block region. This is how Biomes are currently generated and
stored on disk.</p></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block</dd>
<dd><code>y</code> - Y-coordinate of the block</dd>
<dd><code>z</code> - Z-coordinate of the block</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setBiome</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> location,
<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/Biome.html"title="enum class in org.bukkit.block">Biome</a> biome)</span></div>
<divclass="block">Sets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - the location of the biome</dd>
<dd><code>biome</code> - New Biome type for this block</dd>
<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/Biome.html"title="enum class in org.bukkit.block">Biome</a> biome)</span></div>
<divclass="block">Sets the <ahref="block/Biome.html"title="enum class in org.bukkit.block"><code>Biome</code></a> for the given block coordinates</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block</dd>
<dd><code>y</code> - Y-coordinate of the block</dd>
<dd><code>z</code> - Z-coordinate of the block</dd>
<dd><code>biome</code> - New Biome type for this 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="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="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a></span> <spanclass="element-name">getBlockState</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> location)</span></div>
<divclass="block">Gets the <ahref="block/BlockState.html"title="interface in org.bukkit.block"><code>BlockState</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The location of the block state</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="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="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a></span> <spanclass="element-name">getBlockState</span><wbr><spanclass="parameters">(int x,
int y,
int z)</span></div>
<divclass="block">Gets the <ahref="block/BlockState.html"title="interface in org.bukkit.block"><code>BlockState</code></a> at the given coordinates.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block state</dd>
<dd><code>y</code> - Y-coordinate of the block state</dd>
<dd><code>z</code> - Z-coordinate of the block state</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="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="block/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a></span> <spanclass="element-name">getBlockData</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> location)</span></div>
<divclass="block">Gets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The location of the block data</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="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="block/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a></span> <spanclass="element-name">getBlockData</span><wbr><spanclass="parameters">(int x,
int y,
int z)</span></div>
<divclass="block">Gets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given coordinates.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block data</dd>
<dd><code>y</code> - Y-coordinate of the block data</dd>
<dd><code>z</code> - Z-coordinate of the block data</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="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="Material.html"title="enum class in org.bukkit">Material</a></span> <spanclass="element-name">getType</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> location)</span></div>
<divclass="block">Gets the type of the block at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The location of the block</dd>
<dt>Returns:</dt>
<dd>Material at the given coordinates</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getType(int,int,int)">
<h3>getType</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="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="Material.html"title="enum class in org.bukkit">Material</a></span> <spanclass="element-name">getType</span><wbr><spanclass="parameters">(int x,
int y,
int z)</span></div>
<divclass="block">Gets the type of the block at the given coordinates.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block</dd>
<dd><code>y</code> - Y-coordinate of the block</dd>
<dd><code>z</code> - Z-coordinate of the block</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setBlockData</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> location,
<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/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> blockData)</span></div>
<divclass="block">Sets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The location of the block</dd>
<dd><code>blockData</code> - The block data to set the block to</dd>
<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/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> blockData)</span></div>
<divclass="block">Sets the <ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a> at the given coordinates.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block</dd>
<dd><code>y</code> - Y-coordinate of the block</dd>
<dd><code>z</code> - Z-coordinate of the block</dd>
<dd><code>blockData</code> - The block data to set the block to</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setType</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> location,
<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="Material.html"title="enum class in org.bukkit">Material</a> material)</span></div>
<divclass="block">Sets the <ahref="Material.html"title="enum class in org.bukkit"><code>Material</code></a> at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The location of the block</dd>
<dd><code>material</code> - The type to set the block to</dd>
<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="Material.html"title="enum class in org.bukkit">Material</a> material)</span></div>
<divclass="block">Sets the <ahref="Material.html"title="enum class in org.bukkit"><code>Material</code></a> at the given coordinates.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X-coordinate of the block</dd>
<dd><code>y</code> - Y-coordinate of the block</dd>
<dd><code>z</code> - Z-coordinate of the block</dd>
<dd><code>material</code> - The type to set the block to</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">generateTree</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> location,
<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/Random.html"title="class or interface in java.util"class="external-link">Random</a> random,
<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="TreeType.html"title="enum class in org.bukkit">TreeType</a> type)</span></div>
<divclass="block">Creates a tree at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - Location to spawn the tree</dd>
<dd><code>random</code> - Random to use to generated the tree</dd>
<dd><code>type</code> - Type of the tree to create</dd>
<dt>Returns:</dt>
<dd>true if the tree was created successfully, otherwise false</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">generateTree</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> location,
<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/Random.html"title="class or interface in java.util"class="external-link">Random</a> random,
<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="TreeType.html"title="enum class in org.bukkit">TreeType</a> 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="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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><<ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>> stateConsumer)</span></div>
<divclass="block">Creates a tree at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>
<p>
The provided consumer gets called for every block which gets changed
as a result of the tree generation. When the consumer gets called no
modifications to the world are done yet. Which means, that calling
<ahref="#getBlockState(org.bukkit.Location)"><code>getBlockState(Location)</code></a> in the consumer while return the state
of the block before the generation.
<p>
Modifications done to the <ahref="block/BlockState.html"title="interface in org.bukkit.block"><code>BlockState</code></a> in the consumer are respected,
which means that it is not necessary to call <ahref="block/BlockState.html#update()"><code>BlockState.update()</code></a></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - Location to spawn the tree</dd>
<dd><code>random</code> - Random to use to generated the tree</dd>
<dd><code>type</code> - Type of the tree to create</dd>
<dd><code>stateConsumer</code> - The consumer which should get called for every block which gets changed</dd>
<dt>Returns:</dt>
<dd>true if the tree was created successfully, otherwise false</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">generateTree</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> location,
<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/Random.html"title="class or interface in java.util"class="external-link">Random</a> random,
<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="TreeType.html"title="enum class in org.bukkit">TreeType</a> 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="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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>> statePredicate)</span></div>
<divclass="block">Creates a tree at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>
<p>
The provided predicate gets called for every block which gets changed
as a result of the tree generation. When the predicate gets called no
modifications to the world are done yet. Which means, that calling
<ahref="#getBlockState(org.bukkit.Location)"><code>getBlockState(Location)</code></a> in the predicate will return the state
of the block before the generation.
<p>
If the predicate returns <code>true</code> the block gets set in the world.
If it returns <code>false</code> the block won't get set in the world.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - Location to spawn the tree</dd>
<dd><code>random</code> - Random to use to generated the tree</dd>
<dd><code>type</code> - Type of the tree to create</dd>
<dd><code>statePredicate</code> - The predicate which should get used to test if a block should be set or not.</dd>
<dt>Returns:</dt>
<dd>true if the tree was created successfully, otherwise false</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="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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">spawnEntity</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> location,
<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="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> type)</span></div>
<divclass="block">Creates a entity at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The location to spawn the entity</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="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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">spawnEntity</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> loc,
<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="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> type,
boolean randomizeData)</span></div>
<divclass="block">Creates a new entity at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>loc</code> - the location at which the entity will be spawned.</dd>
<dd><code>type</code> - the entity type that determines the entity to spawn.</dd>
<dd><code>randomizeData</code> - whether or not the entity's data should be randomised
before spawning. By default entities are randomised
before spawning in regards to their equipment, age,
attributes, etc.
An example of this randomization would be the color of
a sheep, random enchantments on the equipment of mobs
or even a zombie becoming a chicken jockey.
If set to false, the entity will not be randomised
before spawning, meaning all their data will remain
in their default state and not further modifications
to the entity will be made.
Notably only entities that extend the
<ahref="entity/Mob.html"title="interface in org.bukkit.entity"><code>Mob</code></a> interface provide
randomisation logic for their spawn.
This parameter is hence useless for any other type
of entity.</dd>
<dt>Returns:</dt>
<dd>the spawned entity instance.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getEntities()">
<h3>getEntities</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="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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="element-name">getEntities</span>()</div>
<divclass="block">Get a list of all entities in this RegionAccessor</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A List of all Entities currently residing in this world accessor</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getLivingEntities()">
<h3>getLivingEntities</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="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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getLivingEntities</span>()</div>
<divclass="block">Get a list of all living entities in this RegionAccessor</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A List of all LivingEntities currently residing in this world accessor</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="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></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/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getEntitiesByClass</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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> cls)</span></div>
<divclass="block">Get a collection of all entities in this RegionAccessor matching the given
class/interface</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - an entity subclass</dd>
<dt>Parameters:</dt>
<dd><code>cls</code> - The class representing the type of entity to match</dd>
<dt>Returns:</dt>
<dd>A List of all Entities currently residing in this world accessor
<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="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/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="element-name">getEntitiesByClasses</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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><?>... classes)</span></div>
<divclass="block">Get a collection of all entities in this RegionAccessor matching any of the
given classes/interfaces</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>classes</code> - The classes representing the types of entity to match</dd>
<dt>Returns:</dt>
<dd>A List of all Entities currently residing in this world accessor
that match one or more of the given classes/interfaces</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="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type">T</span> <spanclass="element-name">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz)</span>
throws <spanclass="exceptions"><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></span></div>
<divclass="block">Spawn an entity of a specific class at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a></div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the class of the <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> to spawn</dd>
<dt>Parameters:</dt>
<dd><code>location</code> - the <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a> to spawn the entity at</dd>
<dd><code>clazz</code> - the class of the <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> to spawn</dd>
<dt>Returns:</dt>
<dd>an instance of the spawned <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a></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 either parameter is null or the
<ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> requested cannot be spawned</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">default</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type">T</span> <spanclass="element-name">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<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="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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function)</span>
throws <spanclass="exceptions"><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></span></div>
<divclass="block">Spawn an entity of a specific class at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a>, with
the supplied function run before the entity is added to the world.
<br>
Note that when the function is run, the entity will not be actually in
the world. Any operation involving such as teleporting the entity is undefined
until after this function returns.</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the class of the <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> to spawn</dd>
<dt>Parameters:</dt>
<dd><code>location</code> - the <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a> to spawn the entity at</dd>
<dd><code>clazz</code> - the class of the <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> to spawn</dd>
<dd><code>function</code> - the function to be run before the entity is spawned.</dd>
<dt>Returns:</dt>
<dd>an instance of the spawned <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a></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 either parameter is null or the
<ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> requested cannot be spawned</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">default</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type">T</span> <spanclass="element-name">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<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="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</span>
throws <spanclass="exceptions"><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></span></div>
<dlclass="notes">
<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></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">default</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type">T</span> <spanclass="element-name">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<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="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason,
<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="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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function)</span>
throws <spanclass="exceptions"><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></span></div>
<dlclass="notes">
<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></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">default</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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">spawnEntity</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> loc,
<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="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> 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="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</span></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">default</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="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">spawnEntity</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> loc,
<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="entity/EntityType.html"title="enum class in org.bukkit.entity">EntityType</a> 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="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason,
<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="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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>> function)</span></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="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type">T</span> <spanclass="element-name">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
<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="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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function,
<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="event/entity/CreatureSpawnEvent.SpawnReason.html"title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</span>
throws <spanclass="exceptions"><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></span></div>
<dlclass="notes">
<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></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="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type">T</span> <spanclass="element-name">spawn</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> location,
<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/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><T> clazz,
boolean randomizeData,
<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="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="util/Consumer.html"title="interface in org.bukkit.util">Consumer</a><T> function)</span>
throws <spanclass="exceptions"><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></span></div>
<divclass="block">Creates a new entity at the given <ahref="Location.html"title="class in org.bukkit"><code>Location</code></a> with the supplied
function run before the entity is added to the world.
<br>
Note that when the function is run, the entity will not be actually in
the world. Any operation involving such as teleporting the entity is undefined
until after this function returns.
The passed function however is run after the potential entity's spawn
randomization and hence already allows access to the values of the mob,
whether or not those were randomized, such as attributes or the entity
equipment.</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the generic type of the entity that is being created.</dd>
<dt>Parameters:</dt>
<dd><code>location</code> - the location at which the entity will be spawned.</dd>
<dd><code>clazz</code> - the class of the <ahref="entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> that is to be spawned.</dd>
<dd><code>randomizeData</code> - whether or not the entity's data should be randomised
before spawning. By default entities are randomised
before spawning in regards to their equipment, age,
attributes, etc.
An example of this randomization would be the color of
a sheep, random enchantments on the equipment of mobs
or even a zombie becoming a chicken jockey.
If set to false, the entity will not be randomised
before spawning, meaning all their data will remain
in their default state and not further modifications
to the entity will be made.
Notably only entities that extend the
<ahref="entity/Mob.html"title="interface in org.bukkit.entity"><code>Mob</code></a> interface provide
randomisation logic for their spawn.
This parameter is hence useless for any other type
of entity.</dd>
<dd><code>function</code> - the function to be run before the entity is spawned.</dd>
<dt>Returns:</dt>
<dd>the spawned entity instance.</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 either the world or clazz parameter are null.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getMoonPhase()">
<h3>getMoonPhase</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="return-type"><ahref="../../io/papermc/paper/world/MoonPhase.html"title="enum class in io.papermc.paper.world">MoonPhase</a></span> <spanclass="element-name">getMoonPhase</span>()</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the current moon phase at the current time in the world</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getKey()">
<h3>getKey</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="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="NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a></span> <spanclass="element-name">getKey</span>()</div>
<divclass="block">Get the world's key</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="Keyed.html#getKey()">getKey</a></code> in interface <code><ahref="Keyed.html"title="interface in org.bukkit">Keyed</a></code></dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">lineOfSightExists</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> from,
<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> to)</span></div>
<divclass="block">Tell whether a line of sight exists between the given locations</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>from</code> - Location to start at</dd>
<dd><code>to</code> - target Location</dd>
<dt>Returns:</dt>
<dd>whether a line of sight exists between <code>from</code> and <code>to</code></dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">hasCollisionsIn</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="util/BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a> boundingBox)</span></div>
<divclass="block">Checks if the world collides with the given boundingbox.
This will check for any colliding hard entities (boats, shulkers) / worldborder / blocks.
Does not load chunks that are within the bounding box.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>boundingBox</code> - the box to check collisions in</dd>