use of icbm.classic.content.blocks.emptower.TESREMPTower in project ICBM-Classic by BuiltBrokenModding.
the class ClientReg method registerAllModels.
@SubscribeEvent
public static void registerAllModels(ModelRegistryEvent event) {
OBJLoader.INSTANCE.addDomain(ICBMConstants.DOMAIN);
// reset
clearModelCache();
// Glass
newBlockModel(BlockReg.blockReinforcedGlass, 0, "inventory", "");
newBlockModel(BlockReg.blockGlassPlate, 0, "inventory", "");
newBlockModel(BlockReg.blockGlassButton, 0, "inventory", "");
// Spikes
newBlockModel(BlockReg.blockSpikes, 0, "inventory", "");
newBlockModel(BlockReg.blockSpikes, 1, "inventory", "_poison");
newBlockModel(BlockReg.blockSpikes, 2, "inventory", "_fire");
// Concrete
newBlockModel(BlockReg.blockConcrete, 0, "inventory", "");
newBlockModel(BlockReg.blockConcrete, 1, "inventory", "_compact");
newBlockModel(BlockReg.blockConcrete, 2, "inventory", "_reinforced");
newBlockModel(BlockReg.blockCruiseLauncher, 0, "inventory", "");
// Explosives
registerExBlockRenders();
registerGrenadeRenders();
registerCartRenders();
registerMissileRenders();
// Machines
newBlockModel(BlockReg.blockEmpTower, 0, "inventory", "");
newBlockModel(BlockReg.blockRadarStation, 0, "inventory", "");
registerLauncherPart(BlockReg.blockLaunchBase);
registerLauncherPart(BlockReg.blockLaunchSupport);
registerLauncherPart(BlockReg.blockLaunchScreen);
registerMultiBlockRenders();
// items
newItemModel(ItemReg.itemPoisonPowder, 0, "inventory", "");
newItemModel(ItemReg.itemSulfurDust, 0, "inventory", "");
newItemModel(ItemReg.itemSaltpeterDust, 0, "inventory", "");
newItemModel(ItemReg.itemAntidote, 0, "inventory", "");
newItemModel(ItemReg.itemSignalDisrupter, 0, "inventory", "");
newItemModel(ItemReg.itemTracker, 0, "inventory", "");
newItemModel(ItemReg.itemDefuser, 0, "inventory", "");
newItemModel(ItemReg.itemRadarGun, 0, "inventory", "");
newItemModel(ItemReg.itemRemoteDetonator, 0, "inventory", "");
newItemModel(ItemReg.itemLaserDetonator, 0, "inventory", "");
newItemModel(ItemReg.itemRocketLauncher, 0, "inventory", "");
newItemModel(ItemReg.itemBattery, 0, "inventory", "");
// crafting parts
if (ConfigItems.ENABLE_CRAFTING_ITEMS) {
if (ConfigItems.ENABLE_INGOTS_ITEMS) {
registerCraftingRender(ItemReg.itemIngot);
registerCraftingRender(ItemReg.itemIngotClump);
}
if (ConfigItems.ENABLE_PLATES_ITEMS)
registerCraftingRender(ItemReg.itemPlate);
if (ConfigItems.ENABLE_CIRCUIT_ITEMS)
registerCraftingRender(ItemReg.itemCircuit);
if (ConfigItems.ENABLE_WIRES_ITEMS)
registerCraftingRender(ItemReg.itemWire);
}
// ---------------------------------------
// Entity renders
// ---------------------------------------
RenderingRegistry.registerEntityRenderingHandler(EntityExplosive.class, manager -> new RenderExBlock(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityFlyingBlock.class, manager -> new RenderEntityBlock(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityExplosion.class, manager -> new RenderExplosion(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, manager -> new RenderGrenade(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityLightBeam.class, manager -> new RenderLightBeam(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityFragments.class, manager -> new RenderFragments(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityPlayerSeat.class, manager -> new RenderSeat(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityMissile.class, manager -> RenderMissile.INSTANCE = new RenderMissile(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityXmasSkeleton.class, manager -> new RenderSkeletonXmas(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityXmasSkeletonBoss.class, manager -> new RenderSkeletonXmas(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityXmasSnowman.class, manager -> new RenderSnowmanXmas(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityXmasZombie.class, manager -> new RenderZombieXmas(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityXmasZombieBoss.class, manager -> new RenderZombieXmas(manager));
RenderingRegistry.registerEntityRenderingHandler(EntityXmasCreeper.class, manager -> new RenderCreeperXmas(manager));
ClientRegistry.bindTileEntitySpecialRenderer(TileEMPTower.class, new TESREMPTower());
ClientRegistry.bindTileEntitySpecialRenderer(TileRadarStation.class, new TESRRadarStation());
ClientRegistry.bindTileEntitySpecialRenderer(TileLauncherFrame.class, new TESRLauncherFrame());
ClientRegistry.bindTileEntitySpecialRenderer(TileLauncherBase.class, new TESRLauncherBase());
ClientRegistry.bindTileEntitySpecialRenderer(TileLauncherScreen.class, new TESRLauncherScreen());
ClientRegistry.bindTileEntitySpecialRenderer(TileCruiseLauncher.class, new TESRCruiseLauncher());
}
Aggregations