Uses of Record Class
net.minecraft.world.item.component.ItemAttributeModifiers.Entry
Package
Description
-
Uses of ItemAttributeModifiers.Entry in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate final Optional
<CollectionPredicate<ItemAttributeModifiers.Entry, ItemAttributeModifiersPredicate.EntryPredicate>> ItemAttributeModifiersPredicate.modifiers
The field for themodifiers
record component.Modifier and TypeMethodDescriptionOptional
<CollectionPredicate<ItemAttributeModifiers.Entry, ItemAttributeModifiersPredicate.EntryPredicate>> ItemAttributeModifiersPredicate.modifiers()
Returns the value of themodifiers
record component.Modifier and TypeMethodDescriptionboolean
ItemAttributeModifiersPredicate.EntryPredicate.test
(ItemAttributeModifiers.Entry p_341096_) ModifierConstructorDescriptionItemAttributeModifiersPredicate
(Optional<CollectionPredicate<ItemAttributeModifiers.Entry, ItemAttributeModifiersPredicate.EntryPredicate>> modifiers) Creates an instance of aItemAttributeModifiersPredicate
record class. -
Uses of ItemAttributeModifiers.Entry in net.minecraft.world.item.component
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemAttributeModifiers.Entry> ItemAttributeModifiers.Entry.CODEC
private final com.google.common.collect.ImmutableList.Builder
<ItemAttributeModifiers.Entry> ItemAttributeModifiers.Builder.entries
private final List
<ItemAttributeModifiers.Entry> ItemAttributeModifiers.modifiers
The field for themodifiers
record component.static final StreamCodec
<RegistryFriendlyByteBuf, ItemAttributeModifiers.Entry> ItemAttributeModifiers.Entry.STREAM_CODEC
Modifier and TypeMethodDescriptionItemAttributeModifiers.modifiers()
Returns the value of themodifiers
record component.ModifierConstructorDescriptionItemAttributeModifiers
(List<ItemAttributeModifiers.Entry> modifiers, boolean showInTooltip) Creates an instance of aItemAttributeModifiers
record class. -
Uses of ItemAttributeModifiers.Entry in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate List
<ItemAttributeModifiers.Entry> ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.entries
private Map
<ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key, ItemAttributeModifiers.Entry> ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.entriesByKey
Modifier and TypeMethodDescription(package private) List
<ItemAttributeModifiers.Entry> ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.getEntryView()
Returns an unmodifiable view of the underlying entry list.ItemAttributeModifierEvent.getModifiers()
Returns an unmodifiable view of the attribute modifier entries.Modifier and TypeMethodDescription(package private) boolean
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.removeIf
(Predicate<ItemAttributeModifiers.Entry> condition) Removes modifiers based on a condition.boolean
ItemAttributeModifierEvent.removeIf
(Predicate<ItemAttributeModifiers.Entry> condition) Removes modifiers based on a condition.