--- a/net/minecraft/core/RegistryMaterials.java +++ b/net/minecraft/core/RegistryMaterials.java @@ -201,7 +201,7 @@ }); } - return SystemUtils.getRandom(this.randomCache, random); + return (T) SystemUtils.getRandom(this.randomCache, random); // CraftBukkit - decompile error } @Override @@ -228,7 +228,7 @@ return registrymaterials; }, (registrymaterials) -> { Builder> builder = ImmutableList.builder(); - Iterator iterator = registrymaterials.iterator(); + Iterator iterator = registrymaterials.iterator(); // CraftBukkit - decompile error while (iterator.hasNext()) { T t0 = iterator.next(); @@ -257,8 +257,10 @@ }); } - private static final class a extends Record { + // CraftBukkit start + private static final record a(ResourceKey key, int id, T value) { + /* private final ResourceKey key; private final int id; private final T value; @@ -292,5 +294,7 @@ public T value() { return this.value; } + */ + // CraftBukkit end } }