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 amplifier, BiConsumer<Holder<Attribute>, AttributeModifier> output) -
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 id) static AttributeModifierAttributeModifier.load(CompoundTag nbt) 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 operation) private Collection<AttributeModifier> AttributeInstance.getModifiersOrEmpty(AttributeModifier.Operation operation) Methods in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifierModifier and TypeMethodDescriptionprivate voidAttributeInstance.addModifier(AttributeModifier modifier) voidAttributeInstance.addOrReplacePermanentModifier(AttributeModifier modifier) voidAttributeInstance.addOrUpdateTransientModifier(AttributeModifier modifier) voidAttributeInstance.addPermanentModifier(AttributeModifier modifier) voidAttributeInstance.addTransientModifier(AttributeModifier modifier) voidAttributeInstance.removeModifier(AttributeModifier modifier) 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> modifiers) voidAttributeMap.removeAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifiers) -
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> tooltipAdder, Player player, Holder<Attribute> attribute, AttributeModifier modifier) Method parameters in net.minecraft.world.item with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidItemStack.forEachModifier(EquipmentSlotGroup slotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> action) voidItemStack.forEachModifier(EquipmentSlot equipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> action) -
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> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) ItemAttributeModifiers.withModifierAdded(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Method parameters in net.minecraft.world.item.component with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidItemAttributeModifiers.forEach(EquipmentSlotGroup slotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> action) voidItemAttributeModifiers.forEach(EquipmentSlot equipmentSlot, BiConsumer<Holder<Attribute>, AttributeModifier> action) 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 stack, EquipmentSlotGroup slotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> action) static voidEnchantmentHelper.forEachModifier(ItemStack stack, EquipmentSlot slot, BiConsumer<Holder<Attribute>, AttributeModifier> action) -
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 enchantmentLevel, StringRepresentable slot) 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 enchantmentLevel, EquipmentSlot slot) -
Uses of AttributeModifier in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type AttributeModifierModifier and TypeMethodDescriptionBooleanAttribute.toComponent(AttributeModifier modif, TooltipFlag flag) -
Uses of AttributeModifier in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type AttributeModifierModifier and TypeMethodDescriptiondefault ComponentIAttributeExtension.getDebugInfo(AttributeModifier modif, TooltipFlag flag) Computes the additional debug information for a given attribute modifier, if the flag is advanced.default MutableComponentIAttributeExtension.toComponent(AttributeModifier modif, TooltipFlag flag) Converts an attribute modifier into its tooltip representation. -
Uses of AttributeModifier in net.neoforged.neoforge.common.util
Fields in net.neoforged.neoforge.common.util declared as AttributeModifierModifier and TypeFieldDescriptionprivate final AttributeModifierAttributeUtil.BaseModifier.baseThe field for thebaserecord component.Fields in net.neoforged.neoforge.common.util with type parameters of type AttributeModifierModifier and TypeFieldDescriptionstatic final Comparator<AttributeModifier> AttributeUtil.ATTRIBUTE_MODIFIER_COMPARATORComparator forAttributeModifier.private final List<AttributeModifier> AttributeUtil.BaseModifier.childrenThe field for thechildrenrecord component.private List<AttributeModifier> AttributeUtil.MergedModifierData.childrenMethods in net.neoforged.neoforge.common.util that return AttributeModifierModifier and TypeMethodDescriptionAttributeUtil.BaseModifier.base()Returns the value of thebaserecord component.Methods in net.neoforged.neoforge.common.util that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionAttributeUtil.BaseModifier.children()Returns the value of thechildrenrecord component.static com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> AttributeUtil.getSortedModifiers(ItemStack stack, EquipmentSlotGroup slot) Returns a sorted, mutableMultimapcontaining all the attribute modifiers on an item stack for the given group.static com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> AttributeUtil.sortedMap()Creates a sortedTreeMultimapused to ensure a stable iteration order of item attribute modifiers.Method parameters in net.neoforged.neoforge.common.util with type arguments of type AttributeModifierModifier and TypeMethodDescriptionstatic voidAttributeUtil.addPotionTooltip(List<com.mojang.datafixers.util.Pair<Holder<Attribute>, AttributeModifier>> list, Consumer<Component> tooltips) Adds tooltip lines for the attribute modifiers contained in aPotionContents.static voidAttributeUtil.applyTextFor(ItemStack stack, Consumer<Component> tooltip, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack.Constructors in net.neoforged.neoforge.common.util with parameters of type AttributeModifierModifierConstructorDescriptionprivateBaseModifier(AttributeModifier base, List<AttributeModifier> children) Creates an instance of aBaseModifierrecord class.Constructor parameters in net.neoforged.neoforge.common.util with type arguments of type AttributeModifierModifierConstructorDescriptionprivateBaseModifier(AttributeModifier base, List<AttributeModifier> children) Creates an instance of aBaseModifierrecord class. -
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.(package private) ItemAttributeModifiers.EntryItemAttributeModifierEvent.ItemAttributeModifiersBuilder.replaceModifier(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a modifier to the list, replacing any existing modifiers 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.