Renamed to ContainerIronChestBase
This commit is contained in:
parent
cf605508ab
commit
1db9513385
|
@ -6,7 +6,7 @@ import org.lwjgl.opengl.GL11;
|
|||
|
||||
import cpw.mods.ironchest.ContainerDiamondChest;
|
||||
import cpw.mods.ironchest.ContainerGoldChest;
|
||||
import cpw.mods.ironchest.IronChestContainer;
|
||||
import cpw.mods.ironchest.ContainerIronChestBase;
|
||||
import cpw.mods.ironchest.IronChestType;
|
||||
import cpw.mods.ironchest.TileEntityIronChest;
|
||||
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),
|
||||
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 ySize;
|
||||
private String guiTexture;
|
||||
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.xSize=xSize;
|
||||
this.ySize=ySize;
|
||||
|
|
|
@ -3,7 +3,7 @@ package cpw.mods.ironchest;
|
|||
import net.minecraft.src.IInventory;
|
||||
import net.minecraft.src.Slot;
|
||||
|
||||
public class ContainerDiamondChest extends IronChestContainer {
|
||||
public class ContainerDiamondChest extends ContainerIronChestBase {
|
||||
public ContainerDiamondChest(IInventory playerInventory, IInventory chestInventory) {
|
||||
super(playerInventory, chestInventory);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ package cpw.mods.ironchest;
|
|||
import net.minecraft.src.IInventory;
|
||||
import net.minecraft.src.Slot;
|
||||
|
||||
public class ContainerGoldChest extends IronChestContainer
|
||||
public class ContainerGoldChest extends ContainerIronChestBase
|
||||
{
|
||||
|
||||
private static final int NUM_ROWS = 9;
|
||||
|
|
|
@ -6,8 +6,8 @@ import net.minecraft.src.IInventory;
|
|||
import net.minecraft.src.ItemStack;
|
||||
import net.minecraft.src.Slot;
|
||||
|
||||
public abstract class IronChestContainer extends Container {
|
||||
public IronChestContainer(IInventory playerInventory, IInventory chestInventory) {
|
||||
public abstract class ContainerIronChestBase extends Container {
|
||||
public ContainerIronChestBase(IInventory playerInventory, IInventory chestInventory) {
|
||||
numRows = chestInventory.getSizeInventory() / getRowLength();
|
||||
chest = chestInventory;
|
||||
chestInventory.openChest();
|
Loading…
Reference in New Issue