From c84b8740b4b93278a6631696fd723ec2a4df55dc Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 19 Dec 2011 06:33:20 +0000 Subject: [PATCH] Implemented ISidedInventory for Brewing Stands. Top is input, 1 slot All other sides are output, 3 slots. --- .../src/TileEntityBrewingStand.java.patch | 35 ++++++++++++++++++ .../src/TileEntityBrewingStand.java.patch | 37 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 forge/patches/minecraft/net/minecraft/src/TileEntityBrewingStand.java.patch create mode 100644 forge/patches/minecraft_server/net/minecraft/src/TileEntityBrewingStand.java.patch diff --git a/forge/patches/minecraft/net/minecraft/src/TileEntityBrewingStand.java.patch b/forge/patches/minecraft/net/minecraft/src/TileEntityBrewingStand.java.patch new file mode 100644 index 000000000..af37b2dce --- /dev/null +++ b/forge/patches/minecraft/net/minecraft/src/TileEntityBrewingStand.java.patch @@ -0,0 +1,35 @@ +--- ../src_base/minecraft/net/minecraft/src/TileEntityBrewingStand.java 0000-00-00 00:00:00.000000000 -0000 ++++ ../src_work/minecraft/net/minecraft/src/TileEntityBrewingStand.java 0000-00-00 00:00:00.000000000 -0000 +@@ -4,6 +4,8 @@ + + package net.minecraft.src; + ++import net.minecraft.src.forge.ISidedInventory; ++ + + // Referenced classes of package net.minecraft.src: + // TileEntity, IInventory, ItemStack, World, +@@ -11,7 +13,7 @@ + // NBTTagList, EntityPlayer + + public class TileEntityBrewingStand extends TileEntity +- implements IInventory ++ implements IInventory, ISidedInventory + { + + private ItemStack brewingItemStacks[]; +@@ -280,4 +282,14 @@ + + return i; + } ++ ++ @Override ++ public int getStartInventorySide(int side) { ++ return (side == 1 ? 3 : 0); ++ } ++ ++ @Override ++ public int getSizeInventorySide(int side) { ++ return (side == 1 ? 1 : 3); ++ } + } diff --git a/forge/patches/minecraft_server/net/minecraft/src/TileEntityBrewingStand.java.patch b/forge/patches/minecraft_server/net/minecraft/src/TileEntityBrewingStand.java.patch new file mode 100644 index 000000000..1d215eb74 --- /dev/null +++ b/forge/patches/minecraft_server/net/minecraft/src/TileEntityBrewingStand.java.patch @@ -0,0 +1,37 @@ +--- ../src_base/minecraft_server/net/minecraft/src/TileEntityBrewingStand.java 0000-00-00 00:00:00.000000000 -0000 ++++ ../src_work/minecraft_server/net/minecraft/src/TileEntityBrewingStand.java 0000-00-00 00:00:00.000000000 -0000 +@@ -4,6 +4,8 @@ + + package net.minecraft.src; + ++import net.minecraft.src.forge.ISidedInventory; ++ + + // Referenced classes of package net.minecraft.src: + // TileEntity, IInventory, ItemStack, World, +@@ -11,7 +13,7 @@ + // NBTTagList, EntityPlayer + + public class TileEntityBrewingStand extends TileEntity +- implements IInventory ++ implements IInventory, ISidedInventory + { + + private ItemStack field_40083_a[]; +@@ -274,5 +276,15 @@ + } + + return i; +- } ++ } ++ ++ @Override ++ public int getStartInventorySide(int side) { ++ return (side == 1 ? 3 : 0); ++ } ++ ++ @Override ++ public int getSizeInventorySide(int side) { ++ return (side == 1 ? 1 : 3); ++ } + }