Class BipedArmorLayer<T extends LivingEntity,​M extends BipedModel<T>,​A extends BipedModel<T>>

    • Field Detail

      • ARMOR_LOCATION_CACHE

        private static final java.util.Map<java.lang.String,​ResourceLocation> ARMOR_LOCATION_CACHE
      • innerModel

        private final A extends BipedModel<T> innerModel
      • outerModel

        private final A extends BipedModel<T> outerModel
    • Constructor Detail

      • BipedArmorLayer

        public BipedArmorLayer​(IEntityRenderer<T,​M> p_i50936_1_,
                               A p_i50936_2_,
                               A p_i50936_3_)
    • Method Detail

      • setPartVisibility

        protected void setPartVisibility​(A p_188359_1_,
                                         EquipmentSlotType p_188359_2_)
      • renderModel

        private void renderModel​(MatrixStack p_241738_1_,
                                 IRenderTypeBuffer p_241738_2_,
                                 int p_241738_3_,
                                 ArmorItem p_241738_4_,
                                 boolean p_241738_5_,
                                 A p_241738_6_,
                                 boolean p_241738_7_,
                                 float p_241738_8_,
                                 float p_241738_9_,
                                 float p_241738_10_,
                                 @Nullable
                                 java.lang.String p_241738_11_)
      • renderModel

        private void renderModel​(MatrixStack p_241738_1_,
                                 IRenderTypeBuffer p_241738_2_,
                                 int p_241738_3_,
                                 boolean p_241738_5_,
                                 A p_241738_6_,
                                 float p_241738_8_,
                                 float p_241738_9_,
                                 float p_241738_10_,
                                 ResourceLocation armorResource)
      • getArmorLocation

        @Deprecated
        private ResourceLocation getArmorLocation​(ArmorItem p_241737_1_,
                                                  boolean p_241737_2_,
                                                  @Nullable
                                                  java.lang.String p_241737_3_)
        Deprecated.
      • getArmorModelHook

        protected A getArmorModelHook​(T entity,
                                      ItemStack itemStack,
                                      EquipmentSlotType slot,
                                      A model)
        Hook to allow item-sensitive armor model. for LayerBipedArmor.
      • getArmorResource

        public ResourceLocation getArmorResource​(Entity entity,
                                                 ItemStack stack,
                                                 EquipmentSlotType slot,
                                                 @Nullable
                                                 java.lang.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