Uses of Class
net.minecraft.world.entity.ai.attributes.Attribute
Packages that use Attribute
Package
Description
-
Uses of Attribute in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type AttributeModifier and TypeFieldDescriptionItemAttributeModifiersPredicate.EntryPredicate.attributeThe field for theattributerecord component.Methods in net.minecraft.advancements.critereon that return types with arguments of type AttributeModifier and TypeMethodDescriptionItemAttributeModifiersPredicate.EntryPredicate.attribute()Returns the value of theattributerecord component.Constructor parameters in net.minecraft.advancements.critereon with type arguments of type AttributeModifierConstructorDescriptionEntryPredicate(Optional<HolderSet<Attribute>> attribute, Optional<ResourceLocation> id, MinMaxBounds.Doubles amount, Optional<AttributeModifier.Operation> operation, Optional<EquipmentSlotGroup> slot) Creates an instance of aEntryPredicaterecord class. -
Uses of Attribute in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return types with arguments of type AttributeModifier and TypeMethodDescriptionstatic Holder.Reference<Attribute> ResourceArgument.getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248753_, String p_251157_) -
Uses of Attribute in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type Attribute -
Uses of Attribute in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type AttributeModifier and TypeFieldDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.attributeThe field for theattributerecord component.Methods in net.minecraft.network.protocol.game that return types with arguments of type AttributeModifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.attribute()Returns the value of theattributerecord component.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type AttributeModifierConstructorDescriptionAttributeSnapshot(Holder<Attribute> attribute, double base, Collection<AttributeModifier> modifiers) Creates an instance of aAttributeSnapshotrecord class. -
Uses of Attribute in net.minecraft.server.commands
Method parameters in net.minecraft.server.commands with type arguments of type AttributeModifier and TypeMethodDescriptionprivate static intAttributeCommand.addModifier(CommandSourceStack p_136470_, Entity p_136471_, Holder<Attribute> p_251636_, ResourceLocation p_350414_, double p_136475_, AttributeModifier.Operation p_136476_) private static intAttributeCommand.getAttributeBase(CommandSourceStack p_248780_, Entity p_251083_, Holder<Attribute> p_250388_, double p_250194_) private static ComponentAttributeCommand.getAttributeDescription(Holder<Attribute> p_250602_) private static AttributeInstanceAttributeCommand.getAttributeInstance(Entity p_252177_, Holder<Attribute> p_249942_) private static intAttributeCommand.getAttributeModifier(CommandSourceStack p_136464_, Entity p_136465_, Holder<Attribute> p_250680_, ResourceLocation p_350277_, double p_136468_) private static intAttributeCommand.getAttributeValue(CommandSourceStack p_251776_, Entity p_249647_, Holder<Attribute> p_250986_, double p_251395_) private static LivingEntityAttributeCommand.getEntityWithAttribute(Entity p_252105_, Holder<Attribute> p_248921_) private static intAttributeCommand.removeModifier(CommandSourceStack p_136459_, Entity p_136460_, Holder<Attribute> p_250830_, ResourceLocation p_350686_) private static intAttributeCommand.setAttributeBase(CommandSourceStack p_248556_, Entity p_248620_, Holder<Attribute> p_249456_, double p_252212_) -
Uses of Attribute in net.minecraft.world.effect
Fields in net.minecraft.world.effect with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Holder<Attribute>, MobEffect.AttributeTemplate> MobEffect.attributeModifiersMethod parameters in net.minecraft.world.effect with type arguments of type AttributeModifier and TypeMethodDescriptionMobEffect.addAttributeModifier(Holder<Attribute> p_316656_, ResourceLocation p_350368_, double p_19475_, AttributeModifier.Operation p_19476_) voidMobEffect.createModifiers(int p_316803_, BiConsumer<Holder<Attribute>, AttributeModifier> p_316902_) -
Uses of Attribute in net.minecraft.world.entity
Method parameters in net.minecraft.world.entity with type arguments of type AttributeModifier and TypeMethodDescriptionLivingEntity.getAttribute(Holder<Attribute> p_316333_) doubleLivingEntity.getAttributeBaseValue(Holder<Attribute> p_248605_) doubleLivingEntity.getAttributeValue(Holder<Attribute> p_251296_) private voidLivingEntity.onAttributeUpdated(Holder<Attribute> p_316778_) -
Uses of Attribute in net.minecraft.world.entity.ai.attributes
Subclasses of Attribute in net.minecraft.world.entity.ai.attributesFields in net.minecraft.world.entity.ai.attributes with type parameters of type AttributeModifier and TypeFieldDescriptionAttributes.ARMORAttributes.ARMOR_TOUGHNESSAttributes.ATTACK_DAMAGEAttributes.ATTACK_KNOCKBACKAttributes.ATTACK_SPEEDAttributeInstance.attributeprivate final Map<Holder<Attribute>, AttributeInstance> AttributeMap.attributesAttributes.BLOCK_BREAK_SPEEDAttributes.BLOCK_INTERACTION_RANGEprivate final Map<Holder<Attribute>, AttributeInstance> AttributeSupplier.Builder.builderAttributes.BURNING_TIMEAttribute.CODECAttributes.ENTITY_INTERACTION_RANGEAttributes.EXPLOSION_KNOCKBACK_RESISTANCEAttributes.FALL_DAMAGE_MULTIPLIERAttributes.FLYING_SPEEDAttributes.FOLLOW_RANGEAttributes.GRAVITYprivate final Map<Holder<Attribute>, AttributeInstance> AttributeSupplier.instancesAttributes.JUMP_STRENGTHAttributes.KNOCKBACK_RESISTANCEAttributes.LUCKAttributes.MAX_ABSORPTIONAttributes.MAX_HEALTHAttributes.MINING_EFFICIENCYAttributes.MOVEMENT_EFFICIENCYAttributes.MOVEMENT_SPEEDAttributes.OXYGEN_BONUSAttributes.SAFE_FALL_DISTANCEAttributes.SCALEAttributes.SNEAKING_SPEEDAttributes.SPAWN_REINFORCEMENTS_CHANCEAttributes.STEP_HEIGHTstatic final StreamCodec<RegistryFriendlyByteBuf, Holder<Attribute>> Attribute.STREAM_CODECAttributes.SUBMERGED_MINING_SPEEDAttributes.SWEEPING_DAMAGE_RATIOAttributes.WATER_MOVEMENT_EFFICIENCYMethods in net.minecraft.world.entity.ai.attributes that return AttributeModifier and TypeMethodDescriptionAttribute.setSentiment(Attribute.Sentiment p_347714_) Attribute.setSyncable(boolean p_22085_) Methods in net.minecraft.world.entity.ai.attributes that return types with arguments of type AttributeMethods in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifier and TypeMethodDescriptionMethod parameters in net.minecraft.world.entity.ai.attributes with type arguments of type AttributeModifier and TypeMethodDescriptionvoidAttributeMap.addTransientAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_345244_) private AttributeInstanceAttributeSupplier.createInstance(Consumer<AttributeInstance> p_22251_, Holder<Attribute> p_316258_) private AttributeInstanceAttributeSupplier.getAttributeInstance(Holder<Attribute> p_316859_) doubleAttributeMap.getBaseValue(Holder<Attribute> p_316270_) doubleAttributeSupplier.getBaseValue(Holder<Attribute> p_316396_) AttributeMap.getInstance(Holder<Attribute> p_250010_) doubleAttributeMap.getModifierValue(Holder<Attribute> p_251534_, ResourceLocation p_350464_) doubleAttributeSupplier.getModifierValue(Holder<Attribute> p_316754_, ResourceLocation p_350708_) doubledoublebooleanAttributeMap.hasAttribute(Holder<Attribute> p_248893_) booleanAttributeSupplier.Builder.hasAttribute(Holder<Attribute> attribute) booleanAttributeSupplier.hasAttribute(Holder<Attribute> p_316617_) booleanAttributeMap.hasModifier(Holder<Attribute> p_250299_, ResourceLocation p_350963_) booleanAttributeSupplier.hasModifier(Holder<Attribute> p_316471_, ResourceLocation p_350394_) voidAttributeMap.removeAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) Constructor parameters in net.minecraft.world.entity.ai.attributes with type arguments of type AttributeModifierConstructorDescriptionAttributeInstance(Holder<Attribute> p_316357_, Consumer<AttributeInstance> p_22098_) (package private)AttributeSupplier(Map<Holder<Attribute>, AttributeInstance> p_22243_) -
Uses of Attribute in net.minecraft.world.entity.animal.horse
Method parameters in net.minecraft.world.entity.animal.horse with type arguments of type AttributeModifier and TypeMethodDescriptionprivate voidAbstractHorse.setOffspringAttribute(AgeableMob p_273163_, AbstractHorse p_273784_, Holder<Attribute> p_316573_, double p_272663_, double p_273405_) -
Uses of Attribute in net.minecraft.world.item
Method parameters in net.minecraft.world.item with type arguments of type AttributeModifier and TypeMethodDescriptionprivate voidItemStack.addModifierTooltip(Consumer<Component> p_331062_, Player p_330317_, Holder<Attribute> p_330626_, AttributeModifier p_331252_) voidItemStack.forEachModifier(EquipmentSlotGroup p_348610_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348516_) voidItemStack.forEachModifier(EquipmentSlot p_332001_, BiConsumer<Holder<Attribute>, AttributeModifier> p_330882_) -
Uses of Attribute in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component with type parameters of type AttributeModifier and TypeFieldDescriptionItemAttributeModifiers.Entry.attributeThe field for theattributerecord component.Methods in net.minecraft.world.item.component that return types with arguments of type AttributeModifier and TypeMethodDescriptionItemAttributeModifiers.Entry.attribute()Returns the value of theattributerecord component.Method parameters in net.minecraft.world.item.component with type arguments of type AttributeModifier and TypeMethodDescriptionItemAttributeModifiers.Builder.add(Holder<Attribute> p_330324_, AttributeModifier p_331766_, EquipmentSlotGroup p_331205_) voidItemAttributeModifiers.forEach(EquipmentSlotGroup p_348576_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348660_) voidItemAttributeModifiers.forEach(EquipmentSlot p_332158_, BiConsumer<Holder<Attribute>, AttributeModifier> p_331684_) booleanItemAttributeModifiers.Entry.matches(Holder<Attribute> p_350582_, ResourceLocation p_350416_) ItemAttributeModifiers.withModifierAdded(Holder<Attribute> p_330266_, AttributeModifier p_331954_, EquipmentSlotGroup p_332175_) Constructor parameters in net.minecraft.world.item.component with type arguments of type AttributeModifierConstructorDescriptionEntry(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Creates an instance of aEntryrecord class. -
Uses of Attribute in net.minecraft.world.item.enchantment
Method parameters in net.minecraft.world.item.enchantment with type arguments of type AttributeModifier 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 Attribute in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects with type parameters of type AttributeModifier and TypeFieldDescriptionEnchantmentAttributeEffect.attributeThe field for theattributerecord component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type AttributeModifier and TypeMethodDescriptionEnchantmentAttributeEffect.attribute()Returns the value of theattributerecord component.private com.google.common.collect.HashMultimap<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap(int p_346033_, EquipmentSlot p_350290_) Constructor parameters in net.minecraft.world.item.enchantment.effects with type arguments of type AttributeModifierConstructorDescriptionEnchantmentAttributeEffect(ResourceLocation id, Holder<Attribute> attribute, LevelBasedValue amount, AttributeModifier.Operation operation) Creates an instance of aEnchantmentAttributeEffectrecord class. -
Uses of Attribute in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type AttributeModifier and TypeFieldDescriptionSetAttributesFunction.Modifier.attributeThe field for theattributerecord component.SetAttributesFunction.ModifierBuilder.attributeMethods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type AttributeModifier and TypeMethodDescriptionSetAttributesFunction.Modifier.attribute()Returns the value of theattributerecord component.Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type AttributeModifier and TypeMethodDescriptionSetAttributesFunction.modifier(ResourceLocation p_350454_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type AttributeModifierConstructorDescription(package private)Modifier(ResourceLocation id, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlotGroup> slots) Creates an instance of aModifierrecord class.ModifierBuilder(ResourceLocation p_350927_, Holder<Attribute> p_298853_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_) -
Uses of Attribute in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type AttributeModifier and TypeFieldDescriptionprivate static final DeferredRegister<Attribute> NeoForgeMod.ATTRIBUTESNeoForgeMod.CREATIVE_FLIGHTGrants the player the ability to use creative flight when not in creative mode.NeoForgeMod.NAMETAG_DISTANCENeoForgeMod.SWIM_SPEED -
Uses of Attribute in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event with type parameters of type AttributeModifier and TypeFieldDescriptionItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key.attrThe field for theattrrecord component.Methods in net.neoforged.neoforge.event that return types with arguments of type AttributeModifier and TypeMethodDescriptionItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key.attr()Returns the value of theattrrecord component.Method parameters in net.neoforged.neoforge.event with type arguments of type AttributeModifier 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.booleanItemAttributeModifierEvent.removeAllModifiersFor(Holder<Attribute> attribute) Removes all modifiers for the given attribute.(package private) booleanItemAttributeModifierEvent.ItemAttributeModifiersBuilder.removeModifier(Holder<Attribute> attribute, ResourceLocation id) Removes a modifier for the target attribute with the given id.booleanItemAttributeModifierEvent.removeModifier(Holder<Attribute> attribute, ResourceLocation id) Removes an attribute modifier for the target attribute by idvoidItemAttributeModifierEvent.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.Constructor parameters in net.neoforged.neoforge.event with type arguments of type AttributeModifierConstructorDescriptionprivateKey(Holder<Attribute> attr, ResourceLocation id) Creates an instance of aKeyrecord class. -
Uses of Attribute in net.neoforged.neoforge.event.entity
Method parameters in net.neoforged.neoforge.event.entity with type arguments of type AttributeModifier and TypeMethodDescriptionvoidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) voidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute, double value) booleanEntityAttributeModificationEvent.has(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) -
Uses of Attribute in net.neoforged.neoforge.registries
Method parameters in net.neoforged.neoforge.registries with type arguments of type Attribute