2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.proxy;
|
2014-12-03 21:55:53 +01:00
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
import cpw.mods.fml.client.registry.ClientRegistry;
|
2015-04-06 15:51:59 +02:00
|
|
|
import cpw.mods.fml.common.registry.VillagerRegistry;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
2015-03-30 15:08:19 +02:00
|
|
|
import ellpeck.actuallyadditions.blocks.render.*;
|
2015-04-26 21:09:25 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
2015-04-24 19:22:03 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigIntValues;
|
2015-03-30 18:42:14 +02:00
|
|
|
import ellpeck.actuallyadditions.event.RenderPlayerEventAA;
|
2015-06-12 19:12:06 +02:00
|
|
|
import ellpeck.actuallyadditions.tile.*;
|
2015-04-26 21:09:25 +02:00
|
|
|
import ellpeck.actuallyadditions.update.UpdateChecker;
|
2015-04-06 15:51:59 +02:00
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
2015-03-30 18:42:14 +02:00
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.item.Item;
|
2015-04-06 15:51:59 +02:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraftforge.client.MinecraftForgeClient;
|
|
|
|
|
2014-12-03 21:55:53 +01:00
|
|
|
@SuppressWarnings("unused")
|
|
|
|
public class ClientProxy implements IProxy{
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
@Override
|
2015-01-29 20:23:19 +01:00
|
|
|
public void preInit(){
|
2015-07-01 21:32:48 +02:00
|
|
|
ModUtil.LOGGER.info("PreInitializing ClientProxy...");
|
2015-06-15 22:06:07 +02:00
|
|
|
|
|
|
|
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
|
|
|
new UpdateChecker().init();
|
|
|
|
}
|
2014-12-03 21:55:53 +01:00
|
|
|
}
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
@Override
|
2015-01-29 20:23:19 +01:00
|
|
|
public void init(){
|
2015-07-01 21:32:48 +02:00
|
|
|
ModUtil.LOGGER.info("Initializing ClientProxy...");
|
2015-03-30 18:42:14 +02:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompost.class, new RenderTileEntity(new ModelCompost()));
|
|
|
|
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockCompost), new RenderItems(new ModelCompost()));
|
2015-03-30 15:08:19 +02:00
|
|
|
|
|
|
|
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFishingNet.class, new RenderTileEntity(new ModelFishingNet()));
|
|
|
|
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockFishingNet), new RenderItems(new ModelFishingNet()));
|
|
|
|
|
|
|
|
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFurnaceSolar.class, new RenderTileEntity(new ModelFurnaceSolar()));
|
|
|
|
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockFurnaceSolar), new RenderItems(new ModelFurnaceSolar()));
|
2015-03-30 18:42:14 +02:00
|
|
|
|
2015-06-12 19:12:06 +02:00
|
|
|
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCoffeeMachine.class, new RenderTileEntity(new ModelCoffeeMachine()));
|
|
|
|
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockCoffeeMachine), new RenderItems(new ModelCoffeeMachine()));
|
|
|
|
|
|
|
|
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPhantomBooster.class, new RenderTileEntity(new ModelPhantomBooster()));
|
|
|
|
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockPhantomBooster), new RenderItems(new ModelPhantomBooster()));
|
|
|
|
|
2015-04-24 19:22:03 +02:00
|
|
|
VillagerRegistry.instance().registerVillagerSkin(ConfigIntValues.JAM_VILLAGER_ID.getValue(), new ResourceLocation(ModUtil.MOD_ID_LOWER, "textures/entity/villager/jamVillager.png"));
|
2015-04-06 15:51:59 +02:00
|
|
|
|
2015-03-30 18:42:14 +02:00
|
|
|
Util.registerEvent(new RenderPlayerEventAA());
|
2014-12-03 21:55:53 +01:00
|
|
|
}
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
@Override
|
2015-01-29 20:23:19 +01:00
|
|
|
public void postInit(){
|
2015-07-01 21:32:48 +02:00
|
|
|
ModUtil.LOGGER.info("PostInitializing ClientProxy...");
|
2014-12-03 21:55:53 +01:00
|
|
|
}
|
|
|
|
}
|