Uses of Class
net.minecraft.world.entity.ai.attributes.Attribute
Packages that use Attribute
Package
Description
- 
Uses of Attribute in net.minecraft.commands.argumentsMethods 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.registriesFields in net.minecraft.core.registries with type parameters of type Attribute
- 
Uses of Attribute in net.minecraft.network.protocol.gameFields in net.minecraft.network.protocol.game declared as AttributeModifier and TypeFieldDescriptionprivate final AttributeClientboundUpdateAttributesPacket.AttributeSnapshot.attributeMethods in net.minecraft.network.protocol.game that return AttributeModifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.getAttribute()Constructors in net.minecraft.network.protocol.game with parameters of type AttributeModifierConstructorDescriptionAttributeSnapshot(Attribute p_179459_, double p_179460_, Collection<AttributeModifier> p_179461_) 
- 
Uses of Attribute in net.minecraft.server.commandsMethod 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_, UUID p_136473_, String p_136474_, 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_, UUID p_136467_, 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_, UUID p_136462_) private static intAttributeCommand.setAttributeBase(CommandSourceStack p_248556_, Entity p_248620_, Holder<Attribute> p_249456_, double p_252212_) 
- 
Uses of Attribute in net.minecraft.world.effectFields in net.minecraft.world.effect with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,AttributeModifierTemplate> MobEffect.attributeModifiersMethods in net.minecraft.world.effect that return types with arguments of type AttributeMethods in net.minecraft.world.effect with parameters of type AttributeModifier and TypeMethodDescriptionMobEffect.addAttributeModifier(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) 
- 
Uses of Attribute in net.minecraft.world.entityMethods in net.minecraft.world.entity with parameters of type AttributeModifier and TypeMethodDescriptionLivingEntity.getAttribute(Attribute p_21052_) doubleLivingEntity.getAttributeBaseValue(Attribute p_21173_) doubleLivingEntity.getAttributeValue(Attribute p_21134_) private voidLivingEntity.onAttributeUpdated(Attribute p_294149_) Method parameters in net.minecraft.world.entity with type arguments of type AttributeModifier and TypeMethodDescriptiondoubleLivingEntity.getAttributeBaseValue(Holder<Attribute> p_248605_) doubleLivingEntity.getAttributeValue(Holder<Attribute> p_251296_) 
- 
Uses of Attribute in net.minecraft.world.entity.ai.attributesSubclasses of Attribute in net.minecraft.world.entity.ai.attributesFields in net.minecraft.world.entity.ai.attributes declared as AttributeModifier and TypeFieldDescriptionstatic final AttributeAttributes.ARMORstatic final AttributeAttributes.ARMOR_TOUGHNESSstatic final AttributeAttributes.ATTACK_DAMAGEstatic final AttributeAttributes.ATTACK_KNOCKBACKstatic final AttributeAttributes.ATTACK_SPEEDprivate final AttributeAttributeInstance.attributestatic final AttributeAttributes.FLYING_SPEEDstatic final AttributeAttributes.FOLLOW_RANGEstatic final AttributeAttributes.JUMP_STRENGTHstatic final AttributeAttributes.KNOCKBACK_RESISTANCEstatic final AttributeAttributes.LUCKstatic final AttributeAttributes.MAX_ABSORPTIONstatic final AttributeAttributes.MAX_HEALTHstatic final AttributeAttributes.MOVEMENT_SPEEDstatic final AttributeAttributes.SPAWN_REINFORCEMENTS_CHANCEFields in net.minecraft.world.entity.ai.attributes with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,AttributeInstance> AttributeMap.attributesprivate final Map<Attribute,AttributeInstance> AttributeSupplier.Builder.builderprivate final Map<Attribute,AttributeInstance> AttributeSupplier.instancesMethods in net.minecraft.world.entity.ai.attributes that return AttributeModifier and TypeMethodDescriptionAttributeInstance.getAttribute()private static AttributeAttribute.setSyncable(boolean p_22085_) Methods in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifier and TypeMethodDescriptionprivate AttributeInstanceAttributeSupplier.createInstance(Consumer<AttributeInstance> p_22251_, Attribute p_22252_) private AttributeInstanceAttributeSupplier.getAttributeInstance(Attribute p_22261_) doubleAttributeMap.getBaseValue(Attribute p_22186_) doubleAttributeSupplier.getBaseValue(Attribute p_22254_) AttributeMap.getInstance(Attribute p_22147_) doubleAttributeMap.getModifierValue(Attribute p_22174_, UUID p_22175_) doubleAttributeSupplier.getModifierValue(Attribute p_22248_, UUID p_22249_) doubledoublebooleanAttributeMap.hasAttribute(Attribute p_22172_) booleanAttributeSupplier.Builder.hasAttribute(Attribute attribute) booleanAttributeSupplier.hasAttribute(Attribute p_22259_) booleanAttributeMap.hasModifier(Attribute p_22155_, UUID p_22156_) booleanAttributeSupplier.hasModifier(Attribute p_22256_, UUID p_22257_) private static AttributeMethod parameters in net.minecraft.world.entity.ai.attributes with type arguments of type AttributeModifier and TypeMethodDescriptionvoidAttributeMap.addTransientAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22179_) AttributeMap.getInstance(Holder<Attribute> p_250010_) doubleAttributeMap.getModifierValue(Holder<Attribute> p_251534_, UUID p_250438_) booleanAttributeMap.hasAttribute(Holder<Attribute> p_248893_) booleanAttributeMap.hasModifier(Holder<Attribute> p_250299_, UUID p_250415_) voidAttributeMap.removeAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22162_) Constructors in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifierConstructorDescriptionAttributeInstance(Attribute p_22097_, Consumer<AttributeInstance> p_22098_) Constructor parameters in net.minecraft.world.entity.ai.attributes with type arguments of type Attribute
- 
Uses of Attribute in net.minecraft.world.entity.animal.horseMethods in net.minecraft.world.entity.animal.horse with parameters of type AttributeModifier and TypeMethodDescriptionprivate voidAbstractHorse.setOffspringAttribute(AgeableMob p_273163_, AbstractHorse p_273784_, Attribute p_273681_, double p_272663_, double p_273405_) 
- 
Uses of Attribute in net.minecraft.world.itemFields in net.minecraft.world.item with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> ArmorItem.defaultModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> DiggerItem.defaultModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> SwordItem.defaultModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> TridentItem.defaultModifiersMethods in net.minecraft.world.item that return types with arguments of type AttributeModifier 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_) Methods in net.minecraft.world.item with parameters of type AttributeModifier and TypeMethodDescriptionvoidItemStack.addAttributeModifier(Attribute p_41644_, AttributeModifier p_41645_, EquipmentSlot p_41646_) 
- 
Uses of Attribute in net.minecraft.world.level.storage.loot.functionsFields 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(String p_165236_, 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(String name, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlot> slots, Optional<UUID> id) Creates an instance of aModifierrecord class.ModifierBuilder(String p_165263_, Holder<Attribute> p_298853_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_) 
- 
Uses of Attribute in net.neoforged.neoforge.commonFields in net.neoforged.neoforge.common with type parameters of type AttributeModifier and TypeFieldDescriptionprivate static final DeferredRegister<Attribute>NeoForgeMod.ATTRIBUTESNeoForgeMod.BLOCK_REACHReach Distance represents the distance at which a player may interact with the world.NeoForgeMod.ENTITY_GRAVITYNeoForgeMod.ENTITY_REACHAttack Range represents the distance at which a player may attack an entity.NeoForgeMod.NAMETAG_DISTANCENeoForgeMod.STEP_HEIGHTStep Height Addition modifies the amount of blocks an entity may walk up without jumping.NeoForgeMod.SWIM_SPEEDMethods in net.neoforged.neoforge.common that return types with arguments of type AttributeModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,AttributeModifier> CommonHooks.getAttributeModifiers(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent.Method parameters in net.neoforged.neoforge.common with type arguments of type AttributeModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,AttributeModifier> CommonHooks.getAttributeModifiers(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent.
- 
Uses of Attribute in net.neoforged.neoforge.common.extensionsMethods in net.neoforged.neoforge.common.extensions that return types with arguments of type AttributeModifier and TypeMethodDescriptiondefault com.google.common.collect.Multimap<Attribute,AttributeModifier> IItemExtension.getAttributeModifiers(EquipmentSlot slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiers
- 
Uses of Attribute in net.neoforged.neoforge.eventFields in net.neoforged.neoforge.event with type parameters of type AttributeModifier and TypeFieldDescriptionprivate @Nullable com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.modifiableModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.originalModifiersprivate com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.unmodifiableModifiersMethods in net.neoforged.neoforge.event that return types with arguments of type AttributeModifier 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.Methods in net.neoforged.neoforge.event with parameters of type AttributeModifier and TypeMethodDescriptionbooleanItemAttributeModifierEvent.addModifier(Attribute attribute, AttributeModifier modifier) Adds a new attribute modifier to the given stack.ItemAttributeModifierEvent.removeAttribute(Attribute attribute) Removes all modifiers for the given attributebooleanItemAttributeModifierEvent.removeModifier(Attribute attribute, AttributeModifier modifier) Removes a single modifier for the given attributeConstructor parameters in net.neoforged.neoforge.event with type arguments of type AttributeModifierConstructorDescriptionItemAttributeModifierEvent(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) 
- 
Uses of Attribute in net.neoforged.neoforge.event.entityMethods in net.neoforged.neoforge.event.entity with parameters of type AttributeModifier and TypeMethodDescriptionvoidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Attribute attribute) voidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Attribute attribute, double value) booleanEntityAttributeModificationEvent.has(EntityType<? extends LivingEntity> entityType, Attribute attribute) 
- 
Uses of Attribute in net.neoforged.neoforge.oldtest.entityMethods in net.neoforged.neoforge.oldtest.entity that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,AttributeModifier> GravityAttributeTest.ItemGravityStick.getDefaultAttributeModifiers(EquipmentSlot slot) 
- 
Uses of Attribute in net.neoforged.neoforge.oldtest.itemMethods in net.neoforged.neoforge.oldtest.item that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,AttributeModifier> HiddenTooltipPartsTest.TestItem.getAttributeModifiers(EquipmentSlot slot, ItemStack stack) 
- 
Uses of Attribute in net.neoforged.neoforge.registriesMethod parameters in net.neoforged.neoforge.registries with type arguments of type Attribute