Uses of Enum Class
net.minecraft.component.type.AttributeModifierSlot
Package
Description
-
Uses of AttributeModifierSlot in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final AttributeModifierSlot
AttributeModifiersComponent.Entry.slot
The field for theslot
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AttributeModifierSlot> AttributeModifierSlot.CODEC
static final IntFunction
<AttributeModifierSlot> AttributeModifierSlot.ID_TO_VALUE
static final PacketCodec
<ByteBuf, AttributeModifierSlot> AttributeModifierSlot.PACKET_CODEC
Modifier and TypeMethodDescriptionstatic AttributeModifierSlot
AttributeModifierSlot.forEquipmentSlot
(EquipmentSlot slot) AttributeModifiersComponent.Entry.slot()
Returns the value of theslot
record component.static AttributeModifierSlot
Returns the enum constant of this class with the specified name.static AttributeModifierSlot[]
AttributeModifierSlot.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionAttributeModifiersComponent.Builder.add
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) void
AttributeModifiersComponent.applyModifiers
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) AttributeModifiersComponent.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) ModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Uses of AttributeModifierSlot in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate final List
<AttributeModifierSlot> Enchantment.Definition.slots
The field for theslots
record component.Modifier and TypeMethodDescriptionEnchantment.Definition.slots()
Returns the value of theslots
record component.Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.applyAttributeModifiers
(ItemStack stack, AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static Enchantment.Definition
Enchantment.definition
(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.Definition
Enchantment.definition
(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) ModifierConstructorDescriptionDefinition
(RegistryEntryList<Item> registryEntryList, Optional<RegistryEntryList<Item>> optional, int int2, int int3, Enchantment.Cost cost, Enchantment.Cost cost2, int int4, List<AttributeModifierSlot> list) -
Uses of AttributeModifierSlot in net.minecraft.item
Modifier and TypeMethodDescriptionvoid
ItemStack.applyAttributeModifier
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of AttributeModifierSlot in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<List<AttributeModifierSlot>> SetAttributesLootFunction.Attribute.EQUIPMENT_SLOT_LIST_CODEC
private final List
<AttributeModifierSlot> SetAttributesLootFunction.Attribute.slots
The field for theslots
record component.private final Set
<AttributeModifierSlot> SetAttributesLootFunction.AttributeBuilder.slots
Modifier and TypeMethodDescriptionSetAttributesLootFunction.Attribute.slots()
Returns the value of theslots
record component.Modifier and TypeMethodDescriptionSetAttributesLootFunction.AttributeBuilder.slot
(AttributeModifierSlot slot) ModifierConstructorDescription(package private)
Attribute
(Identifier identifier, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<AttributeModifierSlot> list) -
Uses of AttributeModifierSlot in net.minecraft.predicate.item
Modifier and TypeFieldDescriptionprivate final Optional
<AttributeModifierSlot> AttributeModifiersPredicate.AttributeModifierPredicate.slot
The field for theslot
record component.