Uses of Class
net.minecraft.entity.ai.attributes.Attribute
Packages that use Attribute
Package
Description
-
Uses of Attribute in net.minecraft.command.arguments
Methods in net.minecraft.command.arguments that return AttributeModifier and TypeMethodDescriptionstatic Attribute
ResourceLocationArgument.getAttribute
(com.mojang.brigadier.context.CommandContext<CommandSource> p_239094_0_, String p_239094_1_) -
Uses of Attribute in net.minecraft.command.impl
Methods in net.minecraft.command.impl with parameters of type AttributeModifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSource p_241010_0_, Entity p_241010_1_, Attribute p_241010_2_, UUID p_241010_3_, String p_241010_4_, double p_241010_5_, AttributeModifier.Operation p_241010_7_) private static int
AttributeCommand.getAttributeBase
(CommandSource p_241016_0_, Entity p_241016_1_, Attribute p_241016_2_, double p_241016_3_) private static ModifiableAttributeInstance
AttributeCommand.getAttributeInstance
(Entity p_241002_0_, Attribute p_241002_1_) private static int
AttributeCommand.getAttributeModifier
(CommandSource p_241009_0_, Entity p_241009_1_, Attribute p_241009_2_, UUID p_241009_3_, double p_241009_4_) private static int
AttributeCommand.getAttributeValue
(CommandSource p_241007_0_, Entity p_241007_1_, Attribute p_241007_2_, double p_241007_3_) private static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity p_241014_0_, Attribute p_241014_1_) private static int
AttributeCommand.removeModifier
(CommandSource p_241008_0_, Entity p_241008_1_, Attribute p_241008_2_, UUID p_241008_3_) private static int
AttributeCommand.setAttributeBase
(CommandSource p_241019_0_, Entity p_241019_1_, Attribute p_241019_2_, double p_241019_3_) -
Uses of Attribute in net.minecraft.entity
Methods in net.minecraft.entity with parameters of type AttributeModifier and TypeMethodDescriptionLivingEntity.getAttribute
(Attribute p_110148_1_) double
LivingEntity.getAttributeBaseValue
(Attribute p_233638_1_) double
LivingEntity.getAttributeValue
(Attribute p_233637_1_) -
Uses of Attribute in net.minecraft.entity.ai.attributes
Subclasses of Attribute in net.minecraft.entity.ai.attributesFields in net.minecraft.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
ModifiableAttributeInstance.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.entity.ai.attributes with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,
ModifiableAttributeInstance> AttributeModifierManager.attributes
private final Map<Attribute,
ModifiableAttributeInstance> AttributeModifierMap.MutableAttribute.builder
private final Map<Attribute,
ModifiableAttributeInstance> AttributeModifierMap.instances
Methods in net.minecraft.entity.ai.attributes that return AttributeModifier and TypeMethodDescriptionModifiableAttributeInstance.getAttribute()
private static Attribute
Attribute.setSyncable
(boolean p_233753_1_) Methods in net.minecraft.entity.ai.attributes with parameters of type AttributeModifier and TypeMethodDescriptionprivate ModifiableAttributeInstance
AttributeModifierMap.createInstance
(Consumer<ModifiableAttributeInstance> p_233806_1_, Attribute p_233806_2_) private ModifiableAttributeInstance
AttributeModifierMap.getAttributeInstance
(Attribute p_233810_1_) double
AttributeModifierManager.getBaseValue
(Attribute p_233797_1_) double
AttributeModifierMap.getBaseValue
(Attribute p_233807_1_) AttributeModifierManager.getInstance
(Attribute p_233779_1_) double
AttributeModifierManager.getModifierValue
(Attribute p_233791_1_, UUID p_233791_2_) double
AttributeModifierMap.getModifierValue
(Attribute p_233805_1_, UUID p_233805_2_) double
double
boolean
AttributeModifierManager.hasAttribute
(Attribute p_233790_1_) boolean
AttributeModifierMap.hasAttribute
(Attribute p_233809_1_) boolean
AttributeModifierMap.MutableAttribute.hasAttribute
(Attribute attribute) boolean
AttributeModifierManager.hasModifier
(Attribute p_233782_1_, UUID p_233782_2_) boolean
AttributeModifierMap.hasModifier
(Attribute p_233808_1_, UUID p_233808_2_) private static Attribute
Method parameters in net.minecraft.entity.ai.attributes with type arguments of type AttributeModifier and TypeMethodDescriptionvoid
AttributeModifierManager.addTransientAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_233793_1_) void
AttributeModifierManager.removeAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_233785_1_) Constructors in net.minecraft.entity.ai.attributes with parameters of type AttributeModifierConstructorDescriptionModifiableAttributeInstance
(Attribute p_i231501_1_, Consumer<ModifiableAttributeInstance> p_i231501_2_) Constructor parameters in net.minecraft.entity.ai.attributes with type arguments of type AttributeModifierConstructorDescriptionAttributeModifierMap
(Map<Attribute, ModifiableAttributeInstance> p_i231503_1_) -
Uses of Attribute in net.minecraft.item
Fields in net.minecraft.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> SwordItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> ToolItem.defaultModifiers
private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.defaultModifiers
Methods in net.minecraft.item that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemStack.getAttributeModifiers
(EquipmentSlotType p_111283_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ArmorItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> Item.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) Deprecated.com.google.common.collect.Multimap<Attribute,
AttributeModifier> SwordItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ToolItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) Methods in net.minecraft.item with parameters of type AttributeModifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_185129_1_, AttributeModifier p_185129_2_, EquipmentSlotType p_185129_3_) -
Uses of Attribute in net.minecraft.loot.functions
Fields in net.minecraft.loot.functions declared as AttributeConstructors in net.minecraft.loot.functions with parameters of type AttributeModifierConstructorDescriptionprivate
Modifier
(String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, UUID p_i232172_6_) -
Uses of Attribute in net.minecraft.network.play.server
Fields in net.minecraft.network.play.server declared as AttributeModifier and TypeFieldDescriptionprivate final Attribute
SEntityPropertiesPacket.Snapshot.attribute
Methods in net.minecraft.network.play.server that return AttributeConstructors in net.minecraft.network.play.server with parameters of type AttributeModifierConstructorDescriptionSnapshot
(Attribute p_i232582_2_, double p_i232582_3_, Collection<AttributeModifier> p_i232582_5_) -
Uses of Attribute in net.minecraft.potion
Fields in net.minecraft.potion with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeModifier> Effect.attributeModifiers
Methods in net.minecraft.potion that return types with arguments of type AttributeMethods in net.minecraft.potion with parameters of type AttributeModifier and TypeMethodDescriptionEffect.addAttributeModifier
(Attribute p_220304_1_, String p_220304_2_, double p_220304_3_, AttributeModifier.Operation p_220304_5_) -
Uses of Attribute in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type AttributeModifier and TypeFieldDescriptionRegistry.ATTRIBUTE
Deprecated.static final RegistryKey<Registry<Attribute>>
Registry.ATTRIBUTE_REGISTRY
-
Uses of Attribute in net.minecraftforge.common
Fields in net.minecraftforge.common with type parameters of type AttributeModifier and TypeFieldDescriptionprivate 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
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, EquipmentSlotType 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, EquipmentSlotType 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
(EquipmentSlotType 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
(EquipmentSlotType 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
(EquipmentSlotType equipmentSlotType) -
Uses of Attribute in net.minecraftforge.event
Fields in net.minecraftforge.event with type parameters of type AttributeModifier 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
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, EquipmentSlotType 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 RegistryKey<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)