Upgrade to 1.2 minecraft
This commit is contained in:
parent
787d00217c
commit
dd542c0c48
|
@ -4,6 +4,6 @@
|
|||
<classpathentry kind="src" path="common"/>
|
||||
<classpathentry kind="src" path="server"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/forge1.3.4.33-client"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/forge-client"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</description>
|
||||
|
||||
<property name="modname" value="mod_ironchests" />
|
||||
<property name="version" value="3.0-alpha" />
|
||||
<property name="version" value="3.0" />
|
||||
<property name="mcp.home" location="/home/cpw/projects/mcworkspace/forge1.3.4" />
|
||||
<property name="mcp.obfoutput" location="${mcp.home}/reobf" />
|
||||
<property name="client.mcp.obfoutput" location="${mcp.obfoutput}/minecraft" />
|
||||
|
|
|
@ -63,7 +63,7 @@ public class ClientProxy extends BaseModMp implements IProxy {
|
|||
|
||||
@Override
|
||||
public void registerGUI(int guiId) {
|
||||
ModLoaderMp.RegisterGUI(this, guiId);
|
||||
ModLoaderMp.registerGUI(this, guiId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -78,7 +78,7 @@ public class ClientProxy extends BaseModMp implements IProxy {
|
|||
}
|
||||
|
||||
@Override
|
||||
public GuiScreen HandleGUI(int i) {
|
||||
public GuiScreen handleGUI(int i) {
|
||||
for (IronChestType type: IronChestType.values()) {
|
||||
if (type.guiId==i) {
|
||||
return GUIChest.GUI.buildGUI(type,ModLoader.getMinecraftInstance().thePlayer.inventory,IronChestType.makeEntity(type.ordinal()));
|
||||
|
|
|
@ -15,7 +15,7 @@ public enum IronChestType {
|
|||
GOLD(81, 9, true, "Gold Chest", "guiGoldChest", "goldchest.png", 1, Item.ingotGold, TileEntityGoldChest.class, "mmmmPmmmm","mGmG4GmGm"),
|
||||
DIAMOND(108, 12, true, "Diamond Chest", "guiDiamondChest", "diamondchest.png", 2, Item.diamond, TileEntityDiamondChest.class, "GGGmPmGGG", "GGGG4Gmmm"),
|
||||
COPPER(45, 9, false, "Copper Chest", "guiCopperChest", "copperchest.png", 3, null, TileEntityCopperChest.class, "mmmmCmmmm"),
|
||||
SILVER(72, 9, false, "Silver Chest", "guiSilverChest", "silverchest.png", 4, null, TileEntitySilverChest.class, "mmmm0mmmm", "mmmm3mmmm"),
|
||||
SILVER(72, 9, false, "Silver Chest", "guiSilverChest", "silverchest.png", 4, null, TileEntitySilverChest.class, "mmmm0mmmm", "mGmG3GmGm"),
|
||||
CRYSTAL(108, 12, true, "Crystal Chest", "guiDiamondChest", "crystalchest.png", 5, Item.itemsList[Block.glass.blockID], TileEntityCrystalChest.class, "GGGGPGGGG");
|
||||
int size;
|
||||
private int rowLength;
|
||||
|
|
|
@ -362,7 +362,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
|||
return null;
|
||||
}
|
||||
|
||||
public ItemStack func_48081_b(int par1)
|
||||
public ItemStack getStackInSlotOnClosing(int par1)
|
||||
{
|
||||
if (this.chestContents[par1] != null)
|
||||
{
|
||||
|
|
|
@ -23,12 +23,12 @@ public class mod_IronChest extends BaseModMp {
|
|||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return "2.5";
|
||||
return "3.0";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
MinecraftForge.versionDetect("IronChest", 1, 3, 3);
|
||||
MinecraftForge.versionDetect("IronChest", 1, 3, 4);
|
||||
proxy = ServerClientProxy.getProxy();
|
||||
File cfgFile = new File(proxy.getMinecraftDir(), "config/IronChest.cfg");
|
||||
Configuration cfg = new Configuration(cfgFile);
|
||||
|
@ -78,7 +78,7 @@ public class mod_IronChest extends BaseModMp {
|
|||
|
||||
|
||||
@Override
|
||||
public void ModsLoaded() {
|
||||
public void modsLoaded() {
|
||||
try {
|
||||
Class<?> equivexmaps=Class.forName("ee.EEMaps");
|
||||
Method addEMC=equivexmaps.getMethod("addEMC",int.class,int.class,int.class);
|
||||
|
|
|
@ -25,7 +25,7 @@ public class ServerProxy implements IProxy {
|
|||
@Override
|
||||
public void registerTileEntities() {
|
||||
for (IronChestType typ : IronChestType.values()) {
|
||||
ModLoader.RegisterTileEntity(typ.clazz, typ.name());
|
||||
ModLoader.registerTileEntity(typ.clazz, typ.name());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class ServerProxy implements IProxy {
|
|||
|
||||
@Override
|
||||
public void showGUI(TileEntityIronChest te, EntityPlayer player) {
|
||||
ModLoader.OpenGUI(player, te.getType().guiId, te, new ContainerIronChestBase(player.inventory,te, te.getType(), 1, 1));
|
||||
ModLoader.openGUI(player, te.getType().guiId, te, new ContainerIronChestBase(player.inventory,te, te.getType(), 1, 1));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -61,7 +61,7 @@ public class ServerProxy implements IProxy {
|
|||
|
||||
@Override
|
||||
public Packet getDescriptionPacket(TileEntityIronChest tile) {
|
||||
return ModLoaderMp.getTileEntityPacket(ModLoaderMp.GetModInstance(mod_IronChest.class), tile.xCoord, tile.yCoord, tile.zCoord, tile.getType().ordinal(), tile.buildIntDataList(),null,null);
|
||||
return ModLoaderMp.getTileEntityPacket(ModLoaderMp.getModInstance(mod_IronChest.class), tile.xCoord, tile.yCoord, tile.zCoord, tile.getType().ordinal(), tile.buildIntDataList(),null,null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue