Uses of Class
net.minecraft.world.entity.ai.attributes.Attribute
Package
Description
-
Uses of Attribute in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionItemAttributeModifiersPredicate.EntryPredicate.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionItemAttributeModifiersPredicate.EntryPredicate.attribute()
Returns the value of theattribute
record component.ModifierConstructorDescriptionEntryPredicate
(Optional<HolderSet<Attribute>> attribute, Optional<ResourceLocation> id, MinMaxBounds.Doubles amount, Optional<AttributeModifier.Operation> operation, Optional<EquipmentSlotGroup> slot) Creates an instance of aEntryPredicate
record class. -
Uses of Attribute in net.minecraft.commands.arguments
Modifier 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
-
Uses of Attribute in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.attribute()
Returns the value of theattribute
record component.ModifierConstructorDescriptionAttributeSnapshot
(Holder<Attribute> attribute, double base, Collection<AttributeModifier> modifiers) Creates an instance of aAttributeSnapshot
record class. -
Uses of Attribute in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSourceStack p_136470_, Entity p_136471_, Holder<Attribute> p_251636_, ResourceLocation p_350414_, 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_, ResourceLocation p_350277_, 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_, ResourceLocation p_350686_) 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
Modifier and TypeFieldDescriptionprivate final Map
<Holder<Attribute>, MobEffect.AttributeTemplate> MobEffect.attributeModifiers
Modifier and TypeMethodDescriptionMobEffect.addAttributeModifier
(Holder<Attribute> p_316656_, ResourceLocation p_350368_, double p_19475_, AttributeModifier.Operation p_19476_) void
MobEffect.createModifiers
(int p_316803_, BiConsumer<Holder<Attribute>, AttributeModifier> p_316902_) -
Uses of Attribute in net.minecraft.world.entity
Modifier and TypeMethodDescriptionLivingEntity.getAttribute
(Holder<Attribute> p_316333_) double
LivingEntity.getAttributeBaseValue
(Holder<Attribute> p_248605_) double
LivingEntity.getAttributeValue
(Holder<Attribute> p_251296_) private void
LivingEntity.onAttributeUpdated
(Holder<Attribute> p_316778_) -
Uses of Attribute in net.minecraft.world.entity.ai.attributes
Modifier and TypeFieldDescriptionAttributes.ARMOR
Attributes.ARMOR_TOUGHNESS
Attributes.ATTACK_DAMAGE
Attributes.ATTACK_KNOCKBACK
Attributes.ATTACK_SPEED
AttributeInstance.attribute
private final Map
<Holder<Attribute>, AttributeInstance> AttributeMap.attributes
Attributes.BLOCK_BREAK_SPEED
Attributes.BLOCK_INTERACTION_RANGE
private final Map
<Holder<Attribute>, AttributeInstance> AttributeSupplier.Builder.builder
Attributes.BURNING_TIME
Attribute.CODEC
Attributes.ENTITY_INTERACTION_RANGE
Attributes.EXPLOSION_KNOCKBACK_RESISTANCE
Attributes.FALL_DAMAGE_MULTIPLIER
Attributes.FLYING_SPEED
Attributes.FOLLOW_RANGE
Attributes.GRAVITY
private final Map
<Holder<Attribute>, AttributeInstance> AttributeSupplier.instances
Attributes.JUMP_STRENGTH
Attributes.KNOCKBACK_RESISTANCE
Attributes.LUCK
Attributes.MAX_ABSORPTION
Attributes.MAX_HEALTH
Attributes.MINING_EFFICIENCY
Attributes.MOVEMENT_EFFICIENCY
Attributes.MOVEMENT_SPEED
Attributes.OXYGEN_BONUS
Attributes.SAFE_FALL_DISTANCE
Attributes.SCALE
Attributes.SNEAKING_SPEED
Attributes.SPAWN_REINFORCEMENTS_CHANCE
Attributes.STEP_HEIGHT
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Attribute>> Attribute.STREAM_CODEC
Attributes.SUBMERGED_MINING_SPEED
Attributes.SWEEPING_DAMAGE_RATIO
Attributes.WATER_MOVEMENT_EFFICIENCY
Modifier and TypeMethodDescriptionAttribute.setSentiment
(Attribute.Sentiment p_347714_) Attribute.setSyncable
(boolean p_22085_) Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
AttributeMap.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_345244_) private AttributeInstance
AttributeSupplier.createInstance
(Consumer<AttributeInstance> p_22251_, Holder<Attribute> p_316258_) private AttributeInstance
AttributeSupplier.getAttributeInstance
(Holder<Attribute> p_316859_) double
AttributeMap.getBaseValue
(Holder<Attribute> p_316270_) double
AttributeSupplier.getBaseValue
(Holder<Attribute> p_316396_) AttributeMap.getInstance
(Holder<Attribute> p_250010_) double
AttributeMap.getModifierValue
(Holder<Attribute> p_251534_, ResourceLocation p_350464_) double
AttributeSupplier.getModifierValue
(Holder<Attribute> p_316754_, ResourceLocation p_350708_) double
double
boolean
AttributeMap.hasAttribute
(Holder<Attribute> p_248893_) boolean
AttributeSupplier.Builder.hasAttribute
(Holder<Attribute> attribute) boolean
AttributeSupplier.hasAttribute
(Holder<Attribute> p_316617_) boolean
AttributeMap.hasModifier
(Holder<Attribute> p_250299_, ResourceLocation p_350963_) boolean
AttributeSupplier.hasModifier
(Holder<Attribute> p_316471_, ResourceLocation p_350394_) void
AttributeMap.removeAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) ModifierConstructorDescriptionAttributeInstance
(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
Modifier and TypeMethodDescriptionprivate void
AbstractHorse.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
Modifier and TypeMethodDescriptionprivate void
ItemStack.addModifierTooltip
(Consumer<Component> p_331062_, Player p_330317_, Holder<Attribute> p_330626_, AttributeModifier p_331252_) void
ItemStack.forEachModifier
(EquipmentSlotGroup p_348610_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348516_) void
ItemStack.forEachModifier
(EquipmentSlot p_332001_, BiConsumer<Holder<Attribute>, AttributeModifier> p_330882_) -
Uses of Attribute in net.minecraft.world.item.component
Modifier and TypeFieldDescriptionItemAttributeModifiers.Entry.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionItemAttributeModifiers.Entry.attribute()
Returns the value of theattribute
record component.Modifier and TypeMethodDescriptionItemAttributeModifiers.Builder.add
(Holder<Attribute> p_330324_, AttributeModifier p_331766_, EquipmentSlotGroup p_331205_) void
ItemAttributeModifiers.forEach
(EquipmentSlotGroup p_348576_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348660_) void
ItemAttributeModifiers.forEach
(EquipmentSlot p_332158_, BiConsumer<Holder<Attribute>, AttributeModifier> p_331684_) boolean
ItemAttributeModifiers.Entry.matches
(Holder<Attribute> p_350582_, ResourceLocation p_350416_) ItemAttributeModifiers.withModifierAdded
(Holder<Attribute> p_330266_, AttributeModifier p_331954_, EquipmentSlotGroup p_332175_) ModifierConstructorDescriptionEntry
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Creates an instance of aEntry
record class. -
Uses of Attribute in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.forEachModifier
(ItemStack p_348634_, EquipmentSlotGroup p_348528_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348554_) static void
EnchantmentHelper.forEachModifier
(ItemStack p_345685_, EquipmentSlot p_345123_, BiConsumer<Holder<Attribute>, AttributeModifier> p_345061_) -
Uses of Attribute in net.minecraft.world.item.enchantment.effects
Modifier and TypeFieldDescriptionEnchantmentAttributeEffect.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionEnchantmentAttributeEffect.attribute()
Returns the value of theattribute
record component.private com.google.common.collect.HashMultimap
<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap
(int p_346033_, EquipmentSlot p_350290_) ModifierConstructorDescriptionEnchantmentAttributeEffect
(ResourceLocation id, Holder<Attribute> attribute, LevelBasedValue amount, AttributeModifier.Operation operation) Creates an instance of aEnchantmentAttributeEffect
record class. -
Uses of Attribute in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionSetAttributesFunction.Modifier.attribute
The field for theattribute
record component.SetAttributesFunction.ModifierBuilder.attribute
Modifier and TypeMethodDescriptionSetAttributesFunction.Modifier.attribute()
Returns the value of theattribute
record component.Modifier and TypeMethodDescriptionSetAttributesFunction.modifier
(ResourceLocation p_350454_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) ModifierConstructorDescription(package private)
Modifier
(ResourceLocation id, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlotGroup> slots) Creates an instance of aModifier
record class.ModifierBuilder
(ResourceLocation p_350927_, Holder<Attribute> p_298853_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_) -
Uses of Attribute in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionprivate static final DeferredRegister
<Attribute> NeoForgeMod.ATTRIBUTES
NeoForgeMod.CREATIVE_FLIGHT
Grants the player the ability to use creative flight when not in creative mode.NeoForgeMod.NAMETAG_DISTANCE
NeoForgeMod.SWIM_SPEED
-
Uses of Attribute in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key.attr
The field for theattr
record component.Modifier and TypeMethodDescriptionItemAttributeModifierEvent.ItemAttributeModifiersBuilder.Key.attr()
Returns the value of theattr
record component.Modifier and TypeMethodDescriptionboolean
ItemAttributeModifierEvent.addModifier
(Holder<Attribute> attribute, AttributeModifier modifier, EquipmentSlotGroup slot) Adds a new attribute modifier to the given stack.(package private) boolean
ItemAttributeModifierEvent.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.boolean
ItemAttributeModifierEvent.removeAllModifiersFor
(Holder<Attribute> attribute) Removes all modifiers for the given attribute.(package private) boolean
ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.removeModifier
(Holder<Attribute> attribute, ResourceLocation id) Removes a modifier for the target attribute with the given id.boolean
ItemAttributeModifierEvent.removeModifier
(Holder<Attribute> attribute, ResourceLocation id) Removes an attribute modifier for the target attribute by idvoid
ItemAttributeModifierEvent.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.ModifierConstructorDescriptionprivate
Key
(Holder<Attribute> attr, ResourceLocation id) Creates an instance of aKey
record class. -
Uses of Attribute in net.neoforged.neoforge.event.entity
Modifier and TypeMethodDescriptionvoid
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) void
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute, double value) boolean
EntityAttributeModificationEvent.has
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) -
Uses of Attribute in net.neoforged.neoforge.registries