Interface ArmorRenderingRegistry.TextureProvider
- Enclosing class:
ArmorRenderingRegistry
@ClientOnly
public static interface ArmorRenderingRegistry.TextureProvider
The callback for customizing an armor's texture.
-
Method Summary
Modifier and TypeMethodDescription@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 assetstate- the render state of the entity wearing the armorstack- the item stack representing the worn armorslot- the equipment slot the armor is being worn inuseSecondLayer-trueto use inner armor (leggings) texture, orfalseto use outer armor texture- Returns:
- the new armor texture, or
textureif the texture should not be changed
-