@@ -1,6 +1,17 @@
|
||||
--- a/net/minecraft/server/Containers.java
|
||||
+++ b/net/minecraft/server/Containers.java
|
||||
@@ -19,7 +19,7 @@
|
||||
--- a/net/minecraft/world/inventory/Containers.java
|
||||
+++ b/net/minecraft/world/inventory/Containers.java
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
import net.minecraft.core.IRegistry;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import net.minecraft.world.entity.player.PlayerInventory;
|
||||
+// CraftBukkit end
|
||||
+
|
||||
public class Containers<T extends Container> {
|
||||
|
||||
public static final Containers<ContainerChest> GENERIC_9X1 = a("generic_9x1", ContainerChest::a);
|
||||
@@ -21,7 +25,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) -> {
|
||||
@@ -9,7 +20,7 @@
|
||||
});
|
||||
public static final Containers<ContainerLoom> LOOM = a("loom", ContainerLoom::new);
|
||||
public static final Containers<ContainerMerchant> MERCHANT = a("merchant", ContainerMerchant::new);
|
||||
@@ -31,12 +31,17 @@
|
||||
@@ -33,12 +37,17 @@
|
||||
private final Containers.Supplier<T> y;
|
||||
|
||||
private static <T extends Container> Containers<T> a(String s, Containers.Supplier<T> containers_supplier) {
|
||||
|
||||
Reference in New Issue
Block a user