Class ArmorTrim
java.lang.Object
net.minecraft.world.item.armortrim.ArmorTrim
- All Implemented Interfaces:
TooltipProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ArmorTrim> private final Function
<Holder<ArmorMaterial>, ResourceLocation> private final Holder
<TrimMaterial> private final Function
<Holder<ArmorMaterial>, ResourceLocation> private final Holder
<TrimPattern> private final boolean
static final StreamCodec
<RegistryFriendlyByteBuf, ArmorTrim> private static final Component
-
Constructor Summary
ModifierConstructorDescriptionArmorTrim
(Holder<TrimMaterial> p_267249_, Holder<TrimPattern> p_267212_) ArmorTrim
(Holder<TrimMaterial> p_336165_, Holder<TrimPattern> p_333838_, boolean p_331209_) private
ArmorTrim
(Holder<TrimMaterial> p_330892_, Holder<TrimPattern> p_328752_, boolean p_335455_, Function<Holder<ArmorMaterial>, ResourceLocation> p_332214_, Function<Holder<ArmorMaterial>, ResourceLocation> p_329213_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToTooltip
(Item.TooltipContext p_334801_, Consumer<Component> p_334147_, TooltipFlag p_329892_) boolean
private static String
getColorPaletteSuffix
(Holder<TrimMaterial> p_329303_, Holder<ArmorMaterial> p_330126_) int
hashCode()
boolean
hasPatternAndMaterial
(Holder<TrimPattern> p_266942_, Holder<TrimMaterial> p_267247_) innerTexture
(Holder<ArmorMaterial> p_330423_) material()
outerTexture
(Holder<ArmorMaterial> p_334845_) pattern()
withTooltip
(boolean p_332005_)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
UPGRADE_TITLE
-
material
-
pattern
-
showInTooltip
private final boolean showInTooltip -
innerTexture
-
outerTexture
-
-
Constructor Details
-
ArmorTrim
private ArmorTrim(Holder<TrimMaterial> p_330892_, Holder<TrimPattern> p_328752_, boolean p_335455_, Function<Holder<ArmorMaterial>, ResourceLocation> p_332214_, Function<Holder<ArmorMaterial>, ResourceLocation> p_329213_) -
ArmorTrim
-
ArmorTrim
-
-
Method Details
-
getColorPaletteSuffix
private static String getColorPaletteSuffix(Holder<TrimMaterial> p_329303_, Holder<ArmorMaterial> p_330126_) -
hasPatternAndMaterial
-
pattern
-
material
-
innerTexture
-
outerTexture
-
equals
-
hashCode
public int hashCode() -
addToTooltip
public void addToTooltip(Item.TooltipContext p_334801_, Consumer<Component> p_334147_, TooltipFlag p_329892_) - Specified by:
addToTooltip
in interfaceTooltipProvider
-
withTooltip
-