本文整理汇总了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();
}
示例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());
}
示例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());
}
示例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));
}
示例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));
}
示例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);
}
示例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);
}
示例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"));
}
示例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));
}
示例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()));
}
示例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()));
}
示例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());
}
}
示例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());
}
示例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));
}
示例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()));
}