2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/inventory/Containers.java
|
|
|
|
+++ b/net/minecraft/world/inventory/Containers.java
|
2023-03-14 17:30:00 +01:00
|
|
|
@@ -8,6 +8,10 @@
|
|
|
|
import net.minecraft.world.flag.FeatureFlagSet;
|
|
|
|
import net.minecraft.world.flag.FeatureFlags;
|
2021-03-15 23:00:00 +01:00
|
|
|
|
|
|
|
+// CraftBukkit start
|
|
|
|
+import net.minecraft.world.entity.player.PlayerInventory;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
2023-03-14 17:30:00 +01:00
|
|
|
public class Containers<T extends Container> implements FeatureElement {
|
2021-03-15 23:00:00 +01:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
public static final Containers<ContainerChest> GENERIC_9x1 = register("generic_9x1", ContainerChest::oneRow);
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -28,7 +32,7 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
public static final Containers<ContainerGrindstone> GRINDSTONE = register("grindstone", ContainerGrindstone::new);
|
|
|
|
public static final Containers<ContainerHopper> HOPPER = register("hopper", ContainerHopper::new);
|
|
|
|
public static final Containers<ContainerLectern> LECTERN = register("lectern", (i, playerinventory) -> {
|
2019-04-23 04:00:00 +02:00
|
|
|
- return new ContainerLectern(i);
|
|
|
|
+ return new ContainerLectern(i, playerinventory); // CraftBukkit
|
|
|
|
});
|
2021-11-21 23:00:00 +01:00
|
|
|
public static final Containers<ContainerLoom> LOOM = register("loom", ContainerLoom::new);
|
|
|
|
public static final Containers<ContainerMerchant> MERCHANT = register("merchant", ContainerMerchant::new);
|