Class CustomArmorModelTest.EndermanArmorItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
net.neoforged.neoforge.oldtest.client.CustomArmorModelTest.EndermanArmorItem
All Implemented Interfaces:
FeatureElement, Equipable, ItemLike, IItemExtension
Enclosing class:
CustomArmorModelTest

private static class CustomArmorModelTest.EndermanArmorItem extends ArmorItem
  • Field Details

  • Constructor Details

  • Method Details

    • getArmorTexture

      @Nullable public @Nullable ResourceLocation getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, ArmorMaterial.Layer layer, boolean innerModel)
      Description copied from interface: IItemExtension
      Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equipped item. This will only be called on instances of ItemArmor. Returning null from this function will use the default value.
      Parameters:
      stack - ItemStack for the equipped armor
      entity - The entity wearing the armor
      slot - The slot the armor is in
      layer - The armor layer
      innerModel - Whether the inner model is used
      Returns:
      Path of texture to bind, or null to use default