net.minecraftforge.client.event.ModelRegistryEvent Java Examples
The following examples show how to use
net.minecraftforge.client.event.ModelRegistryEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PokeMod.java From CommunityMod with GNU Lesser General Public License v2.1 | 6 votes |
@Override @SideOnly(Side.CLIENT) public void registerModels(final ModelRegistryEvent event) { simpleItemModel(POKE_INGOT); simpleItemModel(POKE_NUGGET); simpleItemModel(POKE_PICKAXE); simpleItemModel(POKE_AXE); simpleItemModel(POKE_SWORD); simpleItemModel(POKE_HOE); simpleItemModel(POKE_SHOVEL); simpleItemModel(POKE_HELMET); simpleItemModel(POKE_CHESTPLATE); simpleItemModel(POKE_LEGGINGS); simpleItemModel(POKE_BOOTS); simpleItemModel(POKE_HORSE_ARMOR); simpleItemModel(POKEBALL); simpleItemModel(Item.getItemFromBlock(POKE_ORE)); simpleItemModel(Item.getItemFromBlock(POKE_BLOCK)); }
Example #2
Source File: ClientProxy.java From EnderZoo with Creative Commons Zero v1.0 Universal | 6 votes |
@SubscribeEvent public void onModelRegister(ModelRegistryEvent e) { regRenderer(EnderZoo.itemWitheringDust, ItemWitheringDust.NAME); regRenderer(EnderZoo.itemConfusingDust, ItemConfusingDust.NAME); regRenderer(EnderZoo.itemEnderFragment, ItemEnderFragment.NAME); regRenderer(EnderZoo.itemOwlEgg, ItemOwlEgg.NAME); regRenderer(EnderZoo.itemForCreativeMenuIcon, ItemForCreativeMenuIcon.NAME); if (Config.guardiansBowEnabled) regRenderer(EnderZoo.itemGuardiansBow, ItemGuardiansBow.NAME); if (Config.confusingChargeEnabled) regRenderer(Item.getItemFromBlock(EnderZoo.blockConfusingCharge), BlockConfusingCharge.NAME); if (Config.concussionChargeEnabled) regRenderer(Item.getItemFromBlock(EnderZoo.blockConcussionCharge), BlockConcussionCharge.NAME); if (Config.enderChargeEnabled) regRenderer(Item.getItemFromBlock(EnderZoo.blockEnderCharge), BlockEnderCharge.NAME); }
Example #3
Source File: Squirrel.java From CommunityMod with GNU Lesser General Public License v2.1 | 6 votes |
@Override @SideOnly(Side.CLIENT) public void registerModels(final ModelRegistryEvent event) { simpleItemModel(SQUIRREL_INGOT); simpleItemModel(SQUIRREL_NUGGET); simpleItemModel(SQUIRREL_PICKAXE); simpleItemModel(SQUIRREL_AXE); simpleItemModel(SQUIRREL_SWORD); simpleItemModel(SQUIRREL_HOE); simpleItemModel(SQUIRREL_SHOVEL); simpleItemModel(SQUIRREL_HELMET); simpleItemModel(SQUIRREL_CHESTPLATE); simpleItemModel(SQUIRREL_LEGGINGS); simpleItemModel(SQUIRREL_BOOTS); simpleItemModel(SQUIRREL_HORSE_ARMOR); simpleItemModel(Item.getItemFromBlock(SQUIRREL_ORE)); simpleItemModel(Item.getItemFromBlock(SQUIRREL_BLOCK)); }
Example #4
Source File: WillsAssortedThingsSubMod.java From CommunityMod with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void registerModels(ModelRegistryEvent event) { for (Block block : ModBlocks.blocks) { simpleItemModel(Item.getItemFromBlock(block)); } for (Item item : ModItems.items) { simpleItemModel(item); } RenderingRegistry.registerEntityRenderingHandler(EntityChickenArrow.class, RenderChickenArrow::new); }
Example #5
Source File: CommunityMod.java From CommunityMod with GNU Lesser General Public License v2.1 | 5 votes |
@SideOnly(Side.CLIENT) @SubscribeEvent public void models (ModelRegistryEvent event) { for (final SubModContainer container : SubModLoader.getLoadedSubMods()) { activeSubMod = container; container.getSubMod().registerModels(event); } activeSubMod = null; }
Example #6
Source File: ProxyClient.java From WearableBackpacks with MIT License | 5 votes |
@SubscribeEvent public void onRegisterModels(ModelRegistryEvent event) { if (BackpacksContent.BACKPACK != null) { ModelLoader.setCustomModelResourceLocation(BackpacksContent.BACKPACK, 0, new ModelResourceLocation("wearablebackpacks:backpack", "inventory")); } }
Example #7
Source File: ExtraRandomness.java From CommunityMod with GNU Lesser General Public License v2.1 | 5 votes |
@SideOnly(Side.CLIENT) @Override public void registerModels(ModelRegistryEvent event) { ClientUtil.simpleItemModel(itemBlockAltar); altarItems.forEach(ClientUtil::simpleItemModel); // I am lazy. ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAltar.class, new RenderAltar()); }
Example #8
Source File: ClientProxy.java From enderutilities with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { registerBlockModels(); registerItemBlockModels(); registerAllItemModels(); }
Example #9
Source File: RegistrationHandler.java From EmergingTechnology with MIT License | 5 votes |
@SideOnly(Side.CLIENT) public static void registerModels(ModelRegistryEvent event) { for (Block block : ModBlocks.getBlocks()) { registerModel(Item.getItemFromBlock(block)); } for (Item item : ModItems.getItems()) { registerModel(item); } registerModTissueModels(); // Hydroponic TESR ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(ModBlocks.hydroponic), 0, new ModelResourceLocation(ModBlocks.hydroponic.getRegistryName(), "inventory")); ClientRegistry.bindTileEntitySpecialRenderer(HydroponicTileEntity.class, new HydroponicTESR()); ClientRegistry.bindTileEntitySpecialRenderer(TidalGeneratorTileEntity.class, new AnimationTESR<TidalGeneratorTileEntity>()); ClientRegistry.bindTileEntitySpecialRenderer(WindTileEntity.class, new AnimationTESR<WindTileEntity>()); ClientRegistry.bindTileEntitySpecialRenderer(ScrubberTileEntity.class, new AnimationTESR<ScrubberTileEntity>()); ClientRegistry.bindTileEntitySpecialRenderer(HarvesterTileEntity.class, new AnimationTESR<HarvesterTileEntity>()); RenderHandler.registerMeshesAndStatesForBlock(ModBlocks.carbondioxideblock); RenderHandler.registerMeshesAndStatesForBlock(ModBlocks.nutrientblock); }
Example #10
Source File: ClientEvents.java From Survivalist with BSD 3-Clause "New" or "Revised" License | 5 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { RenderingRegistry.registerEntityRenderingHandler(RockEntity.TYPE.get(), manager -> new SpriteRenderer<>(manager, Minecraft.getInstance().getItemRenderer())); ClientRegistry.bindTileEntityRenderer(DryingRackTileEntity.TYPE.get(), DryingRackRenderer::new); ClientRegistry.bindTileEntityRenderer(ChoppingBlockTileEntity.TYPE.get(), ChoppingBlockRenderer::new); }
Example #11
Source File: ClientProxy.java From Signals with GNU General Public License v3.0 | 5 votes |
@SubscribeEvent public void onModelRegistration(ModelRegistryEvent event){ for(int i = 0; i <= 4; i++) { ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation("signals:ticket"), "inventory_" + i); ModelLoader.setCustomModelResourceLocation(ModItems.TICKET, i, location); } }
Example #12
Source File: OpenGLUtils.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 5 votes |
public static void onModelRegistryEvent(ModelRegistryEvent event) { GLCapabilities caps = GL.getCapabilities(); openGL20 = caps.OpenGL20; openGL21 = caps.OpenGL21; openGL32 = caps.OpenGL32; openGL40 = caps.OpenGL40; openGL43 = caps.OpenGL43; openGL44 = caps.OpenGL44; openGL45 = caps.OpenGL45; openGL46 = caps.OpenGL46; }
Example #13
Source File: ClientProxy.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { MetaBlocks.registerStateMappers(); MetaBlocks.registerItemModels(); MetaItems.registerModels(); }
Example #14
Source File: InfinitePain.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@SideOnly(Side.CLIENT) @Override public void registerModels(ModelRegistryEvent event) { ClientUtil.simpleItemModel(PAIN_BOOTS); }
Example #15
Source File: GTProxyClient.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { GTItems.testTube.initModel(); }
Example #16
Source File: ClientProxy.java From YouTubeModdingTutorial with MIT License | 4 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { ModBlocks.initModels(); ModItems.initModels(); ModEntities.initModels(); }
Example #17
Source File: ItemBookCode.java From Minecoprocessors with GNU General Public License v3.0 | 4 votes |
@SubscribeEvent public static void registerModels(@SuppressWarnings("unused") ModelRegistryEvent event) { ModelLoader.setCustomModelResourceLocation(INSTANCE, 0, new ModelResourceLocation(REGISTRY_NAME, "inventory")); }
Example #18
Source File: TraverseCommon.java From Traverse-Legacy-1-12-2 with MIT License | 4 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { ShootingStar.registerModels(TraverseConstants.MOD_ID); }
Example #19
Source File: ModBlocks.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@SubscribeEvent @SideOnly(Side.CLIENT) public static void registerModels(ModelRegistryEvent event) { PEARL_HOLDER.initModel(); MANA_MAGNET.initModel(); }
Example #20
Source File: AdvancedRocketry.java From AdvancedRocketry with MIT License | 4 votes |
@SideOnly(Side.CLIENT) @SubscribeEvent public void registerModels(ModelRegistryEvent event) { proxy.preInitItems(); proxy.preInitBlocks(); }
Example #21
Source File: TraverseCommon.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { ShootingStar.registerModels(TraverseConstants.MOD_ID); }
Example #22
Source File: CommonProxy.java From EmergingTechnology with MIT License | 4 votes |
@SideOnly(Side.CLIENT) @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { RegistrationHandler.registerModels(event); }
Example #23
Source File: DabSquirrels.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@SubscribeEvent @SideOnly(Side.CLIENT) public static void registerRender(ModelRegistryEvent event) { RenderingRegistry.registerEntityRenderingHandler(EntityDabSquirrel.class, RenderDabSquirrel::new); }
Example #24
Source File: ClayRainMod.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@SideOnly(Side.CLIENT) @Override public void registerModels(ModelRegistryEvent e) { ClientUtil.simpleItemModel(rainStick); }
Example #25
Source File: SubModTightPants.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override @SideOnly(Side.CLIENT) public void registerModels (ModelRegistryEvent event) { ModelLoader.setCustomModelResourceLocation(tightPants, 0, new ModelResourceLocation(pantsId, "inventory")); }
Example #26
Source File: TransIconHerobrineButWithBetterPantsSubMod.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void registerModels(ModelRegistryEvent event) { RenderingRegistry.registerEntityRenderingHandler(TransIconHerobrineButWithBetterPantsEntity.class, TransIconHerobrineButWithBetterPantsRenderer::new); RenderingRegistry.registerEntityRenderingHandler(NotchButWithWorsererPantsEntity.class, NotchButWithWorsererPantsRenderer::new); }
Example #27
Source File: NeedsMoreJpeg.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@SideOnly(Side.CLIENT) @Override public void registerModels(ModelRegistryEvent event) { ClientUtil.simpleItemModel(JPEG_GOGGLES); }
Example #28
Source File: NeatNether.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override @SideOnly(Side.CLIENT) public void registerModels(ModelRegistryEvent event) { NeatNetherBlocks.registerModels(event); }
Example #29
Source File: NeatNetherBlocks.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
public static void registerModels(ModelRegistryEvent event) { registerBlockItemModel(SMOULDERING_ASH); registerBlockItemModel(SOUL_GLASS); }
Example #30
Source File: SexyFont.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@SideOnly(Side.CLIENT) @Override public void registerModels(ModelRegistryEvent event) { ClientUtil.simpleItemModel(Items.SEXY_GLASSES); }