Uses of Record Class
net.minecraft.world.entity.ai.attributes.AttributeModifier
Packages that use AttributeModifier
Package
Description
-
Uses of AttributeModifier in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type AttributeModifierModifier and TypeFieldDescriptionstatic final StreamCodec<io.netty.buffer.ByteBuf, AttributeModifier> ClientboundUpdateAttributesPacket.AttributeSnapshot.MODIFIER_STREAM_CODECprivate final Collection<AttributeModifier> ClientboundUpdateAttributesPacket.AttributeSnapshot.modifiersThe field for themodifiersrecord component.Methods in net.minecraft.network.protocol.game that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.modifiers()Returns the value of themodifiersrecord component.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type AttributeModifierModifierConstructorDescriptionAttributeSnapshot(Holder<Attribute> attribute, double base, Collection<AttributeModifier> modifiers) Creates an instance of aAttributeSnapshotrecord class. -
Uses of AttributeModifier in net.minecraft.server.level
Fields in net.minecraft.server.level declared as AttributeModifierModifier and TypeFieldDescriptionprivate static final AttributeModifierServerPlayer.CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIERprivate static final AttributeModifierServerPlayer.CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER -
Uses of AttributeModifier in net.minecraft.world.effect
Methods in net.minecraft.world.effect that return AttributeModifierMethod parameters in net.minecraft.world.effect with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidMobEffect.createModifiers(int p_316803_, BiConsumer<Holder<Attribute>, AttributeModifier> p_316902_) -
Uses of AttributeModifier in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as AttributeModifierModifier and TypeFieldDescriptionprivate static final AttributeModifierLivingEntity.SPEED_MODIFIER_SPRINTING -
Uses of AttributeModifier in net.minecraft.world.entity.ai.attributes
Fields in net.minecraft.world.entity.ai.attributes with type parameters of type AttributeModifierModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AttributeModifier> AttributeModifier.CODECstatic final com.mojang.serialization.MapCodec<AttributeModifier> AttributeModifier.MAP_CODECprivate final Map<ResourceLocation, AttributeModifier> AttributeInstance.modifierByIdprivate final Map<AttributeModifier.Operation, Map<ResourceLocation, AttributeModifier>> AttributeInstance.modifiersByOperationprivate final Map<ResourceLocation, AttributeModifier> AttributeInstance.permanentModifiersstatic final StreamCodec<io.netty.buffer.ByteBuf, AttributeModifier> AttributeModifier.STREAM_CODECMethods in net.minecraft.world.entity.ai.attributes that return AttributeModifierModifier and TypeMethodDescriptionAttributeInstance.getModifier(ResourceLocation p_351007_) static AttributeModifierAttributeModifier.load(CompoundTag p_22213_) Methods in net.minecraft.world.entity.ai.attributes that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionAttributeInstance.getModifiers()(package private) Map<ResourceLocation, AttributeModifier> AttributeInstance.getModifiers(AttributeModifier.Operation p_22105_) private Collection<AttributeModifier> AttributeInstance.getModifiersOrEmpty(AttributeModifier.Operation p_22117_) Methods in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifierModifier and TypeMethodDescriptionprivate voidAttributeInstance.addModifier(AttributeModifier p_22134_) voidAttributeInstance.addOrReplacePermanentModifier(AttributeModifier p_353041_) voidAttributeInstance.addOrUpdateTransientModifier(AttributeModifier p_316482_) voidAttributeInstance.addPermanentModifier(AttributeModifier p_22126_) voidAttributeInstance.addTransientModifier(AttributeModifier p_22119_) voidAttributeInstance.removeModifier(AttributeModifier p_22131_) Method parameters in net.minecraft.world.entity.ai.attributes with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidAttributeMap.addTransientAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_345244_) voidAttributeMap.removeAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) -
Uses of AttributeModifier in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as AttributeModifierModifier and TypeFieldDescriptionprivate static final AttributeModifierShulker.COVERED_ARMOR_MODIFIERprivate static final AttributeModifierEnderMan.SPEED_MODIFIER_ATTACKINGprivate static final AttributeModifierZombifiedPiglin.SPEED_MODIFIER_ATTACKINGprivate static final AttributeModifierZombie.SPEED_MODIFIER_BABYprivate static final AttributeModifierWitch.SPEED_MODIFIER_DRINKINGprivate static final AttributeModifierStrider.SUFFOCATING_MODIFIERprivate static final AttributeModifier -
Uses of AttributeModifier in net.minecraft.world.entity.monster.piglin
Fields in net.minecraft.world.entity.monster.piglin declared as AttributeModifierModifier and TypeFieldDescriptionprivate static final AttributeModifierPiglin.SPEED_MODIFIER_BABY -
Uses of AttributeModifier in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type AttributeModifierModifier and TypeMethodDescriptionprivate voidItemStack.addModifierTooltip(Consumer<Component> p_331062_, Player p_330317_, Holder<Attribute> p_330626_, AttributeModifier p_331252_) Method parameters in net.minecraft.world.item with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidItemStack.forEachModifier(EquipmentSlotGroup p_348610_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348516_) voidItemStack.forEachModifier(EquipmentSlot p_332001_, BiConsumer<Holder<Attribute>, AttributeModifier> p_330882_) -
Uses of AttributeModifier in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as AttributeModifierModifier and TypeFieldDescriptionprivate final AttributeModifierItemAttributeModifiers.Entry.modifierThe field for themodifierrecord component.Methods in net.minecraft.world.item.component that return AttributeModifierModifier and TypeMethodDescriptionItemAttributeModifiers.Entry.modifier()Returns the value of themodifierrecord component.Methods in net.minecraft.world.item.component with parameters of type AttributeModifierModifier 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_) Method parameters in net.minecraft.world.item.component with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidItemAttributeModifiers.forEach(EquipmentSlotGroup p_348576_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348660_) voidItemAttributeModifiers.forEach(EquipmentSlot p_332158_, BiConsumer<Holder<Attribute>, AttributeModifier> p_331684_) Constructors in net.minecraft.world.item.component with parameters of type AttributeModifierModifierConstructorDescriptionEntry(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Creates an instance of aEntryrecord class. -
Uses of AttributeModifier in net.minecraft.world.item.enchantment
Method parameters in net.minecraft.world.item.enchantment with type arguments of type AttributeModifierModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.forEachModifier(ItemStack p_348634_, EquipmentSlotGroup p_348528_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348554_) static voidEnchantmentHelper.forEachModifier(ItemStack p_345685_, EquipmentSlot p_345123_, BiConsumer<Holder<Attribute>, AttributeModifier> p_345061_) -
Uses of AttributeModifier in net.minecraft.world.item.enchantment.effects
Methods in net.minecraft.world.item.enchantment.effects that return AttributeModifierModifier and TypeMethodDescriptionEnchantmentAttributeEffect.getModifier(int p_345225_, StringRepresentable p_350734_) Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type AttributeModifierModifier 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
Methods in net.neoforged.neoforge.event with parameters of type AttributeModifierModifier and TypeMethodDescriptionbooleanItemAttributeModifierEvent.addModifier(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a new attribute modifier to the given stack.(package private) booleanItemAttributeModifierEvent.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.voidItemAttributeModifierEvent.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
Fields in net.neoforged.neoforge.oldtest.item declared as AttributeModifierModifier and TypeFieldDescriptionprivate static final AttributeModifierMayFlyAttributeTest.MODIFIER