<dd><code><ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></code>, <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></code></dd>
extends <ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></span></div>
<divclass="block">Represents a block. This is a live object, and only one Block may exist for
any given location in a world. The state of the block may change
concurrently to your own handling of it; use block.getState() to get a
snapshot state of a block which will not be modified.
<br>
Note that parts of this class which require access to the world at large
(i.e. lighting and power) may not be able to be safely accessed during world
generation when used in cases like BlockPhysicsEvent!!!!</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#applyBoneMeal(org.bukkit.block.BlockFace)"class="member-name-link">applyBoneMeal</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#breakNaturally(org.bukkit.inventory.ItemStack,boolean)"class="member-name-link">breakNaturally</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool,
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#breakNaturally(org.bukkit.inventory.ItemStack)"class="member-name-link">breakNaturally</a><wbr>(<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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#canPlace(org.bukkit.block.data.BlockData)"class="member-name-link">canPlace</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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> data)</code></div>
<divclass="block">Checks if this block is a valid placement location for the specified
block data.</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="Biome.html"title="enum class in org.bukkit.block">Biome</a></code></div>
<divclass="block">Returns the biome that this block resides in</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="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="#getBlockPower(org.bukkit.block.BlockFace)"class="member-name-link">getBlockPower</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</code></div>
<divclass="block">Gets the <ahref="../SoundGroup.html"title="interface in org.bukkit"><code>SoundGroup</code></a> for this block.</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="../util/BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getBreakSpeed(org.bukkit.entity.Player)"class="member-name-link">getBreakSpeed</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="../entity/Player.html"title="interface in org.bukkit.entity">Player</a> player)</code></div>
<divclass="block">Gets the speed at which the given player would break this block, taking
into account tools, potion effects, whether or not the player is in
water, enchantments, etc.</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="../Chunk.html"title="interface in org.bukkit">Chunk</a></code></div>
<divclass="block">Gets the chunk which contains this block</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="../util/VoxelShape.html"title="interface in org.bukkit.util">VoxelShape</a></code></div>
<divclass="block">Gets the collision shape of this block.</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="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-tab5"><code><ahref="#getDestroySpeed(org.bukkit.inventory.ItemStack)"class="member-name-link">getDestroySpeed</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> itemStack)</code></div>
<divclass="block">Gets the speed at which this block will be destroyed by a given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getDestroySpeed(org.bukkit.inventory.ItemStack,boolean)"class="member-name-link">getDestroySpeed</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> itemStack,
<divclass="block">Gets the speed at which this blook will be destroyed by a given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a></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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a>></code></div>
<divclass="block">Returns a list of items which would drop by destroying this block</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="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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a>></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getDrops(org.bukkit.inventory.ItemStack,org.bukkit.entity.Entity)"class="member-name-link">getDrops</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool,
<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="../entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> entity)</code></div>
<divclass="block">Returns a list of items which would drop by the entity destroying this
block with a specific tool</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a>></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getDrops(org.bukkit.inventory.ItemStack)"class="member-name-link">getDrops</a><wbr>(<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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool)</code></div>
<divclass="block">Returns a list of items which would drop by destroying this block with
a specific tool</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/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getFace(org.bukkit.block.Block)"class="member-name-link">getFace</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Block.html"title="interface in org.bukkit.block">Block</a> block)</code></div>
<divclass="block">Gets the light level between 0-15</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="../Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Gets the Location of the block</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/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getLocation(org.bukkit.Location)"class="member-name-link">getLocation</a><wbr>(<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="../Location.html"title="class in org.bukkit">Location</a> loc)</code></div>
<divclass="block">Stores the location of the block in the provided Location object.</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="PistonMoveReaction.html"title="enum class in org.bukkit.block">PistonMoveReaction</a></code></div>
<divclass="block">Returns the reaction of the block when moved by a piston</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.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="block">Gets the block at the given offsets</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.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getRelative(org.bukkit.block.BlockFace)"class="member-name-link">getRelative</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</code></div>
<divclass="block">Gets the block at the given face</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.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getRelative(org.bukkit.block.BlockFace,int)"class="member-name-link">getRelative</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face,
<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="BlockState.html"title="interface in org.bukkit.block">BlockState</a></code></div>
<divclass="block">Captures the current state of this block.</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="BlockState.html"title="interface in org.bukkit.block">BlockState</a></code></div>
<divclass="block">Gets the temperature of this block.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><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/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="deprecation-comment">use <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()"title="class or interface in net.kyori.adventure.translation"class="external-link"><code>Translatable.translationKey()</code></a></div>
</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="block">Gets the type of this block</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="../World.html"title="interface in org.bukkit">World</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#isBlockFaceIndirectlyPowered(org.bukkit.block.BlockFace)"class="member-name-link">isBlockFaceIndirectlyPowered</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#isBlockFacePowered(org.bukkit.block.BlockFace)"class="member-name-link">isBlockFacePowered</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#isPreferredTool(org.bukkit.inventory.ItemStack)"class="member-name-link">isPreferredTool</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#isValidTool(org.bukkit.inventory.ItemStack)"class="member-name-link">isValidTool</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> itemStack)</code></div>
<divclass="block">Causes the block to be ticked randomly.</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/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../util/RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#rayTrace(org.bukkit.Location,org.bukkit.util.Vector,double,org.bukkit.FluidCollisionMode)"class="member-name-link">rayTrace</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> start,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../util/Vector.html"title="class in org.bukkit.util">Vector</a> direction,
double maxDistance,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../FluidCollisionMode.html"title="enum class in org.bukkit">FluidCollisionMode</a> fluidCollisionMode)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setBiome(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="Biome.html"title="enum class in org.bukkit.block">Biome</a> bio)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setBlockData(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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> data)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setBlockData(org.bukkit.block.data.BlockData,boolean)"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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> data,
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setType(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="../Material.html"title="enum class in org.bukkit">Material</a> type)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setType(org.bukkit.Material,boolean)"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="../Material.html"title="enum class in org.bukkit">Material</a> type,
<divclass="block">Causes the block to be ticked, this is different from <ahref="#randomTick()"><code>randomTick()</code></a>,
in that it is usually scheduled to occur, for example
redstone components being activated, sand falling, etc.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.metadata.Metadatable">Methods inherited from interface org.bukkit.metadata.<ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></h3>
<h3id="methods-inherited-from-class-net.kyori.adventure.translation.Translatable">Methods inherited from interface net.kyori.adventure.translation.<ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></h3>
<code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()"title="class or interface in net.kyori.adventure.translation"class="external-link">translationKey</a></code></div>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getData()">
<h3>getData</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="block">Gets the metadata for this block</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>block specific metadata</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBlockData()">
<h3>getBlockData</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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a></span> <spanclass="element-name">getBlockData</span>()</div>
<divclass="block">Gets the complete block data for this block</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="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.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getRelative</span><wbr><spanclass="parameters">(int modX,
int modY,
int modZ)</span></div>
<divclass="block">Gets the block at the given offsets</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="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.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getRelative</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</span></div>
<divclass="block">Gets the block at the given face
<p>
This method is equal to getRelative(face, 1)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>face</code> - Face of this block to return</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.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getRelative</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face,
int distance)</span></div>
<divclass="block">Gets the block at the given distance of the given face
<p>
For example, the following method places water at 100,102,100; two
<dd><code>face</code> - Face of this block to return</dd>
<dd><code>distance</code> - Distance to get the block at</dd>
<dt>Returns:</dt>
<dd>Block at the given face</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getType()">
<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>()</div>
<divclass="block">Gets the type of this block</div>
<divclass="block">Get the amount of light at this block from nearby blocks.
<p>
Any light given from other sources (such as the sun) will be ignored.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Block light level</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getWorld()">
<h3>getWorld</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="../World.html"title="interface in org.bukkit">World</a></span> <spanclass="element-name">getWorld</span>()</div>
<divclass="block">Gets the world which contains this Block</div>
<divclass="block">Gets the z-coordinate of this block</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>z-coordinate</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBlockKey()">
<h3>getBlockKey</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="deprecation-comment">only encodes y block ranges from -512 to 511 and represents an already changed implementation detail</div>
</div>
<divclass="block">Returns the specified block coordinates packed into a long value
<p>
The return value can be computed as follows:
<br>
<code>long value = ((long)x & 0x7FFFFFF) | (((long)z & 0x7FFFFFF) << 27) | ((long)y << 54);</code>
</p>
<p>
And may be unpacked as follows:
<br>
<code>int x = (int) ((packed << 37) >> 37);</code>
<br>
<code>int y = (int) (packed >> 54);</code>
<br>
<code>int z = (int) ((packed << 10) >> 37);</code>
</p></div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>This block's x, y, and z coordinates packed into a long value</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBlockKeyX(long)">
<h3>getBlockKeyX</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">isValidTool</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> itemStack)</span></div>
<divclass="block">Checks if the itemstack is a valid tool to
break the block with</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>itemStack</code> - The (tool) itemstack</dd>
<dt>Returns:</dt>
<dd>whether the block will drop items</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getLocation()">
<h3>getLocation</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="../Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">getLocation</span>()</div>
<divclass="block">Gets the Location of the block</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Contract</a>("null -> null; !null -> !null")
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">getLocation</span><wbr><spanclass="parameters">(<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="../Location.html"title="class in org.bukkit">Location</a> loc)</span></div>
<divclass="block">Stores the location of the block in the provided Location object.
<p>
If the provided Location is null this method does nothing and returns
null.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>loc</code> - the location to copy into</dd>
<dt>Returns:</dt>
<dd>The Location object provided or null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getChunk()">
<h3>getChunk</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="../Chunk.html"title="interface in org.bukkit">Chunk</a></span> <spanclass="element-name">getChunk</span>()</div>
<divclass="block">Gets the chunk which contains this block</div>
<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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> data)</span></div>
<divclass="block">Sets the complete data for this block</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>data</code> - new block specific data</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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> data,
boolean applyPhysics)</span></div>
<divclass="block">Sets the complete data for this block
<br>
Note that applyPhysics = false is not in general safe. It should only be
used when you need to avoid triggering a physics update of neighboring
blocks, for example when creating a <ahref="data/Bisected.html"title="interface in org.bukkit.block.data"><code>Bisected</code></a> block. If you are
using a custom populator, then this parameter may also be required to
prevent triggering infinite chunk loads on border blocks. This method
should NOT be used to "hack" physics by placing blocks in impossible
locations. Such blocks are liable to be removed on various events such as
world upgrades. Furthermore setting large amounts of such blocks in close
proximity may overload the server physics engine if an update is
triggered at a later point. If this occurs, the resulting behavior is
undefined.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>data</code> - new block specific data</dd>
<dd><code>applyPhysics</code> - false to cancel physics from the changed block</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="../Material.html"title="enum class in org.bukkit">Material</a> type)</span></div>
<divclass="block">Sets the type of this block</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - Material to change this 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="../Material.html"title="enum class in org.bukkit">Material</a> type,
boolean applyPhysics)</span></div>
<divclass="block">Sets the type of this block
<br>
Note that applyPhysics = false is not in general safe. It should only be
used when you need to avoid triggering a physics update of neighboring
blocks, for example when creating a <ahref="data/Bisected.html"title="interface in org.bukkit.block.data"><code>Bisected</code></a> block. If you are
using a custom populator, then this parameter may also be required to
prevent triggering infinite chunk loads on border blocks. This method
should NOT be used to "hack" physics by placing blocks in impossible
locations. Such blocks are liable to be removed on various events such as
world upgrades. Furthermore setting large amounts of such blocks in close
proximity may overload the server physics engine if an update is
triggered at a later point. If this occurs, the resulting behavior is
undefined.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - Material to change this block to</dd>
<dd><code>applyPhysics</code> - False to cancel physics on the changed block.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></span> <spanclass="element-name">getFace</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Block.html"title="interface in org.bukkit.block">Block</a> block)</span></div>
<divclass="block">Gets the face relation of this block compared to the given block.
<p>
For example:
<pre><code>
Block current = world.getBlockAt(100, 100, 100);
Block target = world.getBlockAt(100, 101, 100);
current.getFace(target) == BlockFace.Up;
</code></pre>
<br>
If the given block is not connected to this block, null may be returned</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>block</code> - Block to compare against this block</dd>
<dt>Returns:</dt>
<dd>BlockFace of this block which has the requested block, or null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getState()">
<h3>getState</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="BlockState.html"title="interface in org.bukkit.block">BlockState</a></span> <spanclass="element-name">getState</span>()</div>
<divclass="block">Captures the current state of this block. You may then cast that state
into any accepted type, such as Furnace or Sign.
<p>
The returned object will never be updated, and you are not guaranteed
that (for example) a sign is still a sign after you capture its state.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>BlockState with the current state of this block.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getState(boolean)">
<h3>getState</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="BlockState.html"title="interface in org.bukkit.block">BlockState</a></span> <spanclass="element-name">getState</span><wbr><spanclass="parameters">(boolean useSnapshot)</span></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>useSnapshot</code> - if this block is a TE, should we create a fully copy of the TileEntity</dd>
<dt>Returns:</dt>
<dd>BlockState with the current state of this block</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list-long">
<li><ahref="#getState()"><code>optionally disables use of snapshot, to operate on real block data</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBiome()">
<h3>getBiome</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="Biome.html"title="enum class in org.bukkit.block">Biome</a></span> <spanclass="element-name">getBiome</span>()</div>
<divclass="block">Returns the biome that this block resides in</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="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="Biome.html"title="enum class in org.bukkit.block">Biome</a></span> <spanclass="element-name">getComputedBiome</span>()</div>
<divclass="block">Gets the computed biome at the location of this Block.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>computed biome at the location of this 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="Biome.html"title="enum class in org.bukkit.block">Biome</a> bio)</span></div>
<divclass="block">Sets the biome that this block resides in</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>bio</code> - new Biome type for this block</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">isBlockFacePowered</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</span></div>
<divclass="block">Returns true if the block face is being powered by Redstone.</div>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">isBlockFaceIndirectlyPowered</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</span></div>
<divclass="block">Returns true if the block face is being indirectly powered by Redstone.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>face</code> - The block face</dd>
<dt>Returns:</dt>
<dd>True if the block face is indirectly powered.</dd>
<divclass="member-signature"><spanclass="return-type">int</span> <spanclass="element-name">getBlockPower</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</span></div>
<divclass="block">Returns the redstone power being provided to this block face</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>face</code> - the face of the block to query or BlockFace.SELF for the
A block is considered empty when <ahref="#getType()"><code>getType()</code></a> returns <ahref="../Material.html#AIR"><code>Material.AIR</code></a>.</div>
A block is considered liquid when <ahref="#getType()"><code>getType()</code></a> returns <ahref="../Material.html#WATER"><code>Material.WATER</code></a> or <ahref="../Material.html#LAVA"><code>Material.LAVA</code></a>.</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="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="PistonMoveReaction.html"title="enum class in org.bukkit.block">PistonMoveReaction</a></span> <spanclass="element-name">getPistonMoveReaction</span>()</div>
<divclass="block">Returns the reaction of the block when moved by a piston</div>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">breakNaturally</span><wbr><spanclass="parameters">(<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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool)</span></div>
<divclass="block">Breaks the block and spawns items as if a player had digged it with a
specific tool</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>tool</code> - The tool or item in hand used for digging</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">breakNaturally</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool,
boolean triggerEffect)</span></div>
<divclass="block">Breaks the block and spawns item drops as if a player had broken it
with a specific tool</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>tool</code> - The tool or item in hand used for digging</dd>
<dd><code>triggerEffect</code> - Play the block break particle effect and sound</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">applyBoneMeal</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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</span></div>
<divclass="block">Simulate bone meal application to this block (if possible).</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>face</code> - the face on which bonemeal should be applied</dd>
<dt>Returns:</dt>
<dd>true if the block was bonemealed, false otherwise</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getDrops()">
<h3>getDrops</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/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a>></span> <spanclass="element-name">getDrops</span>()</div>
<divclass="block">Returns a list of items which would drop by destroying this block</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a list of dropped items for this type of 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="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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a>></span> <spanclass="element-name">getDrops</span><wbr><spanclass="parameters">(<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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool)</span></div>
<divclass="block">Returns a list of items which would drop by destroying this block with
a specific tool</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>tool</code> - The tool or item in hand used for digging</dd>
<dt>Returns:</dt>
<dd>a list of dropped items for this type of 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="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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a>></span> <spanclass="element-name">getDrops</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool,
<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="../entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> entity)</span></div>
<divclass="block">Returns a list of items which would drop by the entity destroying this
block with a specific tool</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>tool</code> - The tool or item in hand used for digging</dd>
<dd><code>entity</code> - the entity destroying the block</dd>
<dt>Returns:</dt>
<dd>a list of dropped items for this type of block</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">isPreferredTool</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> tool)</span></div>
<divclass="block">Returns if the given item is a preferred choice to break this Block.
In some cases this determines if a block will drop anything or extra
loot.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>tool</code> - The tool or item used for breaking this block</dd>
<dt>Returns:</dt>
<dd>true if the tool is preferred for breaking this block.</dd>
<divclass="member-signature"><spanclass="return-type">float</span> <spanclass="element-name">getBreakSpeed</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="../entity/Player.html"title="interface in org.bukkit.entity">Player</a> player)</span></div>
<divclass="block">Gets the speed at which the given player would break this block, taking
into account tools, potion effects, whether or not the player is in
water, enchantments, etc.
The returned value is the amount of progress made in breaking the block
each tick. When the total breaking progress reaches <code>1.0f</code>, the
block is broken. Note that the break speed can change in the course of
breaking a block, e.g. if a potion effect is applied or expires, or the
player jumps/enters water.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>player</code> - player breaking the block</dd>
<dt>Returns:</dt>
<dd>the speed at which the player breaks this block</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../util/RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></span> <spanclass="element-name">rayTrace</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a> start,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../util/Vector.html"title="class in org.bukkit.util">Vector</a> direction,
double maxDistance,
<ahref="https://javadoc.io/doc/org.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="../FluidCollisionMode.html"title="enum class in org.bukkit">FluidCollisionMode</a> fluidCollisionMode)</span></div>
<divclass="block">Performs a ray trace that checks for collision with this specific block
in its current state using its precise collision shape.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>start</code> - the start location</dd>
<dd><code>direction</code> - the ray direction</dd>
<dd><code>maxDistance</code> - the maximum distance</dd>
<dd><code>fluidCollisionMode</code> - the fluid collision mode</dd>
<dt>Returns:</dt>
<dd>the ray trace hit result, or <code>null</code> if there is no hit</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBoundingBox()">
<h3>getBoundingBox</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="../util/BoundingBox.html"title="class in org.bukkit.util">BoundingBox</a></span> <spanclass="element-name">getBoundingBox</span>()</div>
<divclass="block">Gets the approximate bounding box for this block.
<p>
This isn't exact as some blocks <ahref="data/type/Stairs.html"title="interface in org.bukkit.block.data.type"><code>Stairs</code></a>
contain many bounding boxes to establish their complete form.
Also, the box may not be exactly the same as the collision shape (such as
cactus, which is 16/16 of a block with 15/16 collisional bounds).
This method will return an empty bounding box if the geometric shape of
the block is empty (such as air blocks).</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the approximate bounding box of the block</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCollisionShape()">
<h3>getCollisionShape</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="../util/VoxelShape.html"title="interface in org.bukkit.util">VoxelShape</a></span> <spanclass="element-name">getCollisionShape</span>()</div>
<divclass="block">Gets the collision shape of this block.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a <ahref="../util/VoxelShape.html"title="interface in org.bukkit.util"><code>VoxelShape</code></a> representing the collision shape of this
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">canPlace</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="data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> data)</span></div>
<divclass="block">Checks if this block is a valid placement location for the specified
block data.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>data</code> - the block data to check</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the block data can be placed here</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getSoundGroup()">
<h3>getSoundGroup</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>
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html#forRemoval()"title="class or interface in java.lang"class="external-link">forRemoval</a>=true)
</span><spanclass="return-type"><ahref="../../../com/destroystokyo/paper/block/BlockSoundGroup.html"title="interface in com.destroystokyo.paper.block">BlockSoundGroup</a></span> <spanclass="element-name">getSoundGroup</span>()</div>
<divclass="deprecation-block"><spanclass="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span>
<divclass="block">Gets the <ahref="../../../com/destroystokyo/paper/block/BlockSoundGroup.html"title="interface in com.destroystokyo.paper.block"><code>BlockSoundGroup</code></a> for this block.
<p>
This object contains the block, step, place, hit, and fall sounds.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the sound group for this block</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBlockSoundGroup()">
<h3>getBlockSoundGroup</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="../SoundGroup.html"title="interface in org.bukkit">SoundGroup</a></span> <spanclass="element-name">getBlockSoundGroup</span>()</div>
<divclass="block">Gets the <ahref="../SoundGroup.html"title="interface in org.bukkit"><code>SoundGroup</code></a> for this block.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the sound group for this block</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getTranslationKey()">
<h3>getTranslationKey</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>
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</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/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">getTranslationKey</span>()</div>
<divclass="deprecation-comment">use <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()"title="class or interface in net.kyori.adventure.translation"class="external-link"><code>Translatable.translationKey()</code></a></div>
</div>
<divclass="block">Return the translation key for the Block, so the client can translate it into the active
<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">@org.jetbrains.annotations.NotNull float</span> <spanclass="element-name">getDestroySpeed</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> itemStack)</span></div>
<divclass="block">Gets the speed at which this block will be destroyed by a given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a>
<p>Default value is 1.0</p></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>itemStack</code> - <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a> used to mine this Block</dd>
<dt>Returns:</dt>
<dd>the speed that this Block will be mined by the given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a></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">@org.jetbrains.annotations.NotNull float</span> <spanclass="element-name">getDestroySpeed</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> itemStack,
boolean considerEnchants)</span></div>
<divclass="block">Gets the speed at which this blook will be destroyed by a given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a>
<p>
Default value is 1.0</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>itemStack</code> - <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a> used to mine this Block</dd>
<dd><code>considerEnchants</code> - true to look at enchants on the itemstack</dd>
<dt>Returns:</dt>
<dd>the speed that this Block will be mined by the given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a></dd>