Java Code Examples for net.minecraftforge.fml.client.registry.RenderingRegistry#registerEntityRenderingHandler()

The following examples show how to use net.minecraftforge.fml.client.registry.RenderingRegistry#registerEntityRenderingHandler() . 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: TofuEntityRegister.java    From TofuCraftReload with MIT License 8 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void entityRender() {
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuCow.class, RenderTofuCow::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuSlime.class, RenderTofuSlime::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofunian.class, RenderTofunian::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuChinger.class, RenderTofuChinger::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuSpider.class, RenderTofuSpider::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityFukumame.class, RenderFukumame::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityZundaArrow.class, RenderZundaArrow::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuFish.class, RenderTofuFish::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuTurret.class, RenderTofuTurret::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityBeam.class, RenderBeam::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuMindCore.class, RenderTofuMindCore::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTofuGandlem.class, RenderTofuGandlem::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityFallTofu.class, RenderFallTofu::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTippedChingerArrow.class, RenderTippedChingerArrow::new);
}
 
Example 2
Source File: ClientProxy.java    From Cyberware with MIT License 6 votes vote down vote up
@Override
public void preInit()
{
	super.preInit();
	
	for (Block block : CyberwareContent.blocks)
	{
		registerRenders(block);
	}
	
	for (Item item : CyberwareContent.items)
	{
		registerRenders(item);
	}

	ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySurgeryChamber.class, new TileEntitySurgeryChamberRenderer());
	RenderingRegistry.registerEntityRenderingHandler(EntityCyberZombie.class, RenderCyberZombie::new);
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityScanner.class, new TileEntityScannerRenderer());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEngineeringTable.class, new TileEntityEngineeringRenderer());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeaconPostMaster.class, new TileEntityBeaconLargeRenderer());

}
 
Example 3
Source File: ClientProxy.java    From Valkyrien-Skies with Apache License 2.0 6 votes vote down vote up
@Override
public void preInit(FMLPreInitializationEvent e) {
    super.preInit(e);
    OBJLoader.INSTANCE.addDomain(ValkyrienSkiesMod.MOD_ID.toLowerCase());
    RenderingRegistry.registerEntityRenderingHandler(PhysicsWrapperEntity.class,
        new PhysicsWrapperEntityRenderFactory());
    // Register events
    MinecraftForge.EVENT_BUS.register(new EventsClient());
    MinecraftForge.EVENT_BUS.register(keyEvents);

    // Register VS Minecraft resource reload listener.
    IReloadableResourceManager mcResourceManager = (IReloadableResourceManager) Minecraft
        .getMinecraft()
        .getResourceManager();

    // When Minecraft reloads resources tell GibsModelRegistry to delete all its caches.
    mcResourceManager.registerReloadListener(GibsModelRegistry::onResourceManagerReload);

    registerAnimations();
}
 
Example 4
Source File: EntityVillageLord.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityVillageLord.class, new IRenderFactory<EntityVillageLord>() {
		@Override
		public Render<EntityVillageLord> createRenderFor(RenderManager manager) {
			return new RenderVillageLord(manager);
		}
	});
}
 
Example 5
Source File: EntityShopkeeper.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityShopkeeper.class, new IRenderFactory<EntityShopkeeper>() {
		@Override
		public Render<EntityShopkeeper> createRenderFor(RenderManager manager) {
			return new RenderShopkeeper(manager);
		}
	});
}
 
Example 6
Source File: EntityRainbowGuard.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityRainbowGuard.class, new IRenderFactory<EntityRainbowGuard>() {
		@Override
		public Render<EntityRainbowGuard> createRenderFor(RenderManager manager) {
			return new RenderRainbowGuard(manager);
		}
	});
}
 
Example 7
Source File: ModEntities.java    From Wizardry with GNU Lesser General Public License v3.0 5 votes vote down vote up
@SideOnly(Side.CLIENT)
	public static void initModels() {
//		RenderingRegistry.registerEntityRenderingHandler(EntityZachriel.class, manager -> new RenderZachriel(manager, new ModelZachriel()));
		RenderingRegistry.registerEntityRenderingHandler(EntitySpiritBlight.class, manager -> new RenderSpiritBlight(manager, new ModelSpiritBlight()));
		RenderingRegistry.registerEntityRenderingHandler(EntitySpiritWight.class, manager -> new RenderSpiritWight(manager, new ModelSpiritWight()));
		RenderingRegistry.registerEntityRenderingHandler(EntityFairy.class, manager -> new RenderFairy(manager, new ModelNull()));
		RenderingRegistry.registerEntityRenderingHandler(EntityUnicorn.class, manager -> new RenderUnicorn(manager, new ModelUnicorn()));
		RenderingRegistry.registerEntityRenderingHandler(EntityJumpPad.class, manager -> new RenderJumpPad(manager, new ModelNull()));
//		RenderingRegistry.registerEntityRenderingHandler(EntityCorruptionProjectile.class, RenderZachrielCorruption::new);
		RenderingRegistry.registerEntityRenderingHandler(EntitySpellProjectile.class, RenderSpellProjectile::new);
		RenderingRegistry.registerEntityRenderingHandler(EntityLightningProjectile.class, RenderSpellProjectile::new);
		RenderingRegistry.registerEntityRenderingHandler(EntityHaloInfusionItem.class, RenderHaloInfusionItem::new);
		RenderingRegistry.registerEntityRenderingHandler(EntityBackupZombie.class, RenderSummonZombie::new);
		RenderingRegistry.registerEntityRenderingHandler(EntityBomb.class, RenderBomb::new);
	}
 
