--- a/net/minecraft/server/Containers.java +++ b/net/minecraft/server/Containers.java @@ -19,7 +19,7 @@ public static final Containers GRINDSTONE = a("grindstone", ContainerGrindstone::new); public static final Containers HOPPER = a("hopper", ContainerHopper::new); public static final Containers LECTERN = a("lectern", (i, playerinventory) -> { - return new ContainerLectern(i); + return new ContainerLectern(i, playerinventory); // CraftBukkit }); public static final Containers LOOM = a("loom", ContainerLoom::new); public static final Containers MERCHANT = a("merchant", ContainerMerchant::new); @@ -30,12 +30,17 @@ private final Containers.Supplier x; private static Containers a(String s, Containers.Supplier containers_supplier) { - return (Containers) IRegistry.a(IRegistry.MENU, s, (Object) (new Containers<>(containers_supplier))); + return (Containers) IRegistry.a(IRegistry.MENU, s, (new Containers<>(containers_supplier))); // CraftBukkit - decompile error } private Containers(Containers.Supplier containers_supplier) { this.x = containers_supplier; } - interface Supplier {} + // CraftBukkit start + interface Supplier { + + T supply(int id, PlayerInventory playerinventory); + } + // CraftBukkit end }