本文整理汇总了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));
}
示例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);
}
}
示例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));
}
示例4: LayerPonyCape
import net.minecraft.client.renderer.entity.layers.LayerCape; //导入依赖的package包/类
public LayerPonyCape(RenderLivingBase<? extends AbstractClientPlayer> entity) {
super(entity, new LayerCape((RenderPlayer) entity));
}
示例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;
}