Example 8
Source File: EntityBas.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityBas.class, new IRenderFactory<EntityBas>() {
		@Override
		public Render<EntityBas> createRenderFor(RenderManager manager) {
			return new RenderBas(manager);
		}
	});
}
 
Example 9
Source File: SubmodGnomes.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public void onPreInit(FMLPreInitializationEvent e)
{
	GameRegistry.registerTileEntity(TileEntityGnomeCache.class, new ResourceLocation(CommunityGlobals.MOD_ID, "te_gnomecache"));

	if (e.getSide().isClient())
	{
		RenderingRegistry.registerEntityRenderingHandler(EntityGnomeWood.class, RenderGnomeWood::new);
	}
}
 
Example 10
Source File: EntitySentry.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntitySentry.class, new IRenderFactory<EntitySentry>() {
		@Override
		public Render<EntitySentry> createRenderFor(RenderManager manager) {
			return new RenderSentry(manager);
		}
	});
}
 
Example 11
Source File: ToroQuestEntityRenders.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerMageRenderer() {
	RenderingRegistry.registerEntityRenderingHandler(EntityMage.class, new IRenderFactory<EntityMage>() {
		@Override 
		public Render<EntityMage> createRenderFor(RenderManager manager) { 
			return new RenderMage(manager); 
		}
	});
}
 
Example 12
Source File: ClientProxy.java    From ExNihiloAdscensio with MIT License 5 votes vote down vote up
@Override
public void registerRenderers()
{
	ClientRegistry.bindTileEntitySpecialRenderer(TileBarrel.class, new RenderBarrel());
	ClientRegistry.bindTileEntitySpecialRenderer(TileCrucible.class, new RenderCrucible());
	ClientRegistry.bindTileEntitySpecialRenderer(TileSieve.class, new RenderSieve());
	ClientRegistry.bindTileEntitySpecialRenderer(TileInfestedLeaves.class, new RenderInfestedLeaves());
	RenderingRegistry.registerEntityRenderingHandler(ProjectileStone.class, new RenderProjectileStone.Factory());
}
 
Example 13
Source File: TransIconHerobrineButWithBetterPantsSubMod.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void registerModels(ModelRegistryEvent event) {
    RenderingRegistry.registerEntityRenderingHandler(TransIconHerobrineButWithBetterPantsEntity.class, TransIconHerobrineButWithBetterPantsRenderer::new);
    RenderingRegistry.registerEntityRenderingHandler(NotchButWithWorsererPantsEntity.class, NotchButWithWorsererPantsRenderer::new);
}
 
Example 14
Source File: ModEntities.java    From YouTubeModdingTutorial with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void initModels() {
    RenderingRegistry.registerEntityRenderingHandler(EntityGuard.class, RenderGuard.FACTORY);
    RenderingRegistry.registerEntityRenderingHandler(EntitySphere.class, RenderSphere.FACTORY);
}
 
Example 15
Source File: SubmodExplodingChickens.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void onPreInit(FMLPreInitializationEvent event) {
	RenderingRegistry.registerEntityRenderingHandler(EntityExplodingChicken.class, RenderExplodingChicken::new);
}
 
Example 16
Source File: ClientExplodingChickens.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void onPreInit (FMLPreInitializationEvent event) {
	RenderingRegistry.registerEntityRenderingHandler(EntityExplodingChicken.class, RenderExplodingChicken::new);
}
 
Example 17
Source File: ClientProxy.java    From NOVA-Core with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void init(FMLInitializationEvent evt) {
	super.init(evt);
	RenderingRegistry.registerEntityRenderingHandler(FWEntity.class, FWEntityRenderer.instance);
}
 
Example 18
Source File: Penguins.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public void onPreInit(FMLPreInitializationEvent event) {
	RenderingRegistry.registerEntityRenderingHandler(EntityPenguin.class, PenguinRenderer::new);
}
 
Example 19
Source File: ClientProxyWorld.java    From Valkyrien-Skies with Apache License 2.0 4 votes vote down vote up
@Override
public void preInit(FMLStateEvent e) {
    super.preInit(e);
    RenderingRegistry
        .registerEntityRenderingHandler(EntityFallingUpBlock.class, RenderFallingBlock::new);
}
 
Example 20
Source File: SakuraEntityRegister.java    From Sakura_mod with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void entityRender() {
    RenderingRegistry.registerEntityRenderingHandler(EntityDeer.class, RenderDeer::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySamuraiIllager.class, RenderSamuraiIllager::new);
}