Uses of Enum Class
net.minecraft.world.entity.EquipmentSlotGroup
Packages that use EquipmentSlotGroup
Package
Description
-
Uses of EquipmentSlotGroup in net.minecraft.core.component.predicates
Fields in net.minecraft.core.component.predicates with type parameters of type EquipmentSlotGroupModifier and TypeFieldDescriptionprivate final Optional
<EquipmentSlotGroup> AttributeModifiersPredicate.EntryPredicate.slot
The field for theslot
record component.Methods in net.minecraft.core.component.predicates that return types with arguments of type EquipmentSlotGroupModifier and TypeMethodDescriptionAttributeModifiersPredicate.EntryPredicate.slot()
Returns the value of theslot
record component. -
Uses of EquipmentSlotGroup in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type EquipmentSlotGroupModifier and TypeFieldDescriptionstatic final IntFunction
<EquipmentSlotGroup> EquipmentSlotGroup.BY_ID
static final com.mojang.serialization.Codec
<EquipmentSlotGroup> EquipmentSlotGroup.CODEC
static final StreamCodec
<io.netty.buffer.ByteBuf, EquipmentSlotGroup> EquipmentSlotGroup.STREAM_CODEC
Methods in net.minecraft.world.entity that return EquipmentSlotGroupModifier and TypeMethodDescriptionstatic EquipmentSlotGroup
EquipmentSlotGroup.bySlot
(EquipmentSlot pSlot) static EquipmentSlotGroup
Returns the enum constant of this class with the specified name.static EquipmentSlotGroup[]
EquipmentSlotGroup.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of EquipmentSlotGroup in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type EquipmentSlotGroupModifier and TypeMethodDescriptionvoid
ItemStack.forEachModifier
(EquipmentSlotGroup p_348610_, org.apache.commons.lang3.function.TriConsumer<Holder<Attribute>, AttributeModifier, ItemAttributeModifiers.Display> p_415655_) -
Uses of EquipmentSlotGroup in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as EquipmentSlotGroupModifier and TypeFieldDescriptionprivate final EquipmentSlotGroup
ItemAttributeModifiers.Entry.slot
The field for theslot
record component.Methods in net.minecraft.world.item.component that return EquipmentSlotGroupModifier and TypeMethodDescriptionItemAttributeModifiers.Entry.slot()
Returns the value of theslot
record component.Methods in net.minecraft.world.item.component with parameters of type EquipmentSlotGroupModifier and TypeMethodDescriptionItemAttributeModifiers.Builder.add
(Holder<Attribute> pAttribute, AttributeModifier pModifier, EquipmentSlotGroup pSlot) ItemAttributeModifiers.Builder.add
(Holder<Attribute> pAttribute, AttributeModifier pModifier, EquipmentSlotGroup pSlot, ItemAttributeModifiers.Display pDisplay) void
ItemAttributeModifiers.forEach
(EquipmentSlotGroup pSlotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) void
ItemAttributeModifiers.forEach
(EquipmentSlotGroup p_416672_, org.apache.commons.lang3.function.TriConsumer<Holder<Attribute>, AttributeModifier, ItemAttributeModifiers.Display> p_416076_) ItemAttributeModifiers.withModifierAdded
(Holder<Attribute> pAttribute, AttributeModifier pModifier, EquipmentSlotGroup pSlot) Constructors in net.minecraft.world.item.component with parameters of type EquipmentSlotGroupModifierConstructorDescriptionEntry
(Holder<Attribute> p_330366_, AttributeModifier p_332188_, EquipmentSlotGroup p_331685_) Entry
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot, ItemAttributeModifiers.Display display) Creates an instance of aEntry
record class. -
Uses of EquipmentSlotGroup in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment with type parameters of type EquipmentSlotGroupModifier and TypeFieldDescriptionprivate final List
<EquipmentSlotGroup> Enchantment.EnchantmentDefinition.slots
The field for theslots
record component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type EquipmentSlotGroupModifier and TypeMethodDescriptionEnchantment.EnchantmentDefinition.slots()
Returns the value of theslots
record component.Methods in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotGroupModifier and TypeMethodDescriptionEnchantment.definition
(HolderSet<Item> pSupportedItems, int pWeight, int pMaxLevel, Enchantment.Cost pMinCost, Enchantment.Cost pMaxCost, int pAnvilCost, EquipmentSlotGroup... pSlots) Enchantment.definition
(HolderSet<Item> pSupportedItems, HolderSet<Item> pPrimaryItems, int pWeight, int pMaxLevel, Enchantment.Cost pMinCost, Enchantment.Cost pMaxCost, int pAnvilCost, EquipmentSlotGroup... pSlots) static void
EnchantmentHelper.forEachModifier
(ItemStack pStack, EquipmentSlotGroup pSlotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) Constructor parameters in net.minecraft.world.item.enchantment with type arguments of type EquipmentSlotGroupModifierConstructorDescriptionEnchantmentDefinition
(HolderSet<Item> supportedItems, Optional<HolderSet<Item>> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, List<EquipmentSlotGroup> slots) Creates an instance of aEnchantmentDefinition
record class. -
Uses of EquipmentSlotGroup in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type EquipmentSlotGroupModifier and TypeFieldDescriptionprivate final List
<EquipmentSlotGroup> SetAttributesFunction.Modifier.slots
The field for theslots
record component.private final Set
<EquipmentSlotGroup> SetAttributesFunction.ModifierBuilder.slots
private static final com.mojang.serialization.Codec
<List<EquipmentSlotGroup>> SetAttributesFunction.Modifier.SLOTS_CODEC
Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type EquipmentSlotGroupModifier and TypeMethodDescriptionSetAttributesFunction.Modifier.slots()
Returns the value of theslots
record component.Methods in net.minecraft.world.level.storage.loot.functions with parameters of type EquipmentSlotGroupModifier and TypeMethodDescriptionSetAttributesFunction.ModifierBuilder.forSlot
(EquipmentSlotGroup pSlot) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type EquipmentSlotGroupModifierConstructorDescription(package private)
Modifier
(ResourceLocation id, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlotGroup> slots) Creates an instance of aModifier
record class. -
Uses of EquipmentSlotGroup in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type EquipmentSlotGroupModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> AttributeUtil.getSortedModifiers
(ItemStack stack, EquipmentSlotGroup slot) Returns a sorted, mutableMultimap
containing all the attribute modifiers on an item stack for the given group. -
Uses of EquipmentSlotGroup in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event with type parameters of type EquipmentSlotGroupModifier and TypeFieldDescriptionprivate @Nullable Set
<EquipmentSlotGroup> GatherSkippedAttributeTooltipsEvent.skippedGroups
Methods in net.neoforged.neoforge.event that return types with arguments of type EquipmentSlotGroupModifier and TypeMethodDescriptionprotected Set
<EquipmentSlotGroup> GatherSkippedAttributeTooltipsEvent.getSkippedGroups()
InitializesGatherSkippedAttributeTooltipsEvent.skippedGroups
if necessary, and returns it.Methods in net.neoforged.neoforge.event with parameters of type EquipmentSlotGroupModifier and TypeMethodDescriptionboolean
ItemAttributeModifierEvent.addModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a new attribute modifier to the given stack.(package private) boolean
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.addModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Attempts to add a new modifier, refusing if one is already present with the same id.boolean
GatherSkippedAttributeTooltipsEvent.isSkipped
(EquipmentSlotGroup group) Checks if a given group is skipped or not.(package private) ItemAttributeModifiers.Entry
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.replaceModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a modifier to the list, replacing any existing modifiers with the same id.void
ItemAttributeModifierEvent.replaceModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a new attribute modifier to the given stack, optionally replacing any existing modifiers with the same id.void
GatherSkippedAttributeTooltipsEvent.skipGroup
(EquipmentSlotGroup group) Marks an entireEquipmentSlotGroup
as skipped, preventing all modifiers for that group from showing.