Uses of Enum Class
net.minecraft.world.entity.EquipmentSlotGroup
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of EquipmentSlotGroup in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate final Optional
<EquipmentSlotGroup> ItemAttributeModifiersPredicate.EntryPredicate.slot
The field for theslot
record component.Modifier and TypeMethodDescriptionItemAttributeModifiersPredicate.EntryPredicate.slot()
Returns the value of theslot
record component. -
Uses of EquipmentSlotGroup in net.minecraft.world.entity
Modifier 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
Modifier and TypeMethodDescriptionstatic EquipmentSlotGroup
EquipmentSlotGroup.bySlot
(EquipmentSlot p_339603_) 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
Modifier and TypeMethodDescriptionvoid
ItemStack.forEachModifier
(EquipmentSlotGroup p_348610_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348516_) -
Uses of EquipmentSlotGroup in net.minecraft.world.item.component
Modifier and TypeFieldDescriptionprivate final EquipmentSlotGroup
ItemAttributeModifiers.Entry.slot
The field for theslot
record component.Modifier and TypeMethodDescriptionItemAttributeModifiers.Entry.slot()
Returns the value of theslot
record component.Modifier and TypeMethodDescriptionItemAttributeModifiers.Builder.add
(Holder<Attribute> p_330324_, AttributeModifier p_331766_, EquipmentSlotGroup p_331205_) void
ItemAttributeModifiers.forEach
(EquipmentSlotGroup p_348576_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348660_) ItemAttributeModifiers.withModifierAdded
(Holder<Attribute> p_330266_, AttributeModifier p_331954_, EquipmentSlotGroup p_332175_) ModifierConstructorDescriptionEntry
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Creates an instance of aEntry
record class. -
Uses of EquipmentSlotGroup in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionprivate final List
<EquipmentSlotGroup> Enchantment.EnchantmentDefinition.slots
The field for theslots
record component.Modifier and TypeMethodDescriptionEnchantment.EnchantmentDefinition.slots()
Returns the value of theslots
record component.Modifier and TypeMethodDescriptionEnchantment.definition
(HolderSet<Item> p_345097_, int p_335557_, int p_336051_, Enchantment.Cost p_336176_, Enchantment.Cost p_335380_, int p_335569_, EquipmentSlotGroup... p_345444_) Enchantment.definition
(HolderSet<Item> p_345738_, HolderSet<Item> p_345428_, int p_335506_, int p_335598_, Enchantment.Cost p_336185_, Enchantment.Cost p_335768_, int p_335409_, EquipmentSlotGroup... p_344907_) static void
EnchantmentHelper.forEachModifier
(ItemStack p_348634_, EquipmentSlotGroup p_348528_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348554_) ModifierConstructorDescriptionEnchantmentDefinition
(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
Modifier 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
Modifier and TypeMethodDescriptionSetAttributesFunction.Modifier.slots()
Returns the value of theslots
record component.Modifier and TypeMethodDescriptionSetAttributesFunction.ModifierBuilder.forSlot
(EquipmentSlotGroup p_332133_) ModifierConstructorDescription(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.client.event
Modifier and TypeFieldDescriptionprivate @Nullable Set
<EquipmentSlotGroup> GatherSkippedAttributeTooltipsEvent.skippedGroups
Modifier and TypeMethodDescriptionprotected Set
<EquipmentSlotGroup> GatherSkippedAttributeTooltipsEvent.getSkippedGroups()
InitializesGatherSkippedAttributeTooltipsEvent.skippedGroups
if necessary, and returns it.Modifier and TypeMethodDescriptionboolean
GatherSkippedAttributeTooltipsEvent.isSkipped
(EquipmentSlotGroup group) Checks if a given group is skipped or not.void
GatherSkippedAttributeTooltipsEvent.skipGroup
(EquipmentSlotGroup group) Marks an entireEquipmentSlotGroup
as skipped, preventing all modifiers for that group from showing. -
Uses of EquipmentSlotGroup in net.neoforged.neoforge.common.util
Modifier 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
Modifier 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.(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.