Class HumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>,A extends HumanoidModel<T>>

java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer<T,M,A>

public class HumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>,A extends HumanoidModel<T>> extends RenderLayer<T,M>
  • Field Details

  • Constructor Details

    • HumanoidArmorLayer

      public HumanoidArmorLayer(RenderLayerParent<T,M> p_117075_, A p_117076_, A p_117077_)
  • Method Details

    • render

      public void render(PoseStack p_117096_, MultiBufferSource p_117097_, int p_117098_, T p_117099_, float p_117100_, float p_117101_, float p_117102_, float p_117103_, float p_117104_, float p_117105_)
      Specified by:
      render in class RenderLayer<T extends LivingEntity,M extends HumanoidModel<T>>
    • renderArmorPiece

      private void renderArmorPiece(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_)
    • setPartVisibility

      protected void setPartVisibility(A p_117126_, EquipmentSlot p_117127_)
    • renderModel

      private void renderModel(PoseStack p_117107_, MultiBufferSource p_117108_, int p_117109_, ArmorItem p_117110_, boolean p_117111_, A p_117112_, boolean p_117113_, float p_117114_, float p_117115_, float p_117116_, @Nullable String p_117117_)
    • renderModel

      private void renderModel(PoseStack p_117107_, MultiBufferSource p_117108_, int p_117109_, boolean p_117111_, Model p_117112_, float p_117114_, float p_117115_, float p_117116_, ResourceLocation armorResource)
    • getArmorModel

      private A getArmorModel(EquipmentSlot p_117079_)
    • usesInnerModel

      private boolean usesInnerModel(EquipmentSlot p_117129_)
    • getArmorLocation

      @Deprecated private ResourceLocation getArmorLocation(ArmorItem p_117081_, boolean p_117082_, @Nullable String p_117083_)
      Deprecated.
    • getArmorModelHook

      protected Model getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlot slot, A model)
      Hook to allow item-sensitive armor model. for HumanoidArmorLayer.
    • getArmorResource

      public ResourceLocation getArmorResource(Entity entity, ItemStack stack, EquipmentSlot slot, @Nullable String type)
      More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.
      Parameters:
      entity - Entity wearing the armor
      stack - ItemStack for the armor
      slot - Slot ID that the item is in
      type - Subtype, can be null or "overlay"
      Returns:
      ResourceLocation pointing at the armor's texture