Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.dyeo.teleporter.proxy;
- import net.dyeo.teleporter.Teleporter;
- import net.dyeo.teleporter.entities.TileEntityEnderTeleporter;
- import net.dyeo.teleporter.entities.TileEntityTeleporter;
- import net.dyeo.teleporter.rendering.RenderBlockTeleporter;
- import net.dyeo.teleporter.rendering.RenderItemTeleporter;
- import net.minecraft.item.Item;
- import net.minecraftforge.client.MinecraftForgeClient;
- import cpw.mods.fml.client.registry.ClientRegistry;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- public class ClientProxy extends CommonProxy implements ISidedProxy {
- @Override
- public void preInit(FMLPreInitializationEvent event)
- {
- super.preInit(event);
- }
- @Override
- public void init(FMLInitializationEvent event)
- {
- super.init(event);
- registerRenderers();
- }
- @Override
- public void load(FMLInitializationEvent event)
- {
- super.load(event);
- }
- void registerRenderers()
- {
- //
- ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTeleporter.class, new RenderBlockTeleporter("textures/models/teleporterBlock.png","models/teleporterBlock.obj"));
- MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Teleporter.teleporterBlock), new RenderItemTeleporter());
- //
- ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEnderTeleporter.class, new RenderBlockTeleporter("textures/models/enderTeleporterBlock.png","models/teleporterBlock.obj"));
- MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Teleporter.enderTeleporterBlock), new RenderItemTeleporter());
- }
- }
Add Comment
Please, Sign In to add comment