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_331108_, Holder<TrimPattern> p_331731_, boolean p_331871_) private
ArmorTrim
(Holder<TrimMaterial> p_336069_, Holder<TrimPattern> p_335896_, boolean p_335621_, Function<Holder<ArmorMaterial>, ResourceLocation> p_335613_, Function<Holder<ArmorMaterial>, ResourceLocation> p_335818_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToTooltip
(Item.TooltipContext p_341366_, Consumer<Component> p_331480_, TooltipFlag p_330344_) boolean
private static String
getColorPaletteSuffix
(Holder<TrimMaterial> p_323989_, Holder<ArmorMaterial> p_335566_) int
hashCode()
boolean
hasPatternAndMaterial
(Holder<TrimPattern> p_266942_, Holder<TrimMaterial> p_267247_) innerTexture
(Holder<ArmorMaterial> p_324361_) material()
outerTexture
(Holder<ArmorMaterial> p_323530_) pattern()
withTooltip
(boolean p_335391_)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
UPGRADE_TITLE
-
material
-
pattern
-
showInTooltip
private final boolean showInTooltip -
innerTexture
-
outerTexture
-
-
Constructor Details
-
ArmorTrim
private ArmorTrim(Holder<TrimMaterial> p_336069_, Holder<TrimPattern> p_335896_, boolean p_335621_, Function<Holder<ArmorMaterial>, ResourceLocation> p_335613_, Function<Holder<ArmorMaterial>, ResourceLocation> p_335818_) -
ArmorTrim
-
ArmorTrim
-
-
Method Details
-
getColorPaletteSuffix
private static String getColorPaletteSuffix(Holder<TrimMaterial> p_323989_, Holder<ArmorMaterial> p_335566_) -
hasPatternAndMaterial
-
pattern
-
material
-
innerTexture
-
outerTexture
-
equals
-
hashCode
public int hashCode() -
addToTooltip
public void addToTooltip(Item.TooltipContext p_341366_, Consumer<Component> p_331480_, TooltipFlag p_330344_) - Specified by:
addToTooltip
in interfaceTooltipProvider
-
withTooltip
-