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


Java RendererLivingEntity类代码示例

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


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

示例1: resetDisplayListModels

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public static void resetDisplayListModels()
{
    if (needResetModels)
    {
        needResetModels = false;
        SMCLog.info("Reset model renderers");

        for (Object render : mc.getRenderManager().getEntityRenderMap().values())
        {
            if (render instanceof RendererLivingEntity)
            {
                RendererLivingEntity rendererlivingentity = (RendererLivingEntity)render;
                resetDisplayListModel(rendererlivingentity.getMainModel());
            }
        }
    }
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:18,代码来源:Shaders.java

示例2: RenderLivingEvent

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public RenderLivingEvent(EntityLivingBase entity, RendererLivingEntity renderer, double x, double y, double z)
{
    this.entity = entity;
    this.renderer = renderer;
    this.x = x;
    this.y = y;
    this.z = z;
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:9,代码来源:RenderLivingEvent.java

示例3: registerClientSide

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
private void registerClientSide(FMLPreInitializationEvent event)
{
	if (event.getSide().isClient())
	{
		optiFineWarn = FMLClientHandler.instance().hasOptifine();
		ClientProxy.registerRenderInformation();
		RendererLivingEntity.NAME_TAG_RANGE_SNEAK = nametagrange;
		RendererLivingEntity.NAME_TAG_RANGE = nametagrange;
		MinecraftForge.EVENT_BUS.register(new RivalRebelsSoundEventHandler());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.roddisk, new RodDiskRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.plasmacannon, new PlasmaCannonRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.einsten, new AstroBlasterRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.hydrod, new HydrogenRodRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.redrod, new RedstoneRodRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.nuclearelement, new NuclearRodRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.emptyrod, new EmptyRodRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.reactor.getItemDropped(1, null, 1), new ReactorRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.loader.getItemDropped(1, null, 1), new LoaderRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.controller.getItemDropped(1, null, 1), new LaptopRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.rpg, new RocketLauncherRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.binoculars, new BinocularsRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.tesla, new TeslaRenderer());
		// MinecraftForgeClient.registerItemRenderer(RivalRebels.nikolatesla.itemID, new TeslaRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.battery, new BatteryRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.flamethrower, new FlamethrowerRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.fuel, new GasRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.roda, new RodaRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.hackm202, new HackRocketLauncherRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.seekm202, new SeekRocketLauncherRenderer());
		MinecraftForgeClient.registerItemRenderer(RivalRebels.rocket, new RocketRenderer());
		rrro = new RivalRebelsRenderOverlay();
		RenderLibrary rl = new RenderLibrary();
		rl.init();
		MinecraftForge.EVENT_BUS.register(rrro);
	}
}
 
开发者ID:rodolphito,项目名称:Rival-Rebels-Mod,代码行数:37,代码来源:RivalRebels.java

示例4: doInit

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
@Override
protected void doInit() {
    if(Gadomancy.proxy.getSide() == Side.CLIENT) {
        RendererLivingEntity render = ClientProxy.unregisterRenderer(EntityGolemTH.class, RenderGolemTH.class);
        if(render != null) {
            RenderingRegistry.registerEntityRenderingHandler(EntityGolemTH.class, new RenderAdditionalGolemTH(render.mainModel));
        }

        modMatrix = Block.getBlockFromName("ThaumicHorizons:modMatrix");

        RegisteredBlocks.registerClawClickBehavior(new ClickBehavior(true) {
            private TileVat vat;

            @Override
            public boolean isValidForBlock() {
                if (block == modMatrix && metadata == 0) {
                    this.vat = ((TileVatMatrix) world.getTileEntity(x, y, z)).getVat();
                    return vat != null;
                }
                return false;
            }

            @Override
            public int getComparatorOutput() {
                return (vat.mode != 0 && vat.mode != 4) ? 15 : 0;
            }

            @Override
            public void addInstability(int instability) {
                vat.instability += Math.ceil(instability * 0.5);
            }
        });
    }

    MinecraftForge.EVENT_BUS.register(this);
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:37,代码来源:IntegrationThaumicHorizions.java

示例5: LayerGenericHeldItem

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
/**
 * Renderer's getMainModel() must return a model implementing IModelBiped
 */
public LayerGenericHeldItem(RendererLivingEntity<?> modelBase) {
	this.modelBase = modelBase;
	if (!(this.modelBase.getMainModel() instanceof IModelBiped)) {
		throw new IllegalArgumentException("Model must implement IModelBiped!");
	}
}
 
开发者ID:coolAlias,项目名称:ZeldaSwordSkills,代码行数:10,代码来源:LayerGenericHeldItem.java

示例6: render

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
@SubscribeEvent
public void render(RenderPlayerEvent.Pre e) {
    ModelPlayer model;
    if (!models.containsKey(e.entityPlayer.func_146103_bH().getName())) {
        model = new ModelPlayer();
        model.setUpCustom(e.entityPlayer.func_146103_bH().getName());
        models.put(e.entityPlayer.func_146103_bH().getName(), model);
    } else {
        model = models.get(e.entityPlayer.func_146103_bH().getName());
    }

    ObfuscationReflectionHelper.setPrivateValue(RendererLivingEntity.class, e.renderer, model, "mainModel", "field_77045_g");
    ObfuscationReflectionHelper.setPrivateValue(RenderPlayer.class, e.renderer, model, "modelBipedMain", "field_77109_a");
}
 
开发者ID:Cazzar,项目名称:VoxelPlayerModels,代码行数:15,代码来源:EventHandler.java

示例7: doRender

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
@Override
public void doRender(EntityLivingBase ent, double par2, double par4, double par6, float par8, float par9)
{
    EntityXanafiedMob xana = (EntityXanafiedMob) ent;
    if (xana != null && xana.infectedMob != null) {
        RendererLivingEntity render = (RendererLivingEntity) RenderManager.instance.getEntityRenderObject(xana.infectedMob);
        render.doRender(xana, par2, par4, par6, par8, par9);
    } else
        super.doRender(ent, par2, par4, par6, par8, par9);
}
 
开发者ID:Cortex-Modders,项目名称:CodeLyokoMod,代码行数:11,代码来源:RenderXanafiedMob.java

示例8: LayerVillagerArmor

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public LayerVillagerArmor(RendererLivingEntity<?> rendererIn)
{
    super(rendererIn);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:LayerVillagerArmor.java

示例9: LayerArrow

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public LayerArrow(RendererLivingEntity p_i46124_1_)
{
    this.field_177168_a = p_i46124_1_;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:LayerArrow.java

示例10: LayerBipedArmor

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public LayerBipedArmor(RendererLivingEntity<?> rendererIn)
{
    super(rendererIn);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:LayerBipedArmor.java

示例11: LayerHeldItem

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public LayerHeldItem(RendererLivingEntity<?> livingEntityRendererIn)
{
    this.livingEntityRenderer = livingEntityRendererIn;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:LayerHeldItem.java

示例12: LayerArmorBase

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public LayerArmorBase(RendererLivingEntity<?> rendererIn)
{
    this.renderer = rendererIn;
    this.initArmor();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:LayerArmorBase.java

示例13: RenderLivingEvent

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
@SubscribeEvent
public void RenderLivingEvent(EntityLivingBase entity, RendererLivingEntity renderer, double x, double y, double z)
{

}
 
开发者ID:Micky2506,项目名称:UdaldorDecor,代码行数:6,代码来源:EventHandler.java

示例14: RenderLivingEvent

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
public RenderLivingEvent(EntityLivingBase entity, RendererLivingEntity renderer)
{
    this.entity = entity;
    this.renderer = renderer;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:RenderLivingEvent.java

示例15: onRenderSpecials

import net.minecraft.client.renderer.entity.RendererLivingEntity; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onRenderSpecials(RenderLivingEvent.Specials.Pre event)
{
    Iterator<Entry<String, MorphInfoClient>> ite = Morph.proxy.tickHandlerClient.playerMorphInfo.entrySet().iterator();
    while(ite.hasNext())
    {
        Entry<String, MorphInfoClient> e = ite.next();
        if(e.getValue().nextState.entInstance == event.entity || e.getValue().prevState != null && e.getValue().prevState.entInstance == event.entity)
        {
            if(e.getValue().prevState != null && e.getValue().prevState.entInstance instanceof EntityPlayer && !((EntityPlayer)e.getValue().prevState.entInstance).getCommandSenderName().equals(e.getKey()))
            {
                event.setCanceled(true);
            }
            EntityPlayer player = event.entity.worldObj.getPlayerEntityByName(e.getKey());
            if(player != null && !(e.getValue().nextState.entInstance instanceof EntityPlayer && ((EntityPlayer)e.getValue().nextState.entInstance).getCommandSenderName().equals(e.getKey())))
            {
                if(Morph.config.getSessionInt("showPlayerLabel") == 1)
                {
                    if(e.getValue().nextState.entInstance instanceof EntityPlayer && !((EntityPlayer)e.getValue().nextState.entInstance).getCommandSenderName().equals(e.getKey()))
                    {
                        event.setCanceled(true);
                    }
                    RenderPlayer rend = (RenderPlayer)RenderManager.instance.getEntityRenderObject(player);

                    GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);

                    if(Minecraft.isGuiEnabled() && player != Minecraft.getMinecraft().thePlayer && !player.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer) && player.riddenByEntity == null)
                    {
                        float f = 1.6F;
                        float f1 = 0.016666668F * f;
                        double d3 = player.getDistanceSqToEntity(Minecraft.getMinecraft().thePlayer);
                        float f2 = player.isSneaking() ? RendererLivingEntity.NAME_TAG_RANGE_SNEAK : RendererLivingEntity.NAME_TAG_RANGE;

                        if(d3 < (double)(f2 * f2))
                        {
                            String s = player.func_145748_c_().getFormattedText();
                            rend.func_96449_a(player, event.x, event.y, event.z, s, f1, d3);
                        }
                    }
                }
            }
            break;
        }
    }
}
 
开发者ID:iChun,项目名称:Morph,代码行数:47,代码来源:EventHandler.java


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