Split more files into parts

This commit is contained in:
mDiyo committed 2014-06-06 19:46:05 -08:00
1 parent e2f0558b6f
commit 5a87c102ea
61 files changed
+1365 -1499

No files matched your search

@@ -6,8 +6,10 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import tconstruct.TConstruct;
import tconstruct.armor.ArmorProxyCommon;
import tconstruct.armor.inventory.ArmorExtendedContainer;
import tconstruct.armor.inventory.KnapsackContainer;
import tconstruct.mechworks.MechworksProxyCommon;
import tconstruct.mechworks.inventory.ContainerLandmine;
import tconstruct.mechworks.logic.TileEntityLandmine;
import tconstruct.util.player.TPlayerStats;
@@ -16,116 +18,9 @@ import tconstruct.util.player.TPlayerStats;
* Common proxy class for InfiTools
*/
public class TProxyCommon implements IGuiHandler
public class TProxyCommon
{
public static final int toolStationID = 0;
public static final int partBuilderID = 1;
public static final int patternChestID = 2;
public static final int stencilTableID = 3;
public static final int frypanGuiID = 4;
public static final int toolForgeID = 5;
public static final int smelteryGuiID = 7;
public static final int furnaceID = 8;
// public static int drawbridgeID = 9; // Moved to TMechworks
public static final int landmineID = 10;
public static final int craftingStationID = 11;
// public static int advDrawbridgeID = 12; // Moved to TMechworks
public static final int inventoryGui = 100;
public static final int armorGuiID = 101;
public static final int knapsackGuiID = 102;
// public static int manualGuiID = -1;// moved to Mantle
@Override
public Object getServerGuiElement (int ID, EntityPlayer player, World world, int x, int y, int z)
{
if (ID < 0)
return null;
if (ID == landmineID)
{
return new ContainerLandmine(player, (TileEntityLandmine) world.getTileEntity(x, y, z));
}
else if (ID < 100)
{
TileEntity tile = world.getTileEntity(x, y, z);
if (tile != null && tile instanceof InventoryLogic)
{
return ((InventoryLogic) tile).getGuiContainer(player.inventory, world, x, y, z);
}
}
else
{
if (ID == inventoryGui)
{
// GuiInventory inv = new GuiInventory(player);
return player.inventoryContainer;
}
if (ID == armorGuiID)
{
TPlayerStats stats = TPlayerStats.get(player);
return new ArmorExtendedContainer(player.inventory, stats.armor);
}
if (ID == knapsackGuiID)
{
TPlayerStats stats = TPlayerStats.get(player);
return new KnapsackContainer(player.inventory, stats.knapsack);
}
}
return null;
}
@Override
public Object getClientGuiElement (int ID, EntityPlayer player, World world, int x, int y, int z)
{
return null;
}
public void registerTickHandler ()
{
// TickRegistry.registerTickHandler(new TimeTicker(), Side.SERVER);
}
/* Registers any rendering code. Does nothing server-side */
public void registerRenderer ()
{
}
/* Ties an internal name to a visible one. */
public void addNames ()
{
// As of 1.6.x, this is now handled by Minecraft itself for the most
// part.
//LanguageRegistry.addName(TRepo.potionLauncher, "Potion Launcher");
//LanguageRegistry.addName(TRepo.knapsack, "Knapsack");
}
public void readManuals ()
{
}
public void registerKeys ()
{
}
public void spawnParticle (String slimeParticle, double xPos, double yPos, double zPos, double velX, double velY, double velZ)
{
}
public static final String[] patterns = new String[] { "ingot", "rod", "pickaxe", "shovel", "axe", "swordblade", "largeguard", "mediumguard", "crossbar", "binding", "frypan", "sign",
"knifeblade", "chisel", "largerod", "toughbinding", "largeplate", "broadaxe", "scythe", "excavator", "largeblade", "hammerhead", "fullguard", "bowstring", "fletching", "arrowhead" };
public void postInit ()
{
}
public void recalculateHealth ()
{
}
}