#552: Add the ability to retrieve hit, step, fall, and other sounds from blocks.

By: Martoph <sager1018@gmail.com>
This commit is contained in:
Bukkit/Spigot
2020-11-26 09:36:59 +11:00
parent d0bec6507f
commit 5e82375383
4 changed files with 1093 additions and 993 deletions

View File

@@ -2,6 +2,7 @@ package org.bukkit.block.data;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.SoundGroup;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -93,4 +94,13 @@ public interface BlockData extends Cloneable {
*/
@NotNull
BlockData clone();
/**
* Gets the block's {@link SoundGroup} which can be used to get its step
* sound, hit sound, and others.
*
* @return the sound effect group
*/
@NotNull
SoundGroup getSoundGroup();
}