ActuallyAdditions/src/main/java/ellpeck/someprettyrandomstuff/proxy/ClientProxy.java

32 lines
977 B
Java
Raw Normal View History

2015-01-30 20:16:32 +01:00
package ellpeck.someprettyrandomstuff.proxy;
import cpw.mods.fml.client.registry.ClientRegistry;
import ellpeck.someprettyrandomstuff.blocks.InitBlocks;
import ellpeck.someprettyrandomstuff.blocks.render.ModelCompost;
import ellpeck.someprettyrandomstuff.blocks.render.RenderItems;
import ellpeck.someprettyrandomstuff.blocks.render.RenderTileEntity;
import ellpeck.someprettyrandomstuff.tile.TileEntityCompost;
import net.minecraft.item.Item;
import net.minecraftforge.client.MinecraftForgeClient;
@SuppressWarnings("unused")
public class ClientProxy implements IProxy{
@Override
public void preInit(){
}
@Override
public void init(){
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompost.class, new RenderTileEntity(new ModelCompost()));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockCompost), new RenderItems(new ModelCompost()));
}
@Override
public void postInit(){
}
}