当前位置: 首页>>代码示例>>Java>>正文


Java RenderSnowball类代码示例

本文整理汇总了Java中net.minecraft.client.renderer.entity.RenderSnowball的典型用法代码示例。如果您正苦于以下问题:Java RenderSnowball类的具体用法?Java RenderSnowball怎么用?Java RenderSnowball使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RenderSnowball类属于net.minecraft.client.renderer.entity包,在下文中一共展示了RenderSnowball类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: preInit

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@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();
}
 
开发者ID:TheCBProject,项目名称:WirelessRedstone,代码行数:17,代码来源:ProxyClient.java

示例2: registerModels

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
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());
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:22,代码来源:ClientProxy.java

示例3: init

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
public void init(FMLInitializationEvent event) {
	super.init(event);
	
	// ע�ᰴ���¼�
	FMLCommonHandler.instance().bus().register(new SubscribeKeyListener());
	ClientRegistry.registerKeyBinding(SubscribeKeyListener.key_Rewrite);
	ClientRegistry.registerKeyBinding(SubscribeKeyListener.key_Interact);
	
	// ע����Ⱦ��
	RenderingRegistry.registerEntityRenderingHandler(EntityBaseball.class, new RenderSnowball(ModItems.Baseball));
	RenderingRegistry.registerEntityRenderingHandler(EntityDictionary.class, new RenderSnowball(ModItems.Dictionary));
	RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderBullet());
	RenderingRegistry.registerEntityRenderingHandler(EntityJavelin.class, new RenderJavelin());
	RenderingRegistry.registerEntityRenderingHandler(EntityKagariCannon.class, new RenderKagariCannon());
	RenderingRegistry.registerBlockHandler(new BlockTrapRenderer());
}
 
开发者ID:NullaDev,项目名称:KeyCraft,代码行数:17,代码来源:ClientProxy.java

示例4: init

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
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));
}
 
开发者ID:Archiving,项目名称:ARKCraft-Code,代码行数:18,代码来源:Models.java

示例5: registerRenderInformation

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
public void registerRenderInformation() 
{
	RenderingRegistry.registerBlockHandler(new BlockRendererMF());
     
    registerItemRenderer();
	RenderingRegistry.registerEntityRenderingHandler(EntityDrake.class, new RenderDrake(new ModelDrake(), 1.5F));
	RenderingRegistry.registerEntityRenderingHandler(EntityHound.class, new RenderHound(new ModelHound(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(EntityMinotaur.class, new RenderMinotaur(new ModelMinotaur(), 2F));
	RenderingRegistry.registerEntityRenderingHandler(EntitySkeletalKnight.class, new RenderSkeletalKnight(new ModelSkeletalKnight()));
	RenderingRegistry.registerEntityRenderingHandler(EntityDragonSmall.class, new RenderSmallDragon(new ModelSmallDragon(), 2F));
	RenderingRegistry.registerEntityRenderingHandler(EntityFirebreath.class, new RenderFirebreath());
    RenderingRegistry.registerEntityRenderingHandler(EntityBasilisk.class, new RenderBasilisk());
    RenderingRegistry.registerEntityRenderingHandler(EntityArrowMF.class, new RenderArrowMF());
	RenderingRegistry.registerEntityRenderingHandler(EntityShrapnel.class, new RenderShrapnel());
	RenderingRegistry.registerEntityRenderingHandler(EntityBoltMF.class, new RenderBoltMF());
	RenderingRegistry.registerEntityRenderingHandler(EntityBombThrown.class, new RenderBomb());
	RenderingRegistry.registerEntityRenderingHandler(EntityThrownSpear.class, new RenderThrownItem());
	RenderingRegistry.registerEntityRenderingHandler(EntityRockSling.class, new RenderSnowball(ItemListMF.misc, ItemListMF.rock));
	
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:22,代码来源:MFProxy_client.java

示例6: init

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
	public void init() {
		RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer());
		RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer());
		RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer());
		RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer());
		RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer());
		RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer());
		RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer());
		RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer());
		RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer());
		RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer());
		
		
		RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer());

		RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle));
		RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss));
		
		
		MinecraftForgeClient.registerItemRenderer(Chisel.chisel, renderer);
//		MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer);

	}
 
开发者ID:asiekierka,项目名称:Chisel-1.7.2,代码行数:25,代码来源:ProxyClient.java

示例7: init

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
    public void init() {
        RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer());
        RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer());
        RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer());
        RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer());
        RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer());
        RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer());
        RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer());
        RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer());
        RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer());
        RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer());

        RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer());
        RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle));
        RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss));


        MinecraftForgeClient.registerItemRenderer(Chisel.chisel.itemID, renderer);
