Add vault change state event (#12069)

This commit is contained in:
Warrior
2025-04-26 16:34:12 +02:00
committed by GitHub
parent deaccd2c42
commit f86b435228
3 changed files with 143 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ public class CraftBlockData implements BlockData {
* @throws IllegalStateException if the Enum could not be converted
*/
@SuppressWarnings("unchecked")
private static <B extends Enum<B>> B toBukkit(Enum<?> nms, Class<B> bukkit) {
public static <B extends Enum<B>> B toBukkit(Enum<?> nms, Class<B> bukkit) {
if (nms instanceof Direction) {
return (B) CraftBlock.notchToBlockFace((Direction) nms);
}