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


Java LayerCape类代码示例

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


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

示例1: RenderPlayer

import net.minecraft.client.renderer.entity.layers.LayerCape; //导入依赖的package包/类
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:12,代码来源:RenderPlayer.java

示例2: replaceCapeLayer

import net.minecraft.client.renderer.entity.layers.LayerCape; //导入依赖的package包/类
private static void replaceCapeLayer(@Nonnull RenderPlayer renderLivingBase) {
  try {
    List<LayerRenderer<AbstractClientPlayer>> value = ReflectionHelper.getPrivateValue(RenderLivingBase.class, renderLivingBase, "layerRenderers",
        "field_177097_h");
    if (value != null) {
      LayerRenderer<AbstractClientPlayer> capeLayer = null;
      for (LayerRenderer<AbstractClientPlayer> layerRenderer : value) {
        if (layerRenderer instanceof LayerCape && !(layerRenderer instanceof CapeFilterLayer)) {
          capeLayer = layerRenderer;
          break;
        }
      }
      if (capeLayer != null) {
        renderLivingBase.addLayer(new CapeFilterLayer(capeLayer));
        value.remove(capeLayer);
      }
    }
  } catch (UnableToAccessFieldException e) {
    Log.warn("Unable to access RenderLivingBase.layerRenderers, reason: " + e);
  }
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:22,代码来源:UpgradeRenderManager.java

示例3: RenderPlayer

import net.minecraft.client.renderer.entity.layers.LayerCape; //导入依赖的package包/类
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
    this.addLayer(new LayerElytra(this));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:RenderPlayer.java

示例4: LayerPonyCape

import net.minecraft.client.renderer.entity.layers.LayerCape; //导入依赖的package包/类
public LayerPonyCape(RenderLivingBase<? extends AbstractClientPlayer> entity) {
    super(entity, new LayerCape((RenderPlayer) entity));
}
 
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:4,代码来源:LayerPonyCape.java

示例5: doRenderLayer_cape

import net.minecraft.client.renderer.entity.layers.LayerCape; //导入依赖的package包/类
@Hook("net.minecraft.client.renderer.entity.layers.LayerCape#func_177141_a")
public static Hook.Result doRenderLayer_cape(LayerCape layer, AbstractClientPlayer player, float limbSwing, float limbSwingAmount,
		float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
	return getFormLiving0(player).getItem() == Items.ELYTRA ? Hook.Result.NULL : Hook.Result.VOID;
}
 
开发者ID:NekoCaffeine,项目名称:Alchemy,代码行数:6,代码来源:ExItemElytra.java


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