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 TypeMethodDescription@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 armorstack
- The item stack of the armorslot
- The slot which the armor is indefaultModel
- The default vanilla armor model- Returns:
- The model of the armor piece. Should never be null.
-