net.minecraft.world.item.enchantment

public class ItemEnchantments

implements TooltipProvider

dfl
net.minecraft.world.item.enchantment.ItemEnchantments
net.minecraft.class_9304
net.minecraft.component.type.ItemEnchantmentsComponent

Field summary

Modifier and TypeField
public static final ItemEnchantments
a
EMPTY
field_49385
DEFAULT
private static final com.mojang.serialization.Codec<Integer>
d
LEVEL_CODEC
field_49388
ENCHANTMENT_LEVEL_CODEC
public static final com.mojang.serialization.Codec<ItemEnchantments>
b
CODEC
field_49386
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ItemEnchantments>
c
STREAM_CODEC
field_49387
PACKET_CODEC
final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>
e
enchantments
field_49389
enchantments

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
a(je<dff> arg0)
getLevel(Holder<Enchantment> arg0)
method_57536(class_6880<class_1887> arg0)
getLevel(RegistryEntry<Enchantment> enchantment)
public void
a(cyo$b arg0, Consumer<ww> arg1, dah arg2, ke arg3)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2, DataComponentGetter arg3)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2, class_9473 arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
private static <T> HolderSet<T>
a(jg$a arg0, ald<jr<T>> arg1, axp<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 registries, RegistryKey<Registry<T>> registryRef, TagKey<T> tooltipOrderTag)
public Set<Holder<Enchantment>>
a()
keySet()
method_57534()
getEnchantments()
public Set<it.unimi.dsi.fastutil.objects.Object2IntMap$Entry<Holder<Enchantment>>>
b()
entrySet()
method_57539()
getEnchantmentEntries()
public int
c()
size()
method_57541()
getSize()
public boolean
d()
isEmpty()
method_57543()
isEmpty()