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 TypeMethodDescription@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 textureIdentifier
.
-
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 textureIdentifier
.- Parameters:
entity
- The entity equipping the armorstack
- The item stack of the armorslot
- The slot which the armor is indefaultTexture
- The default vanilla texture identifier- Returns:
- the custom armor texture identifier. Should never be null.
-