Interface ArmorRenderingRegistry.TextureProvider

Enclosing class:
ArmorRenderingRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
@Environment(CLIENT)
public static interface ArmorRenderingRegistry.TextureProvider
  • Method Summary

    Modifier and Type Method Description
    @NotNull net.minecraft.util.Identifier getArmorTexture​(net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack, net.minecraft.entity.EquipmentSlot slot, boolean secondLayer, @Nullable String suffix, net.minecraft.util.Identifier defaultTexture)
    Gets the armor texture Identifier.
  • Method Details

    • getArmorTexture

      @NotNull @NotNull net.minecraft.util.Identifier getArmorTexture​(net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack, net.minecraft.entity.EquipmentSlot slot, boolean secondLayer, @Nullable @Nullable String suffix, net.minecraft.util.Identifier defaultTexture)
      Gets the armor texture Identifier.
      Parameters:
      entity - The entity equipping the armor
      stack - The item stack of the armor
      slot - The slot which the armor is in
      defaultTexture - The default vanilla texture identifier
      Returns:
      the custom armor texture identifier. Should never be null.