net.minecraftforge.fml.client.registry.RenderingRegistry Java Examples

The following examples show how to use net.minecraftforge.fml.client.registry.RenderingRegistry. 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 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 #3
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 #4
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 #5
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 #6
Source File: EntityVampireBat.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityVampireBat.class, new IRenderFactory<EntityVampireBat>() {
		@Override
		public Render<EntityVampireBat> createRenderFor(RenderManager manager) {
			return new RenderVampireBat(manager);
		}
	});
}
 
Example #7
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 #8
Source File: ToroQuestEntityRenders.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerMonolithEyeRenderer() {
	RenderingRegistry.registerEntityRenderingHandler(EntityMonolithEye.class, new IRenderFactory<EntityMonolithEye>() {
		@Override 
		public Render<EntityMonolithEye> createRenderFor(RenderManager manager) { 
			return new RenderMonolithEye(manager); 
		}
	});
}
 
Example #9
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 #10
Source File: EntityGuard.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityGuard.class, new IRenderFactory<EntityGuard>() {
		@Override
		public Render<EntityGuard> createRenderFor(RenderManager manager) {
			return new RenderGuard(manager);
		}
	});
}
 
Example #11
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 #12
Source File: EntityFugitive.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityFugitive.class, new IRenderFactory<EntityFugitive>() {
		@Override
		public Render<EntityFugitive> createRenderFor(RenderManager manager) {
			return new RenderFugitive(manager);
		}
	});
}
 
Example #13
Source File: EntityToro.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityToro.class, new IRenderFactory<EntityToro>() {
		@Override
		public Render<EntityToro> createRenderFor(RenderManager manager) {
			return new RenderToro(manager, new ModelToro(), 0.7F);
		}
	});
}
 
Example #14
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 #15
Source File: ClientEvents.java    From Survivalist with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@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 #16
Source File: ClientProxy.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public void registerRenderers()
{
    RenderingRegistry.registerEntityRenderingHandler(EntityEnderArrow.class, manager -> { return new RenderEnderArrow<EntityEnderArrow>(manager); });
    RenderingRegistry.registerEntityRenderingHandler(EntityEnderPearlReusable.class, manager -> { return new RenderEntityEnderPearl(manager, EnderUtilitiesItems.ENDER_PEARL_REUSABLE); });
    RenderingRegistry.registerEntityRenderingHandler(EntityEndermanFighter.class, manager -> { return new RenderEndermanFighter(manager); });
    RenderingRegistry.registerEntityRenderingHandler(EntityChair.class, manager -> { return new RenderChair(manager); });
    RenderingRegistry.registerEntityRenderingHandler(EntityFallingBlockEU.class, manager -> { return new RenderFallingBlockEU(manager); });

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBarrel.class, new TESRBarrel());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEnergyBridge.class, new TileEntityRendererEnergyBridge());
}
 
Example #17
Source File: ClientProxy.java    From Moo-Fluids with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void registerEntities() {
  super.registerEntities();
  RenderingRegistry.registerEntityRenderingHandler(EntityFluidCow.class,
                                                   new RenderFluidCow.Factory());

  if (ConfigurationData.EVENT_ENTITIES_ENABLED_VALUE) {
    final RenderEventCow.Factory renderFactory = new RenderEventCow.Factory();
    RenderingRegistry.registerEntityRenderingHandler(EntityChristmasCow.class, renderFactory);
    RenderingRegistry.registerEntityRenderingHandler(EntityEasterCow.class, renderFactory);
    RenderingRegistry.registerEntityRenderingHandler(EntityHalloweenCow.class, renderFactory);
    RenderingRegistry.registerEntityRenderingHandler(EntityNewYearsCow.class, renderFactory);
    RenderingRegistry.registerEntityRenderingHandler(EntityValentinesCow.class, renderFactory);
  }
}
 
Example #18
Source File: ClientProxy.java    From EnderZoo with Creative Commons Zero v1.0 Universal 5 votes vote down vote up
@Override
public void preInit() {
  super.preInit();
  
  MinecraftForge.EVENT_BUS.register(this);
  
  if (Config.enderminyEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityEnderminy.class, RenderEnderminy.FACTORY);
  }
  if (Config.concussionCreeperEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityConcussionCreeper.class, RenderConcussionCreeper.FACTORY);
  }
  if (Config.fallenKnightEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityFallenKnight.class, RenderFallenKnight.FACTORY);
  }
  if (Config.fallenMountEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityFallenMount.class, RenderFallenMount.FACTORY);
  }
  if (Config.witherWitchEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityWitherWitch.class, RenderWitherWitch.FACTORY);
  }
  if (Config.witherCatEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityWitherCat.class, RenderWitherCat.FACTORY);
  }
  if (Config.direWolfEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityDireWolf.class, RenderDirewolf.FACTORY);
  }
  if (Config.direSlimeEnabled) {
    RenderingRegistry.registerEntityRenderingHandler(EntityDireSlime.class, RenderDireSlime.FACTORY);
  }
  if (Config.owlEnabled) {      
    RenderingRegistry.registerEntityRenderingHandler(EntityOwl.class, RenderOwl.FACTORY);
  }
  RenderingRegistry.registerEntityRenderingHandler(EntityPrimedCharge.class, RenderPrimedCharge.FACTORY);    
  RenderingRegistry.registerEntityRenderingHandler(EntityOwlEgg.class, RenderEntityOwlEgg.FACTORY);

}
 
