Uses of Class
net.minecraft.world.entity.ai.attributes.AttributeModifier
Package
Description
-
Uses of AttributeModifier in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final Collection<AttributeModifier>
ClientboundUpdateAttributesPacket.AttributeSnapshot.modifiers
Modifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.getModifiers()
ModifierConstructorDescriptionAttributeSnapshot
(Attribute p_179459_, double p_179460_, Collection<AttributeModifier> p_179461_) -
Uses of AttributeModifier in net.minecraft.world.effect
-
Uses of AttributeModifier in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
LivingEntity.SLOW_FALLING
private 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
private final Map<UUID,
AttributeModifier> AttributeInstance.modifierById
private final Map<AttributeModifier.Operation,
Set<AttributeModifier>> AttributeInstance.modifiersByOperation
private final Set<AttributeModifier>
AttributeInstance.permanentModifiers
Modifier and TypeMethodDescriptionAttributeInstance.getModifier
(UUID p_22112_) static AttributeModifier
AttributeModifier.load
(CompoundTag p_22213_) Modifier and TypeMethodDescriptionAttributeInstance.getModifiers()
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.addPermanentModifier
(AttributeModifier p_22126_) void
AttributeInstance.addTransientModifier
(AttributeModifier p_22119_) boolean
AttributeInstance.hasModifier
(AttributeModifier p_22110_) private void
AttributeInstance.removeModifier
(AttributeModifier p_22131_) Modifier and TypeMethodDescriptionvoid
AttributeMap.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22179_) void
AttributeMap.removeAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22162_) -
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 TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,
AttributeModifier> ArmorItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> DiggerItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> SwordItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.defaultModifiers
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemStack.getAttributeModifiers
(EquipmentSlot p_41639_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ArmorItem.getDefaultAttributeModifiers
(EquipmentSlot p_40390_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> DiggerItem.getDefaultAttributeModifiers
(EquipmentSlot p_40990_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> Item.getDefaultAttributeModifiers
(EquipmentSlot p_41388_) Deprecated.com.google.common.collect.Multimap<Attribute,
AttributeModifier> SwordItem.getDefaultAttributeModifiers
(EquipmentSlot p_43274_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.getDefaultAttributeModifiers
(EquipmentSlot p_43383_) Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_41644_, AttributeModifier p_41645_, EquipmentSlot p_41646_) -
Uses of AttributeModifier in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
.Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
. -
Uses of AttributeModifier in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault com.google.common.collect.Multimap<Attribute,
AttributeModifier> IForgeItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiers -
Uses of AttributeModifier in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate @Nullable com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.modifiableModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.originalModifiers
private com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.unmodifiableModifiers
Modifier and TypeMethodDescriptionprivate com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.getModifiableMap()
Gets a modifiable map instance, creating it if the current map is currently unmodifiablecom.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.getModifiers()
Returns an unmodifiable view of the attribute multimap.com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.getOriginalModifiers()
Returns the attribute map before any changes from other event listeners was made.ItemAttributeModifierEvent.removeAttribute
(Attribute attribute) Removes all modifiers for the given attributeModifier and TypeMethodDescriptionboolean
ItemAttributeModifierEvent.addModifier
(Attribute attribute, AttributeModifier modifier) Adds a new attribute modifier to the given stack.boolean
ItemAttributeModifierEvent.removeModifier
(Attribute attribute, AttributeModifier modifier) Removes a single modifier for the given attributeModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers)