Commits
Martoph authored and md_5 committed 5929c808f29
1 1 | package org.bukkit.block.data; |
2 2 | |
3 3 | import org.bukkit.Material; |
4 4 | import org.bukkit.Server; |
5 + | import org.bukkit.SoundGroup; |
5 6 | import org.jetbrains.annotations.NotNull; |
6 7 | import org.jetbrains.annotations.Nullable; |
7 8 | |
8 9 | public interface BlockData extends Cloneable { |
9 10 | |
10 11 | /** |
11 12 | * Get the Material represented by this block data. |
12 13 | * |
13 14 | * @return the material |
14 15 | */ |
86 87 | */ |
87 88 | boolean matches( BlockData data); |
88 89 | |
89 90 | /** |
90 91 | * Returns a copy of this BlockData. |
91 92 | * |
92 93 | * @return a copy of the block data |
93 94 | */ |
94 95 | |
95 96 | BlockData clone(); |
97 + | |
98 + | /** |
99 + | * Gets the block's {@link SoundGroup} which can be used to get its step |
100 + | * sound, hit sound, and others. |
101 + | * |
102 + | * @return the sound effect group |
103 + | */ |
104 + | |
105 + | SoundGroup getSoundGroup(); |
96 106 | } |