Interface ArmorRenderingRegistry.TextureProvider

Enclosing class:
ArmorRenderingRegistry

@ClientOnly public static interface ArmorRenderingRegistry.TextureProvider
The callback for customizing an armor's texture.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.registry.RegistryKey<net.minecraft.util.EquipmentAsset>
    getArmorTexture(@NotNull net.minecraft.registry.RegistryKey<net.minecraft.util.EquipmentAsset> asset, @NotNull net.minecraft.client.render.entity.state.BipedRenderState state, @NotNull net.minecraft.item.ItemStack stack, @NotNull net.minecraft.entity.EquipmentSlot slot, boolean useSecondLayer)
    Modifies the armor texture.
  • Method Details

    • getArmorTexture

      @NotNull @NotNull net.minecraft.registry.RegistryKey<net.minecraft.util.EquipmentAsset> getArmorTexture(@NotNull @NotNull net.minecraft.registry.RegistryKey<net.minecraft.util.EquipmentAsset> asset, @NotNull @NotNull net.minecraft.client.render.entity.state.BipedRenderState state, @NotNull @NotNull net.minecraft.item.ItemStack stack, @NotNull @NotNull net.minecraft.entity.EquipmentSlot slot, boolean useSecondLayer)
      Modifies the armor texture.
      Parameters:
      asset - the current armor asset
      state - the render state of the entity wearing the armor
      stack - the item stack representing the worn armor
      slot - the equipment slot the armor is being worn in
      useSecondLayer - true to use inner armor (leggings) texture, or false to use outer armor texture
      Returns:
      the new armor texture, or texture if the texture should not be changed