Example #19
Source File: EntityRainbowKing.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public static void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityRainbowKing.class, new IRenderFactory<EntityRainbowKing>() {
		@Override
		public Render<? super EntityRainbowKing> createRenderFor(RenderManager manager) {
			return new RenderRainbowKing(manager);
		}
	});
}
 
Example #20
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 #21
Source File: Mobycraft.java    From mobycraft with Apache License 2.0 5 votes vote down vote up
public void registerModEntity(Class entityClass, Render render,
		String entityName, int entityId, int foregroundColor,
		int backgroundColor) {
	EntityRegistry.registerGlobalEntityID(entityClass, entityName,
			entityId, foregroundColor, backgroundColor);
	EntityRegistry.registerModEntity(entityClass, entityName, entityId,
			this, 80, 1, false);
	RenderingRegistry.registerEntityRenderingHandler(entityClass, render);
}
 
Example #22
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 #23
Source File: WillsAssortedThingsSubMod.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@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 #24
Source File: Chickenificator.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public void onInit(FMLInitializationEvent event) {
	FMLLog.log.info("Chickenification is beginning...");
	//RenderingRegistry.registerEntityRenderingHandler(EntitySheep.class, new RenderStupidChicken());
	RenderingRegistry.registerEntityRenderingHandler(EntityCow.class, new RenderStupidChicken());
	RenderingRegistry.registerEntityRenderingHandler(EntityPig.class, new RenderStupidChicken());
	RenderingRegistry.registerEntityRenderingHandler(EntitySquid.class, new RenderStupidChicken());
	RenderingRegistry.registerEntityRenderingHandler(EntityZombie.class, new RenderStupidChicken());
	RenderingRegistry.registerEntityRenderingHandler(EntitySpider.class, new RenderStupidChicken());
	RenderingRegistry.registerEntityRenderingHandler(EntitySkeleton.class, new RenderStupidChicken());
	FMLLog.log.info("Chickenificated all the bois!");
}
 
Example #25
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 #26
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);
}
 
Example #27
Source File: BlockyEntities.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(BaseVehicleEntity.class, new IRenderFactory<BaseVehicleEntity>(){public Render<BaseVehicleEntity> createRenderFor(RenderManager manager) {return new BaseVehicleRender(manager);}}); 
	ClientUtil.simpleItemModel(Item.getItemFromBlock(shipCore));
}
 
Example #28
Source File: ClientProxy.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public void registerRenderers() {


	ClientRegistry.bindTileEntitySpecialRenderer(TileRocketBuilder.class, new RendererRocketBuilder());
	//ClientRegistry.bindTileEntitySpecialRenderer(TileModelRender.class, modelBlock);
	ClientRegistry.bindTileEntitySpecialRenderer(TilePrecisionAssembler.class, new RendererPrecisionAssembler());
	ClientRegistry.bindTileEntitySpecialRenderer(TileCuttingMachine.class, new RendererCuttingMachine());
	ClientRegistry.bindTileEntitySpecialRenderer(TileCrystallizer.class, new RendererCrystallizer());
	ClientRegistry.bindTileEntitySpecialRenderer(TileObservatory.class, new RendererObservatory());
	ClientRegistry.bindTileEntitySpecialRenderer(TileAstrobodyDataProcessor.class, new RenderPlanetAnalyser());
	ClientRegistry.bindTileEntitySpecialRenderer(TileLathe.class, new RendererLathe());
	ClientRegistry.bindTileEntitySpecialRenderer(TileRollingMachine.class, new RendererRollingMachine());
	ClientRegistry.bindTileEntitySpecialRenderer(TileElectrolyser.class, new RendererElectrolyser());
	ClientRegistry.bindTileEntitySpecialRenderer(TileWarpCore.class, new RendererWarpCore());
	ClientRegistry.bindTileEntitySpecialRenderer(TileChemicalReactor.class, new RendererChemicalReactor("advancedrocketry:models/ChemicalReactor.obj", "advancedrocketry:textures/models/ChemicalReactor.png"));
	ClientRegistry.bindTileEntitySpecialRenderer(TileSchematic.class, new RendererPhantomBlock());
	//ClientRegistry.bindTileEntitySpecialRenderer(TileDrill.class, new RendererDrill());
	ClientRegistry.bindTileEntitySpecialRenderer(TileLiquidPipe.class, new RendererPipe(new ResourceLocation("AdvancedRocketry:textures/blocks/pipeLiquid.png")));
	ClientRegistry.bindTileEntitySpecialRenderer(TileDataPipe.class, new RendererPipe(new ResourceLocation("AdvancedRocketry:textures/blocks/pipeData.png")));
	ClientRegistry.bindTileEntitySpecialRenderer(TileEnergyPipe.class, new RendererPipe(new ResourceLocation("AdvancedRocketry:textures/blocks/pipeEnergy.png")));
	ClientRegistry.bindTileEntitySpecialRenderer(TileMicrowaveReciever.class, new RendererMicrowaveReciever());
	ClientRegistry.bindTileEntitySpecialRenderer(TileSpaceLaser.class, new RenderLaserTile());
	ClientRegistry.bindTileEntitySpecialRenderer(TileBiomeScanner.class, new RenderBiomeScanner());
	ClientRegistry.bindTileEntitySpecialRenderer(TileAtmosphereTerraformer.class, new RenderTerraformerAtm());
	ClientRegistry.bindTileEntitySpecialRenderer(TileFluidTank.class, new RenderTank());
	ClientRegistry.bindTileEntitySpecialRenderer(zmaster587.advancedRocketry.tile.multiblock.TileSpaceLaser.class, new zmaster587.advancedRocketry.client.render.multiblocks.RenderLaser());
	ClientRegistry.bindTileEntitySpecialRenderer(zmaster587.advancedRocketry.tile.multiblock.TileRailgun.class, new zmaster587.advancedRocketry.client.render.multiblocks.RendererRailgun());
	ClientRegistry.bindTileEntitySpecialRenderer(zmaster587.advancedRocketry.tile.multiblock.TileGravityController.class, new zmaster587.advancedRocketry.client.render.multiblocks.RenderGravityMachine());
	ClientRegistry.bindTileEntitySpecialRenderer(zmaster587.advancedRocketry.tile.multiblock.TileSpaceElevator.class, new zmaster587.advancedRocketry.client.render.multiblocks.RendererSpaceElevator());
	ClientRegistry.bindTileEntitySpecialRenderer(zmaster587.advancedRocketry.tile.multiblock.TileBeacon.class, new zmaster587.advancedRocketry.client.render.multiblocks.RenderBeacon());

	//ClientRegistry.bindTileEntitySpecialRenderer(TileModelRenderRotatable.class, modelBlock);

	//RendererModelBlock blockRenderer = new RendererModelBlock();

	//RendererBucket bucket =  new RendererBucket();
	//MinecraftForgeClient.registerItemRenderer(AdvancedRocketryItems.itemBucketRocketFuel, bucket);
	//MinecraftForgeClient.registerItemRenderer(AdvancedRocketryItems.itemBucketNitrogen, bucket);
	//MinecraftForgeClient.registerItemRenderer(AdvancedRocketryItems.itemBucketHydrogen, bucket);
	//MinecraftForgeClient.registerItemRenderer(AdvancedRocketryItems.itemBucketOxygen, bucket);

	RenderingRegistry.registerEntityRenderingHandler(EntityRocket.class, (IRenderFactory<EntityRocket>)new RendererRocket(null));
	RenderingRegistry.registerEntityRenderingHandler(EntityLaserNode.class, (IRenderFactory<EntityLaserNode>)new RenderLaser(2.0, new float[] {1F, 0.25F, 0.25F, 0.2F}, new float[] {0.9F, 0.2F, 0.3F, 0.5F}));
	RenderingRegistry.registerEntityRenderingHandler(EntityItemAbducted.class, (IRenderFactory<EntityItemAbducted>)new RendererItem(Minecraft.getMinecraft().getRenderManager(), Minecraft.getMinecraft().getRenderItem()));
	RenderingRegistry.registerEntityRenderingHandler(EntityUIPlanet.class, (IRenderFactory<EntityUIPlanet>)new RenderPlanetUIEntity(null));
	RenderingRegistry.registerEntityRenderingHandler(EntityUIButton.class, (IRenderFactory<EntityUIButton>)new RenderButtonUIEntity(null));
	RenderingRegistry.registerEntityRenderingHandler(EntityUIStar.class, (IRenderFactory<EntityUIStar>)new RenderStarUIEntity(null));
	RenderingRegistry.registerEntityRenderingHandler(EntityElevatorCapsule.class, (IRenderFactory<EntityElevatorCapsule>)new RenderElevatorCapsule(null));
}
 
Example #29
Source File: ProductionLine.java    From Production-Line with MIT License 4 votes vote down vote up
@Override
void init() {
    RenderingRegistry.registerEntityRenderingHandler(EntityThrownItem.class, manager -> new RenderEntityThrownItem<>(manager, Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntityRay.class, RenderEntityRay::new);
}
 
Example #30
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);
}