Uses of Class
net.minecraft.world.entity.ai.attributes.Attribute
Packages that use Attribute
Package
Description
-
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 declared as AttributeModifier and TypeFieldDescriptionprivate final Attribute
ClientboundUpdateAttributesPacket.AttributeSnapshot.attribute
Methods 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.commands
Method parameters in net.minecraft.server.commands with type arguments of type AttributeModifier and TypeMethodDescriptionprivate static int
AttributeCommand.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 int
AttributeCommand.getAttributeBase
(CommandSourceStack p_248780_, Entity p_251083_, Holder<Attribute> p_250388_, double p_250194_) private static Component
AttributeCommand.getAttributeDescription
(Holder<Attribute> p_250602_) private static AttributeInstance
AttributeCommand.getAttributeInstance
(Entity p_252177_, Holder<Attribute> p_249942_) private static int
AttributeCommand.getAttributeModifier
(CommandSourceStack p_136464_, Entity p_136465_, Holder<Attribute> p_250680_, UUID p_136467_, double p_136468_) private static int
AttributeCommand.getAttributeValue
(CommandSourceStack p_251776_, Entity p_249647_, Holder<Attribute> p_250986_, double p_251395_) private static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity p_252105_, Holder<Attribute> p_248921_) private static int
AttributeCommand.removeModifier
(CommandSourceStack p_136459_, Entity p_136460_, Holder<Attribute> p_250830_, UUID p_136462_) private static int
AttributeCommand.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<Attribute,
AttributeModifier> MobEffect.attributeModifiers
Methods 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.entity
Methods in net.minecraft.world.entity with parameters of type AttributeModifier and TypeMethodDescriptionLivingEntity.getAttribute
(Attribute p_21052_) double
LivingEntity.getAttributeBaseValue
(Attribute p_21173_) double
LivingEntity.getAttributeValue
(Attribute p_21134_) Method parameters in net.minecraft.world.entity with type arguments of type AttributeModifier and TypeMethodDescriptiondouble
LivingEntity.getAttributeBaseValue
(Holder<Attribute> p_248605_) double
LivingEntity.getAttributeValue
(Holder<Attribute> p_251296_) -
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 declared as AttributeModifier and TypeFieldDescriptionstatic final Attribute
Attributes.ARMOR
static final Attribute
Attributes.ARMOR_TOUGHNESS
static final Attribute
Attributes.ATTACK_DAMAGE
static final Attribute
Attributes.ATTACK_KNOCKBACK
static final Attribute
Attributes.ATTACK_SPEED
private final Attribute
AttributeInstance.attribute
static final Attribute
Attributes.FLYING_SPEED
static final Attribute
Attributes.FOLLOW_RANGE
static final Attribute
Attributes.JUMP_STRENGTH
static final Attribute
Attributes.KNOCKBACK_RESISTANCE
static final Attribute
Attributes.LUCK
static final Attribute
Attributes.MAX_HEALTH
static final Attribute
Attributes.MOVEMENT_SPEED
static final Attribute
Attributes.SPAWN_REINFORCEMENTS_CHANCE
Fields in net.minecraft.world.entity.ai.attributes with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeInstance> AttributeMap.attributes
private final Map<Attribute,
AttributeInstance> AttributeSupplier.Builder.builder
private final Map<Attribute,
AttributeInstance> AttributeSupplier.instances
Methods in net.minecraft.world.entity.ai.attributes that return AttributeModifier and TypeMethodDescriptionAttributeInstance.getAttribute()
private static Attribute
Attribute.setSyncable
(boolean p_22085_) Methods in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifier and TypeMethodDescriptionprivate AttributeInstance
AttributeSupplier.createInstance
(Consumer<AttributeInstance> p_22251_, Attribute p_22252_) private AttributeInstance
AttributeSupplier.getAttributeInstance
(Attribute p_22261_) double
AttributeMap.getBaseValue
(Attribute p_22186_) double
AttributeSupplier.getBaseValue
(Attribute p_22254_) AttributeMap.getInstance
(Attribute p_22147_) double
AttributeMap.getModifierValue
(Attribute p_22174_, UUID p_22175_) double
AttributeSupplier.getModifierValue
(Attribute p_22248_, UUID p_22249_) double
double
boolean
AttributeMap.hasAttribute
(Attribute p_22172_) boolean
AttributeSupplier.Builder.hasAttribute
(Attribute attribute) boolean
AttributeSupplier.hasAttribute
(Attribute p_22259_) boolean
AttributeMap.hasModifier
(Attribute p_22155_, UUID p_22156_) boolean
AttributeSupplier.hasModifier
(Attribute p_22256_, UUID p_22257_) private static Attribute
Method parameters in net.minecraft.world.entity.ai.attributes with type arguments of type AttributeModifier and TypeMethodDescriptionvoid
AttributeMap.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22179_) AttributeMap.getInstance
(Holder<Attribute> p_250010_) double
AttributeMap.getModifierValue
(Holder<Attribute> p_251534_, UUID p_250438_) boolean
AttributeMap.hasAttribute
(Holder<Attribute> p_248893_) boolean
AttributeMap.hasModifier
(Holder<Attribute> p_250299_, UUID p_250415_) void
AttributeMap.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.item
Fields in net.minecraft.world.item with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,
AttributeModifier> ArmorItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> DiggerItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> SwordItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.defaultModifiers
Methods 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 TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_41644_, AttributeModifier p_41645_, EquipmentSlot p_41646_) -
Uses of Attribute in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as AttributeModifier and TypeFieldDescription(package private) final Attribute
SetAttributesFunction.Modifier.attribute
private final Attribute
SetAttributesFunction.ModifierBuilder.attribute
Methods in net.minecraft.world.level.storage.loot.functions with parameters of type AttributeModifier and TypeMethodDescriptionSetAttributesFunction.modifier
(String p_165236_, Attribute p_165237_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type AttributeModifierConstructorDescription(package private)
Modifier
(String p_165250_, Attribute p_165251_, AttributeModifier.Operation p_165252_, NumberProvider p_165253_, EquipmentSlot[] p_165254_, UUID p_165255_) ModifierBuilder
(String p_165263_, Attribute p_165264_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_) -
Uses of Attribute in net.minecraftforge.common
Fields in net.minecraftforge.common with type parameters of type AttributeModifier and TypeFieldDescriptionstatic final RegistryObject<Attribute>
ForgeMod.ATTACK_RANGE
Attack Range represents the distance at which a player may attack an entity.private static final DeferredRegister<Attribute>
ForgeMod.ATTRIBUTES
static final RegistryObject<Attribute>
ForgeMod.ENTITY_GRAVITY
static final RegistryObject<Attribute>
ForgeMod.NAMETAG_DISTANCE
static final RegistryObject<Attribute>
ForgeMod.REACH_DISTANCE
Reach Distance represents the distance at which a player may interact with the world.static final RegistryObject<Attribute>
ForgeMod.STEP_HEIGHT_ADDITION
Step Height Addition modifies the amount of blocks an entity may walk up without jumping.static final RegistryObject<Attribute>
ForgeMod.SWIM_SPEED
Methods in net.minecraftforge.common that return types with arguments of type AttributeModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
.Method parameters in net.minecraftforge.common with type arguments of type AttributeModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
. -
Uses of Attribute in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions that return types with arguments of type AttributeModifier and TypeMethodDescriptiondefault com.google.common.collect.Multimap<Attribute,
AttributeModifier> IForgeItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiers -
Uses of Attribute in net.minecraftforge.debug.entity
Fields in net.minecraftforge.debug.entity with type parameters of type AttributeModifier and TypeFieldDescriptionprivate static final DeferredRegister<Attribute>
AddEntityAttributeTest.ATTRIBUTES
static final RegistryObject<Attribute>
AddEntityAttributeTest.TEST_ATTR
Methods in net.minecraftforge.debug.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.minecraftforge.debug.entity.player
Fields in net.minecraftforge.debug.entity.player with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,
AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.defaultModifiers
Methods in net.minecraftforge.debug.entity.player that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.getDefaultAttributeModifiers
(EquipmentSlot equipmentSlotType) -
Uses of Attribute in net.minecraftforge.debug.item
Methods in net.minecraftforge.debug.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.minecraftforge.event
Fields in net.minecraftforge.event with type parameters of type AttributeModifier and TypeFieldDescriptionprivate @Nullable com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.modifiableModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.originalModifiers
private com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemAttributeModifierEvent.unmodifiableModifiers
Methods in net.minecraftforge.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.minecraftforge.event with parameters of type AttributeModifier and TypeMethodDescriptionboolean
ItemAttributeModifierEvent.addModifier
(Attribute attribute, AttributeModifier modifier) Adds a new attribute modifier to the given stack.ItemAttributeModifierEvent.removeAttribute
(Attribute attribute) Removes all modifiers for the given attributeboolean
ItemAttributeModifierEvent.removeModifier
(Attribute attribute, AttributeModifier modifier) Removes a single modifier for the given attributeConstructor parameters in net.minecraftforge.event with type arguments of type AttributeModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) -
Uses of Attribute in net.minecraftforge.event.entity
Methods in net.minecraftforge.event.entity with parameters of type AttributeModifier and TypeMethodDescriptionvoid
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Attribute attribute) void
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Attribute attribute, double value) boolean
EntityAttributeModificationEvent.has
(EntityType<? extends LivingEntity> entityType, Attribute attribute) -
Uses of Attribute in net.minecraftforge.registries
Fields in net.minecraftforge.registries with type parameters of type AttributeModifier and TypeFieldDescriptionstatic final IForgeRegistry<Attribute>
ForgeRegistries.ATTRIBUTES
static final ResourceKey<Registry<Attribute>>
ForgeRegistries.Keys.ATTRIBUTES
Methods in net.minecraftforge.registries with parameters of type AttributeModifier and TypeMethodDescriptionvoid
GameData.AttributeCallbacks.onValidate
(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj) Method parameters in net.minecraftforge.registries with type arguments of type AttributeModifier and TypeMethodDescriptionvoid
GameData.AttributeCallbacks.onValidate
(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj)
ForgeRegistries.ATTRIBUTES
instead.