當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。