Uses of Class
net.minecraft.component.type.ItemEnchantmentsComponent
Package
Description
-
Uses of ItemEnchantmentsComponent in net.minecraft.component
Modifier and TypeFieldDescriptionstatic final ComponentType
<ItemEnchantmentsComponent> DataComponentTypes.ENCHANTMENTS
static final ComponentType
<ItemEnchantmentsComponent> DataComponentTypes.STORED_ENCHANTMENTS
-
Uses of ItemEnchantmentsComponent in net.minecraft.component.type
Modifier and TypeFieldDescriptionstatic final ItemEnchantmentsComponent
ItemEnchantmentsComponent.DEFAULT
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<ItemEnchantmentsComponent> ItemEnchantmentsComponent.BASE_CODEC
static final com.mojang.serialization.Codec
<ItemEnchantmentsComponent> ItemEnchantmentsComponent.CODEC
static final PacketCodec
<RegistryByteBuf, ItemEnchantmentsComponent> ItemEnchantmentsComponent.PACKET_CODEC
Modifier and TypeMethodDescriptionItemEnchantmentsComponent.Builder.build()
ItemEnchantmentsComponent.withShowInTooltip
(boolean showInTooltip) -
Uses of ItemEnchantmentsComponent in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic ItemEnchantmentsComponent
EnchantmentHelper.apply
(ItemStack stack, Consumer<ItemEnchantmentsComponent.Builder> applier) static ItemEnchantmentsComponent
EnchantmentHelper.getEnchantments
(ItemStack stack) Modifier and TypeMethodDescriptionprivate static ComponentType
<ItemEnchantmentsComponent> EnchantmentHelper.getEnchantmentsComponentType
(ItemStack stack) Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.set
(ItemStack stack, ItemEnchantmentsComponent enchantments) -
Uses of ItemEnchantmentsComponent in net.minecraft.item
-
Uses of ItemEnchantmentsComponent in net.minecraft.predicate.item
Modifier and TypeMethodDescriptionEnchantmentsPredicate.Enchantments.getComponentType()
EnchantmentsPredicate.StoredEnchantments.getComponentType()
Modifier and TypeMethodDescriptionboolean
EnchantmentPredicate.test
(ItemEnchantmentsComponent enchantmentsComponent) boolean
EnchantmentsPredicate.test
(ItemStack itemStack, ItemEnchantmentsComponent itemEnchantmentsComponent) private boolean
EnchantmentPredicate.testLevel
(ItemEnchantmentsComponent enchantmentsComponent, RegistryEntry<Enchantment> enchantment)