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

The following are top voted examples for showing how to use net.minecraftforge.fml.client.registry.RenderingRegistry. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: pnc-repressurized   File: ClientProxy.java   View source code 6 votes vote down vote up
@Override
public void init() {
    for (Fluid fluid : Fluids.FLUIDS) {
        ModelLoader.setBucketModelDefinition(Fluids.getBucket(fluid));
    }

    ThirdPartyManager.instance().clientInit();

    RenderingRegistry.registerEntityRenderingHandler(EntityRing.class, RenderEntityRing.FACTORY);
    EntityRegistry.registerModEntity(RL("ring"), EntityRing.class, Names.MOD_ID + ".ring", 100, PneumaticCraftRepressurized.instance, 80, 1, true);

    registerModuleRenderers();

    Blockss.setupColorHandlers();
    BlockColorHandler.registerColorHandlers();
    ItemColorHandler.registerColorHandlers();

    super.init();
}
 
Example 2
Project: WirelessRedstone   File: ProxyClient.java   View source code 6 votes vote down vote up
@Override
public void preInit() {

    super.preInit();
    GuiWirelessSniffer.loadColours(SaveManager.config().getTag("addon"));
    TextureUtils.addIconRegister(new RenderWireless());
    TextureUtils.addIconRegister(new RemoteTexManager());
    TextureUtils.addIconRegister(new TriangTexManager());
    PacketCustom.assignHandler(NET_CHANNEL, new WRClientPH());

    MapRenderRegistry.registerMapRenderer(ModItems.itemWirelessMap, new WirelessMapRenderer());

    RenderingRegistry.registerEntityRenderingHandler(EntityREP.class, manager -> new RenderSnowball<>(manager, itemRep, Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntityWirelessTracker.class, RenderTracker::new);
    registerModels();
}
 
Example 3
Project: Torched   File: ProxyClient.java   View source code 6 votes vote down vote up
@Override
public void preInitMod()
{
    super.preInitMod();

    iChunUtil.proxy.registerMinecraftKeyBind(Minecraft.getMinecraft().gameSettings.keyBindUseItem);

    Torched.eventHandlerClient = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(Torched.eventHandlerClient);

    RenderingRegistry.registerEntityRenderingHandler(EntityTorch.class, new RenderTorch.RenderFactory());
    RenderingRegistry.registerEntityRenderingHandler(EntityTorchFirework.class, new RenderTorchFirework.RenderFactory());
}
 
Example 4
Project: BetterWithAddons   File: ClientProxy.java   View source code 6 votes vote down vote up
public void registerModels()
{
    ItemModels.register();
    //BlockModels.register();

    ModelLoader.setCustomStateMapper(ModBlocks.thorns,new StateMap.Builder().ignore(BlockThorns.FACING).build());
    ModelLoader.setCustomStateMapper(ModBlocks.brine, new BrineStateMapper());
    ModelLoader.setCustomStateMapper(ModBlocks.aqueductWater, new StateMapperBase() {
        @Override
        protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
            return aqueductWaterLocation;
        }
    });

    RenderingRegistry.registerEntityRenderingHandler(EntityGreatarrow.class, RenderGreatarrow.GREATARROW_RENDER);
    RenderingRegistry.registerEntityRenderingHandler(EntityYa.class, RenderYa.YA_RENDER);
    RenderingRegistry.registerEntityRenderingHandler(EntitySpirit.class, manager -> new RenderSpirit(manager));
    RenderingRegistry.registerEntityRenderingHandler(EntityAncestryBottle.class, manager -> new RenderSnowball<>(manager,ModItems.ancestryBottle,Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntityArtifactFrame.class, RenderArtifactFrame.ARTIFACEFRAME_RENDER);
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAlchDragon.class, new RenderAlchDragon());
}
 
Example 5
Project: Aether-Legacy   File: AetherEntityRenderingRegistry.java   View source code 6 votes vote down vote up
public static <ENTITY extends Entity> void register(Class<ENTITY> classes, final Class<? extends Render<ENTITY>> render)
{
	RenderingRegistry.registerEntityRenderingHandler(classes, new IRenderFactory<ENTITY>() {

		@Override
		public Render<ENTITY> createRenderFor(RenderManager manager) 
		{
			try
			{
				return render.getConstructor(RenderManager.class).newInstance(manager);
			}
			catch (Exception e)
			{
				e.printStackTrace();
			}

			return null;
		}
	});
}
 
