Uses of Record Class
net.minecraft.world.entity.ai.attributes.AttributeModifier
Package
Description
-
Uses of AttributeModifier in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionstatic final StreamCodec
<io.netty.buffer.ByteBuf, AttributeModifier> ClientboundUpdateAttributesPacket.AttributeSnapshot.MODIFIER_STREAM_CODEC
private final Collection
<AttributeModifier> ClientboundUpdateAttributesPacket.AttributeSnapshot.modifiers
The field for themodifiers
record component.Modifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.modifiers()
Returns the value of themodifiers
record component.ModifierConstructorDescriptionAttributeSnapshot
(Holder<Attribute> attribute, double base, Collection<AttributeModifier> modifiers) Creates an instance of aAttributeSnapshot
record class. -
Uses of AttributeModifier in net.minecraft.server.level
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
ServerPlayer.CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
private static final AttributeModifier
ServerPlayer.CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
-
Uses of AttributeModifier in net.minecraft.world.effect
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
MobEffect.createModifiers
(int p_316803_, BiConsumer<Holder<Attribute>, AttributeModifier> p_316902_) -
Uses of AttributeModifier in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
LivingEntity.SPEED_MODIFIER_SPRINTING
-
Uses of AttributeModifier in net.minecraft.world.entity.ai.attributes
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AttributeModifier> AttributeModifier.CODEC
static final com.mojang.serialization.MapCodec
<AttributeModifier> AttributeModifier.MAP_CODEC
private final Map
<UUID, AttributeModifier> AttributeInstance.modifierById
private final Map
<AttributeModifier.Operation, Map<UUID, AttributeModifier>> AttributeInstance.modifiersByOperation
private final Map
<UUID, AttributeModifier> AttributeInstance.permanentModifiers
static final StreamCodec
<io.netty.buffer.ByteBuf, AttributeModifier> AttributeModifier.STREAM_CODEC
Modifier and TypeMethodDescriptionAttributeInstance.getModifier
(UUID p_22112_) static AttributeModifier
AttributeModifier.load
(CompoundTag p_22213_) Modifier and TypeMethodDescriptionAttributeInstance.getModifiers()
(package private) Map
<UUID, AttributeModifier> AttributeInstance.getModifiers
(AttributeModifier.Operation p_22105_) private Collection
<AttributeModifier> AttributeInstance.getModifiersOrEmpty
(AttributeModifier.Operation p_22117_) Modifier and TypeMethodDescriptionprivate void
AttributeInstance.addModifier
(AttributeModifier p_22134_) void
AttributeInstance.addOrUpdateTransientModifier
(AttributeModifier p_316482_) void
AttributeInstance.addPermanentModifier
(AttributeModifier p_22126_) void
AttributeInstance.addTransientModifier
(AttributeModifier p_22119_) boolean
AttributeInstance.hasModifier
(AttributeModifier p_22110_) void
AttributeInstance.removeModifier
(AttributeModifier p_22131_) -
Uses of AttributeModifier in net.minecraft.world.entity.monster
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
Shulker.COVERED_ARMOR_MODIFIER
private static final AttributeModifier
EnderMan.SPEED_MODIFIER_ATTACKING
private static final AttributeModifier
ZombifiedPiglin.SPEED_MODIFIER_ATTACKING
private static final AttributeModifier
Zombie.SPEED_MODIFIER_BABY
private static final AttributeModifier
Witch.SPEED_MODIFIER_DRINKING
private static final AttributeModifier
Strider.SUFFOCATING_MODIFIER
-
Uses of AttributeModifier in net.minecraft.world.entity.monster.piglin
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
Piglin.SPEED_MODIFIER_BABY
-
Uses of AttributeModifier in net.minecraft.world.item
Modifier and TypeMethodDescriptionprivate void
ItemStack.addModifierTooltip
(Consumer<Component> p_331062_, Player p_330317_, Holder<Attribute> p_330626_, AttributeModifier p_331252_) Modifier and TypeMethodDescriptionvoid
ItemStack.forEachModifier
(EquipmentSlot p_332001_, BiConsumer<Holder<Attribute>, AttributeModifier> p_330882_) -
Uses of AttributeModifier in net.minecraft.world.item.component
Modifier and TypeFieldDescriptionprivate final AttributeModifier
ItemAttributeModifiers.Entry.modifier
The field for themodifier
record component.Modifier and TypeMethodDescriptionItemAttributeModifiers.Entry.modifier()
Returns the value of themodifier
record component.Modifier and TypeMethodDescriptionItemAttributeModifiers.Builder.add
(Holder<Attribute> p_330324_, AttributeModifier p_331766_, EquipmentSlotGroup p_331205_) ItemAttributeModifiers.withModifierAdded
(Holder<Attribute> p_330266_, AttributeModifier p_331954_, EquipmentSlotGroup p_332175_) Modifier and TypeMethodDescriptionvoid
ItemAttributeModifiers.forEach
(EquipmentSlot p_332158_, BiConsumer<Holder<Attribute>, AttributeModifier> p_331684_) ModifierConstructorDescriptionEntry
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Creates an instance of aEntry
record class. -
Uses of AttributeModifier in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> CommonHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
.Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> CommonHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
. -
Uses of AttributeModifier in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> IItemStackExtension.getAttributeModifiers
(EquipmentSlot equipmentSlot) Returns the attribute modifiers for the given equipment slot. -
Uses of AttributeModifier in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate @Nullable com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> ItemAttributeModifierEvent.modifiableModifiers
private final com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> ItemAttributeModifierEvent.originalModifiers
private com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> ItemAttributeModifierEvent.unmodifiableModifiers
Modifier and TypeMethodDescriptionprivate com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> ItemAttributeModifierEvent.getModifiableMap()
Gets a modifiable map instance, creating it if the current map is currently unmodifiablecom.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> ItemAttributeModifierEvent.getModifiers()
Returns an unmodifiable view of the attribute multimap.com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> ItemAttributeModifierEvent.getOriginalModifiers()
Returns the attribute map before any changes from other event listeners was made.ItemAttributeModifierEvent.removeAttribute
(Holder<Attribute> attribute) Removes all modifiers for the given attributeModifier and TypeMethodDescriptionboolean
ItemAttributeModifierEvent.addModifier
(Holder<Attribute> attribute, AttributeModifier modifier) Adds a new attribute modifier to the given stack.boolean
ItemAttributeModifierEvent.removeModifier
(Holder<Attribute> attribute, AttributeModifier modifier) Removes a single modifier for the given attributeModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifiers) -
Uses of AttributeModifier in net.neoforged.neoforge.oldtest.item
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
MayFlyAttributeTest.MODIFIER