diff options
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/Container.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower-stripped/net/minecraft/world/Container.java.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/Container.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/Container.java.patch new file mode 100644 index 0000000000..032b8dcb9b --- /dev/null +++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/Container.java.patch @@ -0,0 +1,56 @@ +--- a/net/minecraft/world/Container.java ++++ b/net/minecraft/world/Container.java +@@ -6,8 +6,12 @@ + import net.minecraft.world.entity.player.Player; + import net.minecraft.world.item.Item; + import net.minecraft.world.item.ItemStack; ++// CraftBukkit start ++import net.minecraft.world.item.crafting.RecipeHolder; + import net.minecraft.world.level.Level; + import net.minecraft.world.level.block.entity.BlockEntity; ++import org.bukkit.craftbukkit.entity.CraftHumanEntity; ++// CraftBukkit end + + public interface Container extends Clearable { + int LARGE_MAX_STACK_SIZE = 64; +@@ -25,9 +30,7 @@ + + void setItem(int slot, ItemStack stack); + +- default int getMaxStackSize() { +- return 64; +- } ++ int getMaxStackSize(); // CraftBukkit + + void setChanged(); + +@@ -87,4 +90,29 @@ + && player.distanceToSqr((double)blockPos.getX() + 0.5, (double)blockPos.getY() + 0.5, (double)blockPos.getZ() + 0.5) + <= (double)(maxDistance * maxDistance); + } ++ ++ // CraftBukkit start ++ java.util.List<ItemStack> getContents(); ++ ++ void onOpen(CraftHumanEntity who); ++ ++ void onClose(CraftHumanEntity who); ++ ++ java.util.List<org.bukkit.entity.HumanEntity> getViewers(); ++ ++ org.bukkit.inventory.InventoryHolder getOwner(); ++ ++ void setMaxStackSize(int size); ++ ++ org.bukkit.Location getLocation(); ++ ++ default RecipeHolder<?> getCurrentRecipe() { ++ return null; ++ } ++ ++ default void setCurrentRecipe(RecipeHolder<?> recipe) { ++ } ++ ++ int MAX_STACK = 64; ++ // CraftBukkit end + } |