Example 6
Project: TMT-Refraction   File: ClientProxy.java   View source code 6 votes vote down vote up
@Override
public void preInit(FMLPreInitializationEvent event) {
	super.preInit(event);

	OBJLoader.INSTANCE.addDomain(Constants.MOD_ID);
	LaserRenderer.INSTANCE.getClass();
	ScrewdriverOverlay.INSTANCE.getClass();
	GunOverlay.INSTANCE.getClass();
	EventHandlerClient.INSTANCE.getClass(); // ditto
	ModBlocks.initModels();
	ModItems.initModels();

	RenderingRegistry.registerEntityRenderingHandler(EntityLaserPointer.class, RenderLaserPoint::new);
	RenderingRegistry.registerEntityRenderingHandler(EntityPlasma.class, RenderPlasma::new);
	RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, manager -> new RenderGrenade(manager, ModItems.GRENADE, Minecraft.getMinecraft().getRenderItem()));
}
 
Example 7
Project: MCDoom   File: MCDoomClientProxy.java   View source code 6 votes vote down vote up
@Override
public void preInit(FMLPreInitializationEvent evt) {
    MCDoom.instance.getGoreProperty().setConfigEntryClass(GuiConfigEntries.NumberSliderEntry.class);
    MCDoom.instance.getMaxGoreParticles().setConfigEntryClass(GuiConfigEntries.NumberSliderEntry.class);

    MinecraftForge.EVENT_BUS.register(screenEventHandler);
    MinecraftForge.EVENT_BUS.register(soundEventsHandler);
    registerItems();

    RenderingRegistry.registerEntityRenderingHandler(PlasmaBallEntity.class, new IRenderFactory<PlasmaBallEntity>() {
        @Override
        public Render<? super PlasmaBallEntity> createRenderFor(RenderManager manager) {
            return new RenderPlasmaBall(manager);
        }
    });

    loadWeaponRenderers();
}
 
Example 8
Project: LightningCraft   File: LCEntities.java   View source code 6 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void registerRendering() {
	
	// living
	RenderingRegistry.registerEntityRenderingHandler(EntityLCZombie.class, RenderLCZombie.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityDemonSoldier.class, RenderDemonSoldier.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityUnderworldSlime.class, RenderUnderworldSlime.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityUnderworldSkeleton.class, RenderUnderworldSkeleton.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityUnderworldSilverfish.class, RenderUnderworldSilverfish.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityUnderworldGhast.class, RenderUnderworldGhast.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityUnderworldCreeper.class, RenderUnderworldCreeper.FACTORY);
	
	// non-living
	RenderingRegistry.registerEntityRenderingHandler(EntityLCTNTPrimed.class, RenderLCTNTPrimed.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityLCElectricAttack.class, RenderLCElectricAttack.FACTORY);
}
 
Example 9
Project: Cyclic   File: ClientProxy.java   View source code 6 votes vote down vote up
private void registerEntities() {
  //minecarts
  //http://wiki.mcjty.eu/modding/index.php/Mobs-1.9
  RenderingRegistry.registerEntityRenderingHandler(EntityGoldMinecart.class, RenderCyclicMinecart.FACTORY_GOLD);
  RenderingRegistry.registerEntityRenderingHandler(EntityGoldFurnaceMinecart.class, RenderCyclicMinecart.FACTORY_GOLD_FURNACE);
  RenderingRegistry.registerEntityRenderingHandler(EntityStoneMinecart.class, RenderCyclicMinecart.FACTORY_STONE_FURNACE);
  RenderingRegistry.registerEntityRenderingHandler(EntityMinecartTurret.class, RenderCyclicMinecart.FACTORY_TURRET);
  //the projectiles too
  RenderingRegistry.registerEntityRenderingHandler(EntityLightningballBolt.class, new FactoryLightning());
  RenderingRegistry.registerEntityRenderingHandler(EntitySnowballBolt.class, new FactorySnow());
  RenderingRegistry.registerEntityRenderingHandler(EntityTorchBolt.class, new FactoryTorch());
  RenderingRegistry.registerEntityRenderingHandler(EntityFishingBolt.class, new FactoryFish());
  RenderingRegistry.registerEntityRenderingHandler(EntityShearingBolt.class, new FactoryShear());
  RenderingRegistry.registerEntityRenderingHandler(EntityDungeonEye.class, new FactoryDungeon());
  RenderingRegistry.registerEntityRenderingHandler(EntityDynamite.class, new FactoryDyn());
  RenderingRegistry.registerEntityRenderingHandler(EntityBlazeBolt.class, new FactoryFire());
  RenderingRegistry.registerEntityRenderingHandler(EntityDynamiteMining.class, new FactoryDynMining());
  RenderingRegistry.registerEntityRenderingHandler(EntityDynamiteBlockSafe.class, new FactoryDynSafe());
  RenderingRegistry.registerEntityRenderingHandler(EntityMagicNetFull.class, new FactoryBall());
  RenderingRegistry.registerEntityRenderingHandler(EntityMagicNetEmpty.class, new FactoryBallEmpty());
  RenderingRegistry.registerEntityRenderingHandler(EntityHomingProjectile.class, new FactoryMissile());
  RenderingRegistry.registerEntityRenderingHandler(EntityEnderEyeUnbreakable.class, new EntityEnderEyeUnbreakable.FactoryMissile());
}
 
