Class ArmorTrim
java.lang.Object
net.minecraft.world.item.armortrim.ArmorTrim
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ArmorTrim>
private final Function<ArmorMaterial,
ResourceLocation> private static final org.slf4j.Logger
private final Holder<TrimMaterial>
private final Function<ArmorMaterial,
ResourceLocation> private final Holder<TrimPattern>
static final String
private static final Component
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendUpgradeHoverText
(ItemStack p_266761_, RegistryAccess p_266979_, List<Component> p_267199_) boolean
private String
getColorPaletteSuffix
(ArmorMaterial p_268122_) getTrim
(RegistryAccess p_266952_, ItemStack p_266766_, boolean p_297853_) boolean
hasPatternAndMaterial
(Holder<TrimPattern> p_266942_, Holder<TrimMaterial> p_267247_) innerTexture
(ArmorMaterial p_268043_) material()
outerTexture
(ArmorMaterial p_268143_) pattern()
static boolean
setTrim
(RegistryAccess p_267181_, ItemStack p_266994_, ArmorTrim p_267002_)
-
Field Details
-
CODEC
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TAG_TRIM_ID
- See Also:
-
UPGRADE_TITLE
-
material
-
pattern
-
innerTexture
-
outerTexture
-
-
Constructor Details
-
ArmorTrim
-
-
Method Details
-
getColorPaletteSuffix
-
hasPatternAndMaterial
-
pattern
-
material
-
innerTexture
-
outerTexture
-
equals
-
setTrim
-
getTrim
public static Optional<ArmorTrim> getTrim(RegistryAccess p_266952_, ItemStack p_266766_, boolean p_297853_) -
appendUpgradeHoverText
public static void appendUpgradeHoverText(ItemStack p_266761_, RegistryAccess p_266979_, List<Component> p_267199_)
-