Interface ArmorRenderingRegistry.ModelProvider

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.ModelProvider
  • Method Summary

    Modifier and Type Method Description
    @NotNull net.minecraft.client.render.entity.model.BipedEntityModel<net.minecraft.entity.LivingEntity> getArmorModel​(net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack, net.minecraft.entity.EquipmentSlot slot, net.minecraft.client.render.entity.model.BipedEntityModel<net.minecraft.entity.LivingEntity> defaultModel)
    Gets the model of the armor piece.
  • Method Details

    • getArmorModel

      @NotNull @NotNull net.minecraft.client.render.entity.model.BipedEntityModel<net.minecraft.entity.LivingEntity> getArmorModel​(net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack, net.minecraft.entity.EquipmentSlot slot, net.minecraft.client.render.entity.model.BipedEntityModel<net.minecraft.entity.LivingEntity> defaultModel)
      Gets the model of the armor piece.
      Parameters:
      entity - The entity equipping the armor
      stack - The item stack of the armor
      slot - The slot which the armor is in
      defaultModel - The default vanilla armor model
      Returns:
      The model of the armor piece. Should never be null.