Uses of Class
net.minecraft.entity.ai.attributes.Attribute
Package
Description
-
Uses of Attribute in net.minecraft.command.arguments
Modifier 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
Modifier 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
Modifier 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
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
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
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
ModifiableAttributeInstance> AttributeModifierManager.attributes
private final Map<Attribute,
ModifiableAttributeInstance> AttributeModifierMap.MutableAttribute.builder
private final Map<Attribute,
ModifiableAttributeInstance> AttributeModifierMap.instances
Modifier and TypeMethodDescriptionModifiableAttributeInstance.getAttribute()
private static Attribute
Attribute.setSyncable
(boolean p_233753_1_) Modifier 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
Modifier 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_) ModifierConstructorDescriptionModifiableAttributeInstance
(Attribute p_i231501_1_, Consumer<ModifiableAttributeInstance> p_i231501_2_) ModifierConstructorDescriptionAttributeModifierMap
(Map<Attribute, ModifiableAttributeInstance> p_i231503_1_) -
Uses of Attribute in net.minecraft.item
Modifier 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
Modifier 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_) Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_185129_1_, AttributeModifier p_185129_2_, EquipmentSlotType p_185129_3_) -
Uses of Attribute in net.minecraft.loot.functions
ModifierConstructorDescriptionprivate
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
Modifier and TypeFieldDescriptionprivate final Attribute
SEntityPropertiesPacket.Snapshot.attribute
ModifierConstructorDescriptionSnapshot
(Attribute p_i232582_2_, double p_i232582_3_, Collection<AttributeModifier> p_i232582_5_) -
Uses of Attribute in net.minecraft.potion
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeModifier> Effect.attributeModifiers
Modifier 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
Modifier and TypeFieldDescriptionRegistry.ATTRIBUTE
Deprecated.static final RegistryKey<Registry<Attribute>>
Registry.ATTRIBUTE_REGISTRY
-
Uses of Attribute in net.minecraftforge.common
Modifier 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
Modifier 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
.Modifier 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
Modifier 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
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
(EquipmentSlotType 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
(EquipmentSlotType equipmentSlotType) -
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, EquipmentSlotType 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 RegistryKey<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)