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 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
<ResourceLocation, AttributeModifier> AttributeInstance.modifierById
private final Map
<AttributeModifier.Operation, Map<ResourceLocation, AttributeModifier>> AttributeInstance.modifiersByOperation
private final Map
<ResourceLocation, AttributeModifier> AttributeInstance.permanentModifiers
static final StreamCodec
<io.netty.buffer.ByteBuf, AttributeModifier> AttributeModifier.STREAM_CODEC
Modifier and TypeMethodDescriptionAttributeInstance.getModifier
(ResourceLocation p_351007_) static AttributeModifier
AttributeModifier.load
(CompoundTag p_22213_) Modifier and TypeMethodDescriptionAttributeInstance.getModifiers()
(package private) Map
<ResourceLocation, 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.addOrReplacePermanentModifier
(AttributeModifier p_353041_) void
AttributeInstance.addOrUpdateTransientModifier
(AttributeModifier p_316482_) void
AttributeInstance.addPermanentModifier
(AttributeModifier p_22126_) void
AttributeInstance.addTransientModifier
(AttributeModifier p_22119_) void
AttributeInstance.removeModifier
(AttributeModifier p_22131_) Modifier and TypeMethodDescriptionvoid
AttributeMap.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_345244_) void
AttributeMap.removeAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) -
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
private static final AttributeModifier
-
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
(EquipmentSlotGroup p_348610_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348516_) void
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
(EquipmentSlotGroup p_348576_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348660_) void
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.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.forEachModifier
(ItemStack p_348634_, EquipmentSlotGroup p_348528_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348554_) static void
EnchantmentHelper.forEachModifier
(ItemStack p_345685_, EquipmentSlot p_345123_, BiConsumer<Holder<Attribute>, AttributeModifier> p_345061_) -
Uses of AttributeModifier in net.minecraft.world.item.enchantment.effects
Modifier and TypeMethodDescriptionEnchantmentAttributeEffect.getModifier
(int p_345225_, StringRepresentable p_350734_) Modifier and TypeMethodDescriptionprivate com.google.common.collect.HashMultimap
<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap
(int p_346033_, EquipmentSlot p_350290_) -
Uses of AttributeModifier 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.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. -
Uses of AttributeModifier in net.neoforged.neoforge.oldtest.item
Modifier and TypeFieldDescriptionprivate static final AttributeModifier
MayFlyAttributeTest.MODIFIER