Example 10
Project: ARKCraft-Code   File: Models.java   View source code 6 votes vote down vote up
public static void init()
{
	RenderingRegistry.registerEntityRenderingHandler(EntityDodoEgg.class,
			new RenderSnowball(Minecraft.getMinecraft().getRenderManager(),
					ARKCraftItems.dodo_egg, Minecraft.getMinecraft()
							.getRenderItem()));
	RenderingRegistry.registerEntityRenderingHandler(EntityRaptor.class,
			new RenderRaptor(new ModelRaptor(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(
			EntitySabertooth.class, new RenderSabertooth(
					new ModelSabertooth(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(EntityDodo.class,
			new RenderDodo(new ModelDodo(), 0.3F));
	RenderingRegistry.registerEntityRenderingHandler(
			EntityBrontosaurus.class, new RenderBrontosaurus(
					new ModelBrontosaurus(), 0.5f));
}
 
Example 11
Project: vintagecraft   File: ClientProxy.java   View source code 6 votes vote down vote up
@Override
public void registerTileEntities() {
	super.registerTileEntities();
	
	IReloadableResourceManager IRRM = (IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager();
	IRRM.registerReloadListener(this);
	
	RenderManager rm = Minecraft.getMinecraft().getRenderManager();
	
	RenderingRegistry.registerEntityRenderingHandler(EntityStone.class, new RenderEntityStone());
	RenderingRegistry.registerEntityRenderingHandler(EntityMobHorse.class, new RenderHorse(rm, new ModelHorse(), 0.75f));		
	RenderingRegistry.registerEntityRenderingHandler(EntityForestSpider.class, new RenderForestSpider(rm));
	RenderingRegistry.registerEntityRenderingHandler(EntityCoalPoweredMinecartVC.class, new RenderMinecart(rm));
	RenderingRegistry.registerEntityRenderingHandler(EntityEmptyMinecartVC.class, new RenderMinecart(rm));
	
	RenderingRegistry.registerEntityRenderingHandler(EntityCowVC.class, new RenderCow(rm, new ModelCowVC(), 0.7F));
	RenderingRegistry.registerEntityRenderingHandler(EntitySheepVC.class, new RenderSheep(rm, new ModelSheep2(), 0.7F));
}
 
Example 12
Project: dragon-mounts   File: ClientProxy.java   View source code 6 votes vote down vote up
@Override
public void onPreInit(FMLPreInitializationEvent event) {
    super.onPreInit(event);
    
    // register dragon entity renderer
    RenderingRegistry.registerEntityRenderingHandler(
            EntityTameableDragon.class, DragonRenderer::new);
    
    // register item renderer for dragon egg block variants
    ResourceLocation eggModelItemLoc = new ResourceLocation(DragonMounts.AID, "dragon_egg");
    Item itemBlockDragonEgg = Item.REGISTRY.getObject(eggModelItemLoc);
    EnumDragonBreed.META_MAPPING.forEach((breed, meta) -> {
        ModelResourceLocation eggModelLoc = new ModelResourceLocation(DragonMounts.AID + ":dragon_egg", "breed=" + breed.getName());
        ModelLoader.setCustomModelResourceLocation(itemBlockDragonEgg, meta, eggModelLoc);
    });
}
 
Example 13
Project: MineChess   File: ClientProxyMineChess.java   View source code 6 votes vote down vote up
@Override
public void registerRenders(){
    super.registerRenders();
    RenderingRegistry.registerEntityRenderingHandler(EntityRook.class, new RenderChessPiece(new ModelRook(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(EntityKing.class, new RenderChessPiece(new ModelKing(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(EntityPawn.class, new RenderChessPiece(new ModelPawn(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(EntityKnight.class, new RenderChessPiece(new ModelKnight(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(EntityQueen.class, new RenderChessPiece(new ModelQueen(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(EntityBishop.class, new RenderChessPiece(new ModelBishop(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(EntityPickyXPOrb.class, new RenderXPOrb(Minecraft.getMinecraft().getRenderManager()));
    MinecraftForge.EVENT_BUS.register(new MineChessDrawBlockHighlightHandler());

    String[] names = new String[5];
    for(int i = 0; i < 5; i++) {
        String name = "chessmod:" + new ItemStack(MineChess.itemPieceMover, 1, i).getUnlocalizedName().substring(5);
        names[i] = name;
        Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MineChess.itemPieceMover, i, new ModelResourceLocation(name, "inventory"));
    }
    ModelBakery.addVariantName(MineChess.itemPieceMover, names);
}
 
Example 14
Project: EntitiesTutorial   File: ModEntities.java   View source code 5 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void registerEntityRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityMobTest.class, new IRenderFactory() {
	@Override
	public Render createRenderFor(RenderManager manager) {
		return new RenderMobTest(manager, new ModelMobTest(), 0.4F);
	}});
}
 
Example 15
Project: Bewitchment   File: ClientProxy.java   View source code 5 votes vote down vote up
private void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityBrew.class, BrewRenderer::new);
	RenderingRegistry.registerEntityRenderingHandler(EntityBrewLinger.class, EmptyRenderer::new);
	RenderingRegistry.registerEntityRenderingHandler(EntitySpellCarrier.class, SpellRenderer::new);

	ClientRegistry.bindTileEntitySpecialRenderer(TileCauldron.class, new TileRenderCauldron());
}
 
Example 16
Project: harshencastle   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
   public void regRenders(FMLPreInitializationEvent event) {
   	super.regRenders(event);
   	
   	HarshenBlocks.regRenders();
   	
	HarshenItems.regRenders();
	
	HarshenFluids.regRenders();
	
	HarshenArmors.regRenders();
	
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenDimensionalPedestal.class, new RendererDimensionalPedestal());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHereticCauldron.class, new RendererHereticCauldron());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenDisplayBlock.class, new RendererHarshenDisplayBlock());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenSpawner.class, new RendererHarshenSpawner());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPedestalSlab.class, new RendererPedestalSlab());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBloodFactory.class, new RendererBloodFactory());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenMagicTable.class, new RendererMagicTable());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCaulronBlock.class, new RendererCauldronBlock());

	
	RenderingRegistry.registerEntityRenderingHandler(EntitySoullessKnight.class, new EntityFactories.FactorySoullessKnight());
	RenderingRegistry.registerEntityRenderingHandler(EntitySoulPart.class, new EntityFactories.FactorySoulPart());
	RenderingRegistry.registerEntityRenderingHandler(EntityThrown.class, new EntityFactories.FactoryEntityThrown());
	RenderingRegistry.registerEntityRenderingHandler(EntityHarshenSoul.class, new EntityFactories.FactoryHarhenSoul());
}
 
Example 17
Project: Infernum   File: InfernumEntities.java   View source code 5 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void initRenderers() {
	RenderingRegistry.registerEntityRenderingHandler(EntityWitheringBolt.class, new RenderInvisibleEntity.Factory());
	RenderingRegistry.registerEntityRenderingHandler(EntityPigZombieMage.class, new RenderPigZombieMage.Factory());
	RenderingRegistry.registerEntityRenderingHandler(EntityPigMage.class, new RenderPigMage.Factory());
	RenderingRegistry.registerEntityRenderingHandler(EntityFireBreath.class, new RenderInvisibleEntity.Factory());
}
 
Example 18
Project: MeeCreeps   File: ModEntities.java   View source code 5 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void initModels() {
    RenderingRegistry.registerEntityRenderingHandler(EntityMeeCreeps.class, RenderMeeCreeps.FACTORY);

    RenderingRegistry.registerEntityRenderingHandler(EntityProjectile.class, new IRenderFactory<EntityProjectile>() {
        @Override
        public Render<? super EntityProjectile> createRenderFor(RenderManager manager) {
            return new RenderProjectile<EntityProjectile>(manager, Minecraft.getMinecraft().getRenderItem());
        }
    });
}
 
Example 19
Project: ArcaneMagic   File: ClientEvents.java   View source code 5 votes vote down vote up
@SubscribeEvent
public static void registerModels(ModelRegistryEvent event)
{
	RenderingRegistry.registerEntityRenderingHandler(EntityItemFancy.class, new RenderEntityItemFancy.Factory());
	RenderingRegistry.registerEntityRenderingHandler(EntityMagicCircles.class,
			new RenderEntityMagicCircles.Factory());
	for (Item i : ModRegistry.ITEMS)
		if (i instanceof IHasModel)
			((IHasModel) i).initModels(event);
	for (Block b : ModRegistry.BLOCKS)
		if (b instanceof IHasModel)
			((IHasModel) b).initModels(event);
}
 
Example 20
Project: Melodium   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
public void preInit(FMLPreInitializationEvent event){
	super.preInit(event);
	//ShaderUtil.init();
	//ModelManager.init();
	RegistryManager.registerRendering();
	RenderingRegistry.registerEntityRenderingHandler(EntityGhostHorse.class, RenderGhostHorse::new);

}
 
Example 21
Project: Anima-Mundi   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
public void OnPreInit(FMLPreInitializationEvent e)
{
	super.OnPreInit(e);

	//TODO: Move this
	RenderingRegistry.registerEntityRenderingHandler(EntityNodeItem.class, RenderNodeItem.FACTORY);
	RenderingRegistry.registerEntityRenderingHandler(EntityBlockSuck.class, RenderBlockSuck.FACTORY);
}
 
Example 22
Project: mc-Slingshot   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
public void registerRenderers() {
	RenderingRegistry.registerEntityRenderingHandler(EntityStoneBall.class,
			m -> new RenderSnowball(m, ModItems.stone_ball,
			Minecraft.getMinecraft().getRenderItem()));
	RenderingRegistry.registerEntityRenderingHandler(EntityMetalBall.class,
			m -> new RenderSnowball(m, ModItems.metal_ball,
			Minecraft.getMinecraft().getRenderItem()));
	RenderingRegistry.registerEntityRenderingHandler(EntityEnderBall.class,
			m -> new RenderSnowball(m, ModItems.ender_ball,
			Minecraft.getMinecraft().getRenderItem()));
}
 
Example 23
Project: uniquecrops   File: UCEntities.java   View source code 5 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void initModels() {
	
	Minecraft mc = Minecraft.getMinecraft();
	RenderManager rm = mc.getRenderManager();
	RenderItem ri = mc.getRenderItem();
	
	RenderingRegistry.registerEntityRenderingHandler(EntityCustomPotion.class, new RenderThrowable(rm, UCItems.generic, 13, ri));
	RenderingRegistry.registerEntityRenderingHandler(EntityItemWeepingEye.class, new RenderThrowable(rm, UCItems.generic, 16, ri));
	RenderingRegistry.registerEntityRenderingHandler(EntityEulaBook.class, new RenderThrowable(rm, UCItems.generic, 24, ri));
}
 
Example 24
Project: ExPetrum   File: ClientRegistry.java   View source code 5 votes vote down vote up
@Override
public void preInit(FMLPreInitializationEvent evt)
{
    IFunctionalRenderFactory.registerEntityRenderingHandler(EntityGravFallingBlock.class, RenderFallingBlock::new);
    IFunctionalRenderFactory.registerEntityRenderingHandler(EntityFallingTree.class, RenderFallingTree::new);
    IFunctionalRenderFactory.registerEntityRenderingHandler(EntityThrownWeapon.class, RenderThrownWeapon::new);
    RenderingRegistry.registerEntityRenderingHandler(Chicken.class, r -> new RenderAnimal(r, ModelChicken.instance = new ModelChicken(), 1F));
    this.initAttacksConditions();
}
 
Example 25
Project: Overlord   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
public void registerClient() {
	RenderingRegistry.registerEntityRenderingHandler(EntitySkeletonWarrior.class, new SkeletonWarriorRenderFactory());
	RenderingRegistry.registerEntityRenderingHandler(EntityBabySkeleton.class, new BabySkeletonRenderFactory());
	RenderingRegistry.registerEntityRenderingHandler(EntityMilkBottle.class, new MilkBottleRenderFactory());
	RenderingRegistry.registerEntityRenderingHandler(EntityConvertedSkeleton.class, new ConvertedSkeletonRenderFactory());
	RenderingRegistry.registerEntityRenderingHandler(EntityCuringSkeleton.class, new CuringSkeletonRenderFactory());
	if (SkinTools.cachedir.exists()) {
		if (SkinTools.cachedir.listFiles().length > 0)
			for (File file : SkinTools.cachedir.listFiles()) {
				if (file.getName().contains(".png"))
					SkinTools.cacheSkin(file.getName().replace(".png", ""));
			}
	}
}
 
Example 26
Project: mobycraft   File: Mobycraft.java   View source code 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 27
Project: Dailies   File: Renders.java   View source code 5 votes vote down vote up
public static void registerRenders() {
	System.out.println("registering renders");
	
	RenderingRegistry.registerEntityRenderingHandler(EntityBailey.class, new IRenderFactory<EntityBailey>() {
		@Override 
		public Render<EntityBailey> createRenderFor(RenderManager manager) { 
			return new RenderBailey(manager); 
		}
	});
}
 
Example 28
Project: metamorph   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
public void preLoad(FMLPreInitializationEvent event)
{
    super.preLoad(event);

    RenderingRegistry.registerEntityRenderingHandler(EntityMorph.class, new RenderMorph.MorphFactory());
}
 
Example 29
Project: ToroChess   File: EntityKing.java   View source code 5 votes vote down vote up
public static void registerRenders() {
  RenderingRegistry.registerEntityRenderingHandler(EntityKing.class, new IRenderFactory<EntityKing>() {
    @Override
    public Render<EntityKing> createRenderFor(RenderManager manager) {
      return new RenderKing(manager);
    }
  });
}
 
Example 30
Project: ToroChess   File: EntityRook.java   View source code 5 votes vote down vote up
public static void registerRenders() {
  RenderingRegistry.registerEntityRenderingHandler(EntityRook.class, new IRenderFactory<EntityRook>() {
    @Override
    public Render<EntityRook> createRenderFor(RenderManager manager) {
      return new RenderRook(manager);
    }
  });
}
 
Example 31
Project: ToroChess   File: EntityPawn.java   View source code 5 votes vote down vote up
public static void registerRenders() {
  RenderingRegistry.registerEntityRenderingHandler(EntityPawn.class, new IRenderFactory<EntityPawn>() {
    @Override
    public Render<EntityPawn> createRenderFor(RenderManager manager) {
      return new RenderPawn(manager);
    }
  });
}
 
Example 32
Project: ToroChess   File: EntityKnight.java   View source code 5 votes vote down vote up
public static void registerRenders() {
  RenderingRegistry.registerEntityRenderingHandler(EntityKnight.class, new IRenderFactory<EntityKnight>() {
    @Override
    public Render<EntityKnight> createRenderFor(RenderManager manager) {
      return new RenderKnight(manager);
    }
  });
}
 
Example 33
Project: ToroChess   File: EntityBishop.java   View source code 5 votes vote down vote up
public static void registerRenders() {
  RenderingRegistry.registerEntityRenderingHandler(EntityBishop.class, new IRenderFactory<EntityBishop>() {
    @Override
    public Render<EntityBishop> createRenderFor(RenderManager manager) {
      return new RenderBishop(manager);
    }
  });
}
 
Example 34
Project: ToroChess   File: EntityQueen.java   View source code 5 votes vote down vote up
public static void registerRenders() {
  RenderingRegistry.registerEntityRenderingHandler(EntityQueen.class, new IRenderFactory<EntityQueen>() {
    @Override
    public Render<EntityQueen> createRenderFor(RenderManager manager) {
      return new RenderQueen(manager);
    }
  });
}
 
Example 35
Project: Wizardry   File: ModEntities.java   View source code 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(EntityBackupZombie.class, RenderSummonZombie::new);
	RenderingRegistry.registerEntityRenderingHandler(EntityBomb.class, RenderBomb::new);
}
 
Example 36
Project: Mob-Dismemberment   File: MobDismemberment.java   View source code 5 votes vote down vote up
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    eventHandlerClient = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(eventHandlerClient);

    RenderingRegistry.registerEntityRenderingHandler(EntityGib.class, new RenderGib.RenderFactory());

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
 
Example 37
Project: Count-Armours   File: ClientProxy.java   View source code 5 votes vote down vote up
@Override
public void registerRenders() {
    ModItems.registerRenders();
    ModTools.registerRenders();
    ModArmour.registerRenders();

    RenderingRegistry.registerEntityRenderingHandler(EntityFairy.class, new FairyRenderFactory());
}
 
Example 38
Project: ToroQuest   File: EntityRainbowKing.java   View source code 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 39
Project: ToroQuest   File: EntityShopkeeper.java   View source code 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 40
Project: ToroQuest   File: EntityVillageLord.java   View source code 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);
		}
	});
}