Uses of Class
net.minecraft.world.entity.ai.attributes.Attribute
Package
Description
-
Uses of Attribute in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic Attribute
ResourceKeyArgument.getAttribute
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212371_, String p_212372_) -
Uses of Attribute in net.minecraft.core
Modifier and TypeFieldDescriptionRegistry.ATTRIBUTE
Deprecated.static final ResourceKey<Registry<Attribute>>
Registry.ATTRIBUTE_REGISTRY
-
Uses of Attribute in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final Attribute
ClientboundUpdateAttributesPacket.AttributeSnapshot.attribute
Modifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.getAttribute()
ModifierConstructorDescriptionAttributeSnapshot
(Attribute p_179459_, double p_179460_, Collection<AttributeModifier> p_179461_) -
Uses of Attribute in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSourceStack p_136470_, Entity p_136471_, Attribute p_136472_, UUID p_136473_, String p_136474_, double p_136475_, AttributeModifier.Operation p_136476_) private static int
AttributeCommand.getAttributeBase
(CommandSourceStack p_136492_, Entity p_136493_, Attribute p_136494_, double p_136495_) private static AttributeInstance
AttributeCommand.getAttributeInstance
(Entity p_136442_, Attribute p_136443_) private static int
AttributeCommand.getAttributeModifier
(CommandSourceStack p_136464_, Entity p_136465_, Attribute p_136466_, UUID p_136467_, double p_136468_) private static int
AttributeCommand.getAttributeValue
(CommandSourceStack p_136454_, Entity p_136455_, Attribute p_136456_, double p_136457_) private static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity p_136487_, Attribute p_136488_) private static int
AttributeCommand.removeModifier
(CommandSourceStack p_136459_, Entity p_136460_, Attribute p_136461_, UUID p_136462_) private static int
AttributeCommand.setAttributeBase
(CommandSourceStack p_136503_, Entity p_136504_, Attribute p_136505_, double p_136506_) -
Uses of Attribute in net.minecraft.world.effect
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeModifier> MobEffect.attributeModifiers
Modifier and TypeMethodDescriptionMobEffect.addAttributeModifier
(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) -
Uses of Attribute in net.minecraft.world.entity
Modifier and TypeMethodDescriptionLivingEntity.getAttribute
(Attribute p_21052_) double
LivingEntity.getAttributeBaseValue
(Attribute p_21173_) double
LivingEntity.getAttributeValue
(Attribute p_21134_) -
Uses of Attribute in net.minecraft.world.entity.ai.attributes
Modifier 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
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeInstance> AttributeMap.attributes
private final Map<Attribute,
AttributeInstance> AttributeSupplier.Builder.builder
private final Map<Attribute,
AttributeInstance> AttributeSupplier.instances
Modifier and TypeMethodDescriptionAttributeInstance.getAttribute()
private static Attribute
Attribute.setSyncable
(boolean p_22085_) Modifier 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
Modifier and TypeMethodDescriptionvoid
AttributeMap.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22179_) void
AttributeMap.removeAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22162_) ModifierConstructorDescriptionAttributeInstance
(Attribute p_22097_, Consumer<AttributeInstance> p_22098_) -
Uses of Attribute in net.minecraft.world.item
Modifier 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
Modifier 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_) Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_41644_, AttributeModifier p_41645_, EquipmentSlot p_41646_) -
Uses of Attribute in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescription(package private) final Attribute
SetAttributesFunction.Modifier.attribute
private final Attribute
SetAttributesFunction.ModifierBuilder.attribute
Modifier and TypeMethodDescriptionSetAttributesFunction.modifier
(String p_165236_, Attribute p_165237_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) ModifierConstructorDescription(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
Modifier 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
Modifier 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
.Modifier 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
Modifier 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
Modifier and TypeFieldDescriptionprivate static final DeferredRegister<Attribute>
AddEntityAttributeTest.ATTRIBUTES
static final RegistryObject<Attribute>
AddEntityAttributeTest.TEST_ATTR
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> GravityAttributeTest.ItemGravityStick.getDefaultAttributeModifiers
(EquipmentSlot slot) -
Uses of Attribute in net.minecraftforge.debug.entity.player
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,
AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.defaultModifiers
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.getDefaultAttributeModifiers
(EquipmentSlot equipmentSlotType) -
Uses of Attribute in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> HiddenTooltipPartsTest.TestItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) -
Uses of Attribute in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate 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
Modifier 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.Modifier 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 attributeModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) -
Uses of Attribute in net.minecraftforge.event.entity
Modifier 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
Modifier and TypeFieldDescriptionstatic final IForgeRegistry<Attribute>
ForgeRegistries.ATTRIBUTES
static final ResourceKey<Registry<Attribute>>
ForgeRegistries.Keys.ATTRIBUTES
Modifier and TypeMethodDescriptionvoid
GameData.AttributeCallbacks.onValidate
(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj) Modifier and TypeMethodDescriptionvoid
GameData.AttributeCallbacks.onValidate
(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj)