mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-14 14:45:40 +01:00
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
--- a/net/minecraft/server/Containers.java
|
|
+++ b/net/minecraft/server/Containers.java
|
|
@@ -19,7 +19,7 @@
|
|
public static final Containers<ContainerGrindstone> GRINDSTONE = a("grindstone", ContainerGrindstone::new);
|
|
public static final Containers<ContainerHopper> HOPPER = a("hopper", ContainerHopper::new);
|
|
public static final Containers<ContainerLectern> LECTERN = a("lectern", (i, playerinventory) -> {
|
|
- return new ContainerLectern(i);
|
|
+ return new ContainerLectern(i, playerinventory); // CraftBukkit
|
|
});
|
|
public static final Containers<ContainerLoom> LOOM = a("loom", ContainerLoom::new);
|
|
public static final Containers<ContainerMerchant> MERCHANT = a("merchant", ContainerMerchant::new);
|
|
@@ -30,12 +30,17 @@
|
|
private final Containers.Supplier<T> x;
|
|
|
|
private static <T extends Container> Containers<T> a(String s, Containers.Supplier<T> 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<T> containers_supplier) {
|
|
this.x = containers_supplier;
|
|
}
|
|
|
|
- interface Supplier<T extends Container> {}
|
|
+ // CraftBukkit start
|
|
+ interface Supplier<T extends Container> {
|
|
+
|
|
+ T supply(int id, PlayerInventory playerinventory);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
}
|