net.minecraft.world.item.enchantment

public class ItemEnchantments

implements TooltipProvider

dai
net.minecraft.world.item.enchantment.ItemEnchantments
net.minecraft.class_9304
net.minecraft.unmapped.C_qlclfxvn
net.minecraft.component.type.ItemEnchantmentsComponent
net.minecraft.component.type.ItemEnchantmentsComponent
net.minecraft.src.C_313873_
net.minecraft.world.item.enchantment.ItemEnchantments

Field summary

Modifier and TypeField
public static final ItemEnchantments
a
EMPTY
field_49385
f_osezxuts
DEFAULT
DEFAULT
f_314789_
private static final com.mojang.serialization.Codec<Integer>
d
LEVEL_CODEC
field_49388
f_svrotkyo
ENCHANTMENT_LEVEL_CODEC
LEVEL_CODEC
f_314123_
private static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>>
e
LEVELS_CODEC
field_49753
f_weawpons
INLINE_CODEC
LEVELS_CODEC
f_316166_
private static final com.mojang.serialization.Codec<ItemEnchantments>
f
FULL_CODEC
field_49754
f_nekwvric
BASE_CODEC
FULL_CODEC
f_314760_
public static final com.mojang.serialization.Codec<ItemEnchantments>
b
CODEC
field_49386
f_zvqfplck
CODEC
CODEC
f_315579_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemEnchantments>
c
STREAM_CODEC
field_49387
f_ozylzmlm
PACKET_CODEC
PACKET_CODEC
f_316523_
final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>
g
enchantments
field_49389
f_ksvmzpme
enchantments
levels
f_315809_
final boolean
h
showInTooltip
field_49390
f_zenuxhpu
showInTooltip
shownInTooltip
f_316957_

Constructor summary

ModifierConstructor
(it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>> enchantments, boolean showInTooltip)

Method summary

Modifier and TypeMethod
public int
a(jm<dac> arg0)
getLevel(Holder<Enchantment> arg0)
method_57536(class_6880<class_1887> arg0)
m_ugcgsgdf(C_cjzoxshv<C_jxtrubuh> arg0)
getLevel(RegistryEntry<Enchantment> enchantment)
getLevel(Holder<Enchantment> enchantment)
m_320299_(C_203228_<C_1505_> 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)
m_eqoeoqpg(C_vorddnax$C_rdhfmrgz arg0, Consumer<C_rdaqiwdt> arg1, C_taebrtdw arg2)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2)
appendToTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipConfig arg2)
m_319025_(C_1381_$C_313602_ p_333731_, Consumer<C_4996_> p_332196_, C_1431_ arg2)
private static <T> HolderSet<T>
a(jo$a arg0, akq<jz<T>> arg1, awu<T> arg2)
getTagOrEmpty(HolderLookup$Provider arg0, ResourceKey<Registry<T>> arg1, TagKey<T> arg2)
method_59716(class_7225$class_7874 arg0, class_5321<class_2378<T>> arg1, class_6862<T> arg2)
m_rwfsmcfy(C_vtbxyypo$C_etmlgbig arg0, C_xhhleach<C_tqxyjqsk<T>> arg1, C_ednuhnnn<T> arg2)
getTooltipOrderList(RegistryWrapper$WrapperLookup registryLookup, RegistryKey<Registry<T>> registryRef, TagKey<T> tooltipOrderTag)
getTagOrEmpty(HolderLookup$Provider lookup, RegistryKey<Registry<T>> registryKey, TagKey<T> tag)
m_318888_(C_213466_$C_254607_ p_327799_, C_5264_<C_4705_<T>> p_330565_, C_203208_<T> p_327764_)
public ItemEnchantments
a(boolean arg0)
withTooltip(boolean arg0)
method_58449(boolean arg0)
m_ucwxfcxd(boolean arg0)
withShowInTooltip(boolean showInTooltip)
withShownInTooltip(boolean shownInTooltip)
m_323674_(boolean arg0)
public Set<Holder<Enchantment>>
a()
keySet()
method_57534()
m_cucglkdc()
getEnchantments()
getEnchantments()
m_324420_()
public Set<it.unimi.dsi.fastutil.objects.Object2IntMap$Entry<Holder<Enchantment>>>
b()
entrySet()
method_57539()
m_szyctegw()
getEnchantmentEntries()
getEnchantmentEntries()
m_320130_()
public int
c()
size()
method_57541()
m_cuvyskeq()
getSize()
size()
m_322852_()
public boolean
d()
isEmpty()
method_57543()
m_gpefdzxc()
isEmpty()
isEmpty()
m_324000_()