net.minecraft.world.item.enchantment

public class ItemEnchantments

implements TooltipProvider

dai
net.minecraft.world.item.enchantment.ItemEnchantments
net.minecraft.class_9304
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
DEFAULT
f_314789_
private static final com.mojang.serialization.Codec<Integer>
d
LEVEL_CODEC
field_49388
ENCHANTMENT_LEVEL_CODEC
f_314123_
private static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>>
e
LEVELS_CODEC
field_49753
INLINE_CODEC
f_316166_
private static final com.mojang.serialization.Codec<ItemEnchantments>
f
FULL_CODEC
field_49754
BASE_CODEC
f_314760_
public static final com.mojang.serialization.Codec<ItemEnchantments>
b
CODEC
field_49386
CODEC
f_315579_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemEnchantments>
c
STREAM_CODEC
field_49387
PACKET_CODEC
f_316523_
final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>
g
enchantments
field_49389
enchantments
f_315809_
final boolean
h
showInTooltip
field_49390
showInTooltip
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)
getLevel(RegistryEntry<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)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType 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)
getTooltipOrderList(RegistryWrapper$WrapperLookup registryLookup, RegistryKey<Registry<T>> registryRef, TagKey<T> tooltipOrderTag)
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)
withShowInTooltip(boolean showInTooltip)
m_323674_(boolean arg0)
public Set<Holder<Enchantment>>
a()
keySet()
method_57534()
getEnchantments()
m_324420_()
public Set<it.unimi.dsi.fastutil.objects.Object2IntMap$Entry<Holder<Enchantment>>>
b()
entrySet()
method_57539()
getEnchantmentEntries()
m_320130_()
public int
c()
size()
method_57541()
getSize()
m_322852_()
public boolean
d()
isEmpty()
method_57543()
isEmpty()
m_324000_()