mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 14:04:47 +00:00
Split TProxyClient into module proxies
This commit is contained in:
1 parent
625118f062
commit
541a91432c
8 files changed
+555
-455
No files matched your search
@@ -1,11 +1,15 @@
|
||||
package tconstruct.mechworks;
|
||||
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiInventory;
|
||||
import net.minecraft.client.renderer.entity.RenderSnowball;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.world.World;
|
||||
import tconstruct.armor.ArmorProxyCommon;
|
||||
import tconstruct.client.TProxyClient;
|
||||
import tconstruct.client.entity.item.ExplosiveRender;
|
||||
import tconstruct.client.gui.AdaptiveSmelteryGui;
|
||||
import tconstruct.client.gui.ArmorExtendedGui;
|
||||
import tconstruct.client.gui.CraftingStationGui;
|
||||
@@ -21,6 +25,8 @@ import tconstruct.client.gui.ToolForgeGui;
|
||||
import tconstruct.client.gui.ToolStationGui;
|
||||
import tconstruct.client.tabs.TabRegistry;
|
||||
import tconstruct.common.TProxyCommon;
|
||||
import tconstruct.mechworks.entity.item.EntityLandmineFirework;
|
||||
import tconstruct.mechworks.entity.item.ExplosivePrimed;
|
||||
import tconstruct.mechworks.inventory.ContainerLandmine;
|
||||
import tconstruct.mechworks.logic.TileEntityLandmine;
|
||||
import tconstruct.smeltery.SmelteryProxyCommon;
|
||||
@@ -41,8 +47,15 @@ public class MechworksProxyClient extends MechworksProxyCommon
|
||||
{
|
||||
public void initialize()
|
||||
{
|
||||
registerRenderer();
|
||||
registerGuiHandler();
|
||||
}
|
||||
|
||||
void registerRenderer()
|
||||
{
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityLandmineFirework.class, new RenderSnowball(Items.fireworks));
|
||||
RenderingRegistry.registerEntityRenderingHandler(ExplosivePrimed.class, new ExplosiveRender());
|
||||
}
|
||||
|
||||
protected void registerGuiHandler()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user