//		MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer);

    }
 
开发者ID:delta534,项目名称:Chisel,代码行数:23,代码来源:ProxyClient.java

示例8: registerRenderers

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
public void registerRenderers() {
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPipe.class, new TileEntityRenderPipe());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCable.class, new TileEntityRenderCable());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShell.class, new TileEntityRenderShell());
	
	MinecraftForgeClient.registerItemRenderer(ModArmour.shell, new CustomItemRenderer(new TileEntityRenderShell(), new TileEntityShell()));
	
	RenderingRegistry.registerEntityRenderingHandler(EntityMummy.class, new RenderMummy(new ModelZombie(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntityPirate.class, new RenderPirate(new ModelPirate(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntitySenthant.class, new RenderSenthant(new ModelSenthant(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntityBear.class, new RenderBear(new ModelBear(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntityPanda.class, new RenderPanda(new ModelBear(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntityGrawquat.class, new RenderGrawquat(new ModelGrawquat(), 0));;
	RenderingRegistry.registerEntityRenderingHandler(EntityLyekhwrone.class, new RenderLyekhwrone(new ModelLyekhwrone(), 0));;
	
	RenderingRegistry.registerEntityRenderingHandler(EntityLyekstone.class, new RenderSnowball(ModItems.lyekstone));
	
	VillagerRegistry.instance().registerVillagerSkin(56329, new ResourceLocation(Reference.MOD_ID, "textures/entity/villager.png"));
}
 
开发者ID:OmgImAlexis,项目名称:TheStuffMod,代码行数:22,代码来源:ClientProxy.java

示例9: init

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
public static void init() {
	RenderManager rm = Minecraft.getMinecraft().getRenderManager();
	RenderItem itemRenderer = Minecraft.getMinecraft().getRenderItem();
	rm.entityRenderMap.put(EntityEvolvedEnderman.class, new RenderEvolvedEnderman(rm));
	rm.entityRenderMap.put(EntityFrienderman.class, new RenderFrienderman(rm));
	rm.entityRenderMap.put(EntityFrienderPearl.class, new RenderSnowball<EntityFrienderPearl>(rm, ModItems.FRIENDER_PEARL, itemRenderer));
	rm.entityRenderMap.put(EntityEvolvedEndermite.class, new RenderEvolvedEndermite(rm));
}
 
开发者ID:p455w0rd,项目名称:EndermanEvolution,代码行数:9,代码来源:ModRendering.java

示例10: registerRenderers

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@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()));
}
 
开发者ID:arucil,项目名称:mc-Slingshot,代码行数:13,代码来源:ClientProxy.java

示例11: preInit

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
public void preInit() {
	MinecraftForge.EVENT_BUS.register(this);
	
	RenderingRegistry.registerEntityRenderingHandler(EntityTomato.class,
			(RenderManager m) -> new RenderSnowball<EntityTomato>(m, EnginationItems.TOMATO, Minecraft.getMinecraft().getRenderItem()));
}
 
开发者ID:elytra,项目名称:Engination,代码行数:8,代码来源:ClientProxy.java

示例12: registerEntityModels

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
private static void registerEntityModels()
{
	RenderingRegistry.registerEntityRenderingHandler(EntityStone.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), ARKCraftItems.stone, Minecraft.getMinecraft().getRenderItem()));
	RenderingRegistry.registerEntityRenderingHandler(EntityStoneArrow.class, new RenderStoneArrow());

	// RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class,
	// new RenderSnowball(Minecraft.getMinecraft().getRenderManager(),
	// ARKCraftItems.grenade, Minecraft.getMinecraft().getRenderItem()));

	RenderingRegistry.registerEntityRenderingHandler(EntityDodo.class, new RenderDodo(new ModelDodo(), 0.3F));

	if (ModuleItemBalance.WEAPONS.SIMPLE_PISTOL) {
		RenderingRegistry.registerEntityRenderingHandler(EntitySimpleBullet.class, new RenderSimpleBullet());
	}
	if (ModuleItemBalance.WEAPONS.SHOTGUN) {
		RenderingRegistry.registerEntityRenderingHandler(EntitySimpleShotgunAmmo.class, new RenderSimpleShotgunAmmo());
	}
	if (ModuleItemBalance.WEAPONS.LONGNECK_RIFLE) {
		RenderingRegistry.registerEntityRenderingHandler(EntitySimpleRifleAmmo.class, new RenderSimpleRifleAmmo());
		RenderingRegistry.registerEntityRenderingHandler(EntityTranquilizer.class, new RenderTranquilizer());
	}
	if (ModuleItemBalance.WEAPONS.SPEAR) {
		RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear());
	}
	if (ModuleItemBalance.WEAPONS.FABRICATED_PISTOL) {
		RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedBullet.class, new RenderAdvancedBullet());
	}
}
 
开发者ID:BubbleTrouble14,项目名称:ARKCraft,代码行数:29,代码来源:ClientProxy.java

示例13: registerRenderThings

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
public void registerRenderThings()
{
RenderingRegistry.registerEntityRenderingHandler(EntityNinjaStar.class, new RenderSnowball(ItemLoader.ItemNinjaStar));
RenderingRegistry.registerEntityRenderingHandler(EntityLuckyEgg.class, new RenderSnowball(ItemLoader.ItemLuckyEgg));
RenderingRegistry.registerEntityRenderingHandler(EntilyPatArrow.class, new RenderPatArrow());
RenderingRegistry.registerEntityRenderingHandler(EntilyJenArrow.class, new RenderJenArrow());
}
 
开发者ID:jtrent238,项目名称:PopularMMOS-EpicProportions-Mod,代码行数:9,代码来源:ClientProxy.java

示例14: registerTesrs

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
public void registerTesrs() {
    setTileEntityRendererDispatcher(TileEntityDayBarrel.class, new TileEntityDayBarrelRenderer());
    setTileEntityRendererDispatcher(TileEntityHeater.class, new TileEntityHeaterRenderer());
    setTileEntityRendererDispatcher(TileEntityLeydenJar.class, new TileEntityLeydenJarRender());
    setTileEntityRendererDispatcher(TileEntityCompressionCrafter.class, new TileEntityCompressionCrafterRenderer());
    setTileEntityRendererDispatcher(SocketScissors.class, new TileEntitySocketRenderer());
    setTileEntityRendererDispatcher(SocketLacerator.class, new TileEntitySocketRenderer());
    setTileEntityRendererDispatcher(SocketFanturpeller.class, new TileEntitySocketRenderer());
    setTileEntityRendererDispatcher(SocketPoweredCrank.class, new TileEntitySocketRenderer());
    setTileEntityRendererDispatcher(TileEntityHinge.class, new TileEntityHingeRenderer());
    setTileEntityRendererDispatcher(TileEntitySteamShaft.class, new TileEntitySteamShaftRenderer());
    setTileEntityRendererDispatcher(TileEntityShaft.class, new TileEntityShaftRenderer());
    setTileEntityRendererDispatcher(TileEntityBiblioGen.class, new TileEntityBiblioGenRenderer());
    setTileEntityRendererDispatcher(TileEntityMirror.class, new TileEntityMirrorRender());


    RenderManager rm = Minecraft.getMinecraft().getRenderManager();

    RenderingRegistry.registerEntityRenderingHandler(TileEntityWrathLamp.RelightTask.class, new EmptyRender(rm));
    RenderingRegistry.registerEntityRenderingHandler(ServoMotor.class, new RenderServoMotor(rm));
    //RenderingRegistry.registerEntityRenderingHandler(StepperEngine.class, new RenderStepperEngine(rm));
    RenderingRegistry.registerEntityRenderingHandler(ColossusController.class, new ColossusControllerRenderer(rm));
    RenderingRegistry.registerEntityRenderingHandler(EntityPoster.class, new RenderPoster(rm));
    RenderingRegistry.registerEntityRenderingHandler(EntityMinecartDayBarrel.class, new RenderMinecartDayBarrel(rm));
    RenderingRegistry.registerEntityRenderingHandler(EntityLeafBomb.class, new RenderSnowball<EntityLeafBomb>(rm, Core.registry.leafBomb, Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntitySteamGeyser.class, new EmptyRender(rm));
    RenderingRegistry.registerEntityRenderingHandler(EntitySparkling.class, new RenderSparkling(rm));
}
 
开发者ID:purpleposeidon,项目名称:Factorization,代码行数:30,代码来源:FactorizationClientProxy.java

示例15: registerRenders

import net.minecraft.client.renderer.entity.RenderSnowball; //导入依赖的package包/类
@Override
public void registerRenders() {
	AntiItems.registerRenders();
	AntiBlocks.registerRenders();
	
	RenderingRegistry.registerEntityRenderingHandler(EntityAntimatter.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), AntiItems.antimatter, Minecraft.getMinecraft().getRenderItem()));
}
 
开发者ID:Mutantoe,项目名称:Anti-Minecraft,代码行数:8,代码来源:ClientProxy.java


注:本文中的net.minecraft.client.renderer.entity.RenderSnowball类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。