net.minecraft.world.item.enchantment

public class ItemEnchantments

implements TooltipProvider

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

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
private static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Holder<Enchantment>>>
e
LEVELS_CODEC
field_49753
INLINE_CODEC
private static final com.mojang.serialization.Codec<ItemEnchantments>
f
FULL_CODEC
field_49754
BASE_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>>
g
enchantments
field_49389
enchantments
final boolean
h
showInTooltip
field_49390
showInTooltip

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
a(jq<ddz> arg0)
getLevel(Holder<Enchantment> arg0)
method_57536(class_6880<class_1887> arg0)
getLevel(RegistryEntry<Enchantment> enchantment)
public void
a(cxl$b arg0, Consumer<xv> arg1, czh 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)
private static <T> HolderSet<T>
a(js$a arg0, aly<kd<T>> arg1, ayk<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 ItemEnchantments
a(boolean arg0)
withTooltip(boolean arg0)
method_58449(boolean arg0)
withShowInTooltip(boolean showInTooltip)
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()