Renamed to ContainerIronChestBase

This commit is contained in:
Christian Weeks 2012-01-28 20:52:12 -05:00
parent cf605508ab
commit 1db9513385
4 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import org.lwjgl.opengl.GL11;
import cpw.mods.ironchest.ContainerDiamondChest; import cpw.mods.ironchest.ContainerDiamondChest;
import cpw.mods.ironchest.ContainerGoldChest; import cpw.mods.ironchest.ContainerGoldChest;
import cpw.mods.ironchest.IronChestContainer; import cpw.mods.ironchest.ContainerIronChestBase;
import cpw.mods.ironchest.IronChestType; import cpw.mods.ironchest.IronChestType;
import cpw.mods.ironchest.TileEntityIronChest; import cpw.mods.ironchest.TileEntityIronChest;
import net.minecraft.src.Container; import net.minecraft.src.Container;
@ -20,13 +20,13 @@ public class GUIChest extends GuiContainer {
GOLD(ContainerGoldChest.class,184,256,"/ic2/sprites/goldcontainer.png",IronChestType.GOLD), GOLD(ContainerGoldChest.class,184,256,"/ic2/sprites/goldcontainer.png",IronChestType.GOLD),
DIAMOND(ContainerDiamondChest.class,238,256,"/ic2/sprites/diamondcontainer.png",IronChestType.DIAMOND); DIAMOND(ContainerDiamondChest.class,238,256,"/ic2/sprites/diamondcontainer.png",IronChestType.DIAMOND);
private Class<? extends IronChestContainer> clazz; private Class<? extends ContainerIronChestBase> clazz;
private int xSize; private int xSize;
private int ySize; private int ySize;
private String guiTexture; private String guiTexture;
private IronChestType mainType; private IronChestType mainType;
private GUI(Class<? extends IronChestContainer> clazz, int xSize, int ySize, String guiTexture, IronChestType mainType) { private GUI(Class<? extends ContainerIronChestBase> clazz, int xSize, int ySize, String guiTexture, IronChestType mainType) {
this.clazz=clazz; this.clazz=clazz;
this.xSize=xSize; this.xSize=xSize;
this.ySize=ySize; this.ySize=ySize;

View File

@ -3,7 +3,7 @@ package cpw.mods.ironchest;
import net.minecraft.src.IInventory; import net.minecraft.src.IInventory;
import net.minecraft.src.Slot; import net.minecraft.src.Slot;
public class ContainerDiamondChest extends IronChestContainer { public class ContainerDiamondChest extends ContainerIronChestBase {
public ContainerDiamondChest(IInventory playerInventory, IInventory chestInventory) { public ContainerDiamondChest(IInventory playerInventory, IInventory chestInventory) {
super(playerInventory, chestInventory); super(playerInventory, chestInventory);
} }

View File

@ -7,7 +7,7 @@ package cpw.mods.ironchest;
import net.minecraft.src.IInventory; import net.minecraft.src.IInventory;
import net.minecraft.src.Slot; import net.minecraft.src.Slot;
public class ContainerGoldChest extends IronChestContainer public class ContainerGoldChest extends ContainerIronChestBase
{ {
private static final int NUM_ROWS = 9; private static final int NUM_ROWS = 9;

View File

@ -6,8 +6,8 @@ import net.minecraft.src.IInventory;
import net.minecraft.src.ItemStack; import net.minecraft.src.ItemStack;
import net.minecraft.src.Slot; import net.minecraft.src.Slot;
public abstract class IronChestContainer extends Container { public abstract class ContainerIronChestBase extends Container {
public IronChestContainer(IInventory playerInventory, IInventory chestInventory) { public ContainerIronChestBase(IInventory playerInventory, IInventory chestInventory) {
numRows = chestInventory.getSizeInventory() / getRowLength(); numRows = chestInventory.getSizeInventory() / getRowLength();
chest = chestInventory; chest = chestInventory;
chestInventory.openChest(); chestInventory.openChest();