From b4040374ce7af8b219b0273c92ed48aaf84fb32b Mon Sep 17 00:00:00 2001 From: Lance5057 Date: Thu, 9 Jul 2015 02:03:28 -0500 Subject: Revert "Worked on the Finishing Anvil" This reverts commit e9c02857b01d7c4afe887c612fc3a1a70a973837. --- .../Lance5057/containers/Container_CrestMount.java | 15 ++++---- .../containers/Container_FinishingAnvil.java | 42 ---------------------- 2 files changed, 9 insertions(+), 48 deletions(-) delete mode 100644 src/main/java/gmail/Lance5057/containers/Container_FinishingAnvil.java (limited to 'src/main/java/gmail/Lance5057/containers') diff --git a/src/main/java/gmail/Lance5057/containers/Container_CrestMount.java b/src/main/java/gmail/Lance5057/containers/Container_CrestMount.java index 4cdeb42..2baa3e3 100644 --- a/src/main/java/gmail/Lance5057/containers/Container_CrestMount.java +++ b/src/main/java/gmail/Lance5057/containers/Container_CrestMount.java @@ -10,12 +10,12 @@ import net.minecraft.item.ItemStack; public class Container_CrestMount extends Container { - public Container_CrestMount(InventoryPlayer inventoryPlayer, TileEntity_CrestMount te) + public Container_CrestMount(InventoryPlayer inventoryPlayer, TileEntity_CrestMount TileEntity_CrestMount) { - addSlotToContainer(new Slot(te, 0, 62, 28)); - addSlotToContainer(new Slot(te, 1, 98, 28)); - addSlotToContainer(new Slot(te, 2, 80, 28)); - addSlotToContainer(new Slot(te, 3, 80, 46)); + addSlotToContainer(new Slot(TileEntity_CrestMount, 0, 62, 28)); + addSlotToContainer(new Slot(TileEntity_CrestMount, 1, 98, 28)); + addSlotToContainer(new Slot(TileEntity_CrestMount, 2, 80, 28)); + addSlotToContainer(new Slot(TileEntity_CrestMount, 3, 80, 46)); for (int x = 0; x < 9; x++) { @@ -37,7 +37,10 @@ public class Container_CrestMount extends Container return true; } - @Override + /** + * Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that. + * Only real change we make to this is to set needsUpdate to true at the end + */ public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) { return null; diff --git a/src/main/java/gmail/Lance5057/containers/Container_FinishingAnvil.java b/src/main/java/gmail/Lance5057/containers/Container_FinishingAnvil.java deleted file mode 100644 index 5a445c9..0000000 --- a/src/main/java/gmail/Lance5057/containers/Container_FinishingAnvil.java +++ /dev/null @@ -1,42 +0,0 @@ -package gmail.Lance5057.containers; - -import gmail.Lance5057.tileentities.TileEntity_FinishingAnvil; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.InventoryPlayer; -import net.minecraft.inventory.Container; -import net.minecraft.inventory.Slot; -import net.minecraft.item.ItemStack; - -public class Container_FinishingAnvil extends Container -{ - public Container_FinishingAnvil(InventoryPlayer inventoryPlayer, TileEntity_FinishingAnvil te) - { - addSlotToContainer(new Slot(te, 0, 26, 32)); - addSlotToContainer(new Slot(te, 1, 62, 28)); - - for (int x = 0; x < 9; x++) - { - addSlotToContainer(new Slot(inventoryPlayer, x, 8 + 18 * x, 142)); - } - - for (int y = 0; y < 3; y++) - { - for (int x = 0; x < 9; x++) - { - addSlotToContainer(new Slot(inventoryPlayer, x + y * 9 + 9, 8 + 18 * x, 84 + y * 18)); - } - } - } - - @Override - public boolean canInteractWith(EntityPlayer p_75145_1_) - { - return true; - } - - @Override - public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) - { - return null; - } -} -- cgit v1.2.3