Minified and renamed resources
|
|
@ -13,14 +13,14 @@ import net.minecraftforge.oredict.ShapedOreRecipe;
|
|||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public enum IronChestType {
|
||||
IRON(54, 9, true, "Iron Chest", "ironchest.png", 0, Arrays.asList("ingotIron", "ingotRefinedIron"), TileEntityIronChest.class, "mmmmPmmmm", "mGmG3GmGm"),
|
||||
GOLD(81, 9, true, "Gold Chest", "goldchest.png", 1, Arrays.asList("ingotGold"), TileEntityGoldChest.class, "mmmmPmmmm", "mGmG4GmGm"),
|
||||
DIAMOND(108, 12, true, "Diamond Chest", "diamondchest.png", 2, Arrays.asList("gemDiamond"), TileEntityDiamondChest.class, "GGGmPmGGG", "GGGG4Gmmm"),
|
||||
COPPER(45, 9, false, "Copper Chest", "copperchest.png", 3, Arrays.asList("ingotCopper"), TileEntityCopperChest.class, "mmmmCmmmm"),
|
||||
SILVER(72, 9, false, "Silver Chest", "silverchest.png", 4, Arrays.asList("ingotSilver"), TileEntitySilverChest.class, "mmmm3mmmm", "mGmG0GmGm"),
|
||||
CRYSTAL(108, 12, true, "Crystal Chest", "crystalchest.png", 5, Arrays.asList("blockGlass"), TileEntityCrystalChest.class, "GGGGPGGGG"),
|
||||
OBSIDIAN(108, 12, false, "Obsidian Chest", "obsidianchest.png", 6, Arrays.asList("obsidian"), TileEntityObsidianChest.class, "mmmm2mmmm"),
|
||||
DIRTCHEST9000(1, 1, false, "Dirt Chest 9000", "dirtchest.png",7,Arrays.asList("dirt"), TileEntityDirtChest.class,Item.getItemFromBlock(Blocks.dirt),"mmmmCmmmm"),
|
||||
IRON(54, 9, true, "Iron Chest", "chest_iron.png", 0, Arrays.asList("ingotIron", "ingotRefinedIron"), TileEntityIronChest.class, "mmmmPmmmm", "mGmG3GmGm"),
|
||||
GOLD(81, 9, true, "Gold Chest", "chest_gold.png", 1, Arrays.asList("ingotGold"), TileEntityGoldChest.class, "mmmmPmmmm", "mGmG4GmGm"),
|
||||
DIAMOND(108, 12, true, "Diamond Chest", "chest_diamond.png", 2, Arrays.asList("gemDiamond"), TileEntityDiamondChest.class, "GGGmPmGGG", "GGGG4Gmmm"),
|
||||
COPPER(45, 9, false, "Copper Chest", "chest_copper.png", 3, Arrays.asList("ingotCopper"), TileEntityCopperChest.class, "mmmmCmmmm"),
|
||||
SILVER(72, 9, false, "Silver Chest", "chest_silver.png", 4, Arrays.asList("ingotSilver"), TileEntitySilverChest.class, "mmmm3mmmm", "mGmG0GmGm"),
|
||||
CRYSTAL(108, 12, true, "Crystal Chest", "chest_crystal.png", 5, Arrays.asList("blockGlass"), TileEntityCrystalChest.class, "GGGGPGGGG"),
|
||||
OBSIDIAN(108, 12, false, "Obsidian Chest", "chest_obsidian.png", 6, Arrays.asList("obsidian"), TileEntityObsidianChest.class, "mmmm2mmmm"),
|
||||
DIRTCHEST9000(1, 1, false, "Dirt Chest 9000", "chest_dirt.png", 7, Arrays.asList("dirt"), TileEntityDirtChest.class, Item.getItemFromBlock(Blocks.dirt), "mmmmCmmmm"),
|
||||
WOOD(0, 0, false, "", "", -1, Arrays.asList("plankWood"), null);
|
||||
int size;
|
||||
private int rowLength;
|
||||
|
|
|
|||
|
|
@ -13,15 +13,15 @@ import cpw.mods.ironchest.TileEntityIronChest;
|
|||
|
||||
public class GUIChest extends GuiContainer {
|
||||
public enum ResourceList {
|
||||
IRON(new ResourceLocation("ironchest", "textures/gui/ironcontainer.png")),
|
||||
COPPER(new ResourceLocation("ironchest", "textures/gui/coppercontainer.png")),
|
||||
SILVER(new ResourceLocation("ironchest", "textures/gui/silvercontainer.png")),
|
||||
GOLD(new ResourceLocation("ironchest", "textures/gui/goldcontainer.png")),
|
||||
DIAMOND(new ResourceLocation("ironchest", "textures/gui/diamondcontainer.png")),
|
||||
DIRT(new ResourceLocation("ironchest", "textures/gui/dirtcontainer.png"));
|
||||
IRON(new ResourceLocation("ironchest", "textures/gui/gui_chest_iron.png")),
|
||||
COPPER(new ResourceLocation("ironchest", "textures/gui/gui_chest_copper.png")),
|
||||
SILVER(new ResourceLocation("ironchest", "textures/gui/gui_chest_silver.png")),
|
||||
GOLD(new ResourceLocation("ironchest", "textures/gui/gui_chest_gold.png")),
|
||||
DIAMOND(new ResourceLocation("ironchest", "textures/gui/gui_chest_diamond.png")),
|
||||
DIRT(new ResourceLocation("ironchest", "textures/gui/gui_chest_dirt.png"));
|
||||
public final ResourceLocation location;
|
||||
private ResourceList(ResourceLocation loc) {
|
||||
this.location = loc;
|
||||
location = loc;
|
||||
}
|
||||
}
|
||||
public enum GUI {
|
||||
|
|
@ -79,8 +79,7 @@ public class GUIChest extends GuiContainer {
|
|||
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
// new "bind tex"
|
||||
this.mc.getTextureManager().bindTexture(type.guiResourceList.location);
|
||||
mc.getTextureManager().bindTexture(type.guiResourceList.location);
|
||||
int x = (width - xSize) / 2;
|
||||
int y = (height - ySize) / 2;
|
||||
drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 226 B |
|
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 106 B |
|
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 229 B |
|
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 264 B |
|
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 205 B |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 370 B |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 357 B |
|
After Width: | Height: | Size: 407 B |
|
After Width: | Height: | Size: 379 B |
|
After Width: | Height: | Size: 397 B |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 201 B |
|
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 215 B |
|
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 240 B |
|
Before Width: | Height: | Size: 526 B After Width: | Height: | Size: 244 B |
|
Before Width: | Height: | Size: 526 B After Width: | Height: | Size: 236 B |
|
Before Width: | Height: | Size: 542 B After Width: | Height: | Size: 300 B |
|
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 288 B |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 600 B |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 617 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 789 B |
|
After Width: | Height: | Size: 771 B |
|
After Width: | Height: | Size: 741 B |
|
After Width: | Height: | Size: 553 B |