net.minecraft.world.item.armortrim

public class ArmorTrim

implements TooltipProvider

cwx
net.minecraft.world.item.armortrim.ArmorTrim
net.minecraft.class_8053
net.minecraft.item.trim.ArmorTrim
net.minecraft.src.C_265827_
net.minecraft.world.item.armortrim.ArmorTrim

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<ArmorTrim>
a
CODEC
field_41994
CODEC
f_265985_
public static final StreamCodec<RegistryFriendlyByteBuf, ArmorTrim>
b
STREAM_CODEC
field_49278
PACKET_CODEC
f_317134_
private static final Component
c
UPGRADE_TITLE
field_41997
UPGRADE_TEXT
f_266060_
private final Holder<TrimMaterial>
d
material
field_41998
material
f_266045_
private final Holder<TrimPattern>
e
pattern
field_41999
pattern
f_265943_
private final boolean
f
showInTooltip
field_49279
showInTooltip
f_315497_
private final Function<Holder<ArmorMaterial>, ResourceLocation>
g
innerTexture
field_42000
leggingsModelIdGetter
f_265947_
private final Function<Holder<ArmorMaterial>, ResourceLocation>
h
outerTexture
field_42001
genericModelIdGetter
f_265975_

Constructor summary

ModifierConstructor
private (Holder<TrimMaterial> material, Holder<TrimPattern> pattern, boolean showInTooltip, Function<Holder<ArmorMaterial>, ResourceLocation> leggingsModelIdGetter, Function<Holder<ArmorMaterial>, ResourceLocation> genericModelIdGetter)
public (Holder<TrimMaterial> material, Holder<TrimPattern> pattern, boolean showInTooltip)
public (Holder<TrimMaterial> material, Holder<TrimPattern> pattern)

Method summary

Modifier and TypeMethod
private static String
b(jm<cwy> arg0, jm<csg> arg1)
getColorPaletteSuffix(Holder<TrimMaterial> arg0, Holder<ArmorMaterial> arg1)
method_48577(class_6880<class_8054> arg0, class_6880<class_1741> arg1)
getMaterialAssetNameFor(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorMaterial> armorMaterial)
m_267648_(C_203228_<C_265813_> p_329303_, C_203228_<C_1315_> p_330126_)
public boolean
a(jm<cxa> arg0, jm<cwy> arg1)
hasPatternAndMaterial(Holder<TrimPattern> arg0, Holder<TrimMaterial> arg1)
method_48427(class_6880<class_8056> arg0, class_6880<class_8054> arg1)
equals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material)
m_266357_(C_203228_<C_265826_> p_267247_, C_203228_<C_265813_> arg1)
public Holder<TrimPattern>
a()
pattern()
method_48424()
getPattern()
m_266429_()
public Holder<TrimMaterial>
b()
material()
method_48431()
getMaterial()
m_266210_()
public ResourceLocation
a(jm<csg> arg0)
innerTexture(Holder<ArmorMaterial> arg0)
method_48434(class_6880<class_1741> arg0)
getLeggingsModelId(RegistryEntry<ArmorMaterial> armorMaterial)
m_267774_(C_203228_<C_1315_> arg0)
public ResourceLocation
b(jm<csg> arg0)
outerTexture(Holder<ArmorMaterial> arg0)
method_48436(class_6880<class_1741> arg0)
getGenericModelId(RegistryEntry<ArmorMaterial> armorMaterial)
m_267606_(C_203228_<C_1315_> arg0)
public void
a(cul$b arg0, Consumer<wz> arg1, cwm arg2)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2)
m_319025_(C_1381_$C_313602_ p_334147_, Consumer<C_4996_> p_329892_, C_1431_ arg2)
public ArmorTrim
a(boolean arg0)
withTooltip(boolean arg0)
method_58421(boolean arg0)
withShowInTooltip(boolean showInTooltip)
m_323960_(boolean arg0)