Uses of Class
net.minecraft.entity.ai.attributes.Attribute
-
-
Uses of Attribute in net.minecraft.command.arguments
Methods in net.minecraft.command.arguments that return Attribute Modifier and Type Method Description static Attribute
ResourceLocationArgument. getAttribute(com.mojang.brigadier.context.CommandContext<CommandSource> p_239094_0_, java.lang.String p_239094_1_)
-
Uses of Attribute in net.minecraft.command.impl
Methods in net.minecraft.command.impl with parameters of type Attribute Modifier and Type Method Description private static int
AttributeCommand. addModifier(CommandSource p_241010_0_, Entity p_241010_1_, Attribute p_241010_2_, java.util.UUID p_241010_3_, java.lang.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_, java.util.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_, java.util.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 Attribute Modifier and Type Method Description ModifiableAttributeInstance
LivingEntity. 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.attributes Modifier and Type Class Description class
RangedAttribute
Fields in net.minecraft.entity.ai.attributes declared as Attribute Modifier and Type Field Description static Attribute
Attributes. ARMOR
static Attribute
Attributes. ARMOR_TOUGHNESS
static Attribute
Attributes. ATTACK_DAMAGE
static Attribute
Attributes. ATTACK_KNOCKBACK
static Attribute
Attributes. ATTACK_SPEED
private Attribute
ModifiableAttributeInstance. attribute
static Attribute
Attributes. FLYING_SPEED
static Attribute
Attributes. FOLLOW_RANGE
static Attribute
Attributes. JUMP_STRENGTH
static Attribute
Attributes. KNOCKBACK_RESISTANCE
static Attribute
Attributes. LUCK
static Attribute
Attributes. MAX_HEALTH
static Attribute
Attributes. MOVEMENT_SPEED
static Attribute
Attributes. SPAWN_REINFORCEMENTS_CHANCE
Fields in net.minecraft.entity.ai.attributes with type parameters of type Attribute Modifier and Type Field Description private java.util.Map<Attribute,ModifiableAttributeInstance>
AttributeModifierManager. attributes
private java.util.Map<Attribute,ModifiableAttributeInstance>
AttributeModifierMap.MutableAttribute. builder
private java.util.Map<Attribute,ModifiableAttributeInstance>
AttributeModifierMap. instances
Methods in net.minecraft.entity.ai.attributes that return Attribute Modifier and Type Method Description Attribute
ModifiableAttributeInstance. getAttribute()
private static Attribute
Attributes. register(java.lang.String p_233831_0_, Attribute p_233831_1_)
Attribute
Attribute. setSyncable(boolean p_233753_1_)
Methods in net.minecraft.entity.ai.attributes with parameters of type Attribute Modifier and Type Method Description AttributeModifierMap.MutableAttribute
AttributeModifierMap.MutableAttribute. add(Attribute p_233814_1_)
AttributeModifierMap.MutableAttribute
AttributeModifierMap.MutableAttribute. add(Attribute p_233815_1_, double p_233815_2_)
private ModifiableAttributeInstance
AttributeModifierMap.MutableAttribute. create(Attribute p_233817_1_)
ModifiableAttributeInstance
AttributeModifierMap. createInstance(java.util.function.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_)
ModifiableAttributeInstance
AttributeModifierManager. getInstance(Attribute p_233779_1_)
double
AttributeModifierManager. getModifierValue(Attribute p_233791_1_, java.util.UUID p_233791_2_)
double
AttributeModifierMap. getModifierValue(Attribute p_233805_1_, java.util.UUID p_233805_2_)
double
AttributeModifierManager. getValue(Attribute p_233795_1_)
double
AttributeModifierMap. getValue(Attribute p_233804_1_)
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_, java.util.UUID p_233782_2_)
boolean
AttributeModifierMap. hasModifier(Attribute p_233808_1_, java.util.UUID p_233808_2_)
private static Attribute
Attributes. register(java.lang.String p_233831_0_, Attribute p_233831_1_)
Method parameters in net.minecraft.entity.ai.attributes with type arguments of type Attribute Modifier and Type Method Description void
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 Attribute Constructor Description ModifiableAttributeInstance(Attribute p_i231501_1_, java.util.function.Consumer<ModifiableAttributeInstance> p_i231501_2_)
Constructor parameters in net.minecraft.entity.ai.attributes with type arguments of type Attribute Constructor Description AttributeModifierMap(java.util.Map<Attribute,ModifiableAttributeInstance> p_i231503_1_)
-
Uses of Attribute in net.minecraft.item
Fields in net.minecraft.item with type parameters of type Attribute Modifier and Type Field Description private com.google.common.collect.Multimap<Attribute,AttributeModifier>
ArmorItem. defaultModifiers
private com.google.common.collect.Multimap<Attribute,AttributeModifier>
SwordItem. defaultModifiers
private com.google.common.collect.Multimap<Attribute,AttributeModifier>
ToolItem. defaultModifiers
private com.google.common.collect.Multimap<Attribute,AttributeModifier>
TridentItem. defaultModifiers
Methods in net.minecraft.item that return types with arguments of type Attribute Modifier and Type Method Description com.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 Attribute Modifier and Type Method Description void
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 Attribute Modifier and Type Field Description private Attribute
SetAttributes.Modifier. attribute
Constructors in net.minecraft.loot.functions with parameters of type Attribute Constructor Description Modifier(java.lang.String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, java.util.UUID p_i232172_6_)
-
Uses of Attribute in net.minecraft.network.play.server
Fields in net.minecraft.network.play.server declared as Attribute Modifier and Type Field Description private Attribute
SEntityPropertiesPacket.Snapshot. attribute
Methods in net.minecraft.network.play.server that return Attribute Modifier and Type Method Description Attribute
SEntityPropertiesPacket.Snapshot. getAttribute()
Constructors in net.minecraft.network.play.server with parameters of type Attribute Constructor Description Snapshot(Attribute p_i232582_2_, double p_i232582_3_, java.util.Collection<AttributeModifier> p_i232582_5_)
-
Uses of Attribute in net.minecraft.potion
Fields in net.minecraft.potion with type parameters of type Attribute Modifier and Type Field Description private java.util.Map<Attribute,AttributeModifier>
Effect. attributeModifiers
Methods in net.minecraft.potion that return types with arguments of type Attribute Modifier and Type Method Description java.util.Map<Attribute,AttributeModifier>
Effect. getAttributeModifiers()
Methods in net.minecraft.potion with parameters of type Attribute Modifier and Type Method Description Effect
Effect. addAttributeModifier(Attribute p_220304_1_, java.lang.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 Attribute Modifier and Type Field Description static Registry<Attribute>
Registry. ATTRIBUTE
Deprecated.static RegistryKey<Registry<Attribute>>
Registry. ATTRIBUTE_REGISTRY
-
Uses of Attribute in net.minecraftforge.common
Fields in net.minecraftforge.common with type parameters of type Attribute Modifier and Type Field Description private static DeferredRegister<Attribute>
ForgeMod. ATTRIBUTES
static RegistryObject<Attribute>
ForgeMod. ENTITY_GRAVITY
static RegistryObject<Attribute>
ForgeMod. NAMETAG_DISTANCE
static RegistryObject<Attribute>
ForgeMod. REACH_DISTANCE
static RegistryObject<Attribute>
ForgeMod. SWIM_SPEED
Methods in net.minecraftforge.common that return types with arguments of type Attribute Modifier and Type Method Description static 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 Attribute Modifier and Type Method Description static 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 Attribute Modifier and Type Method Description default 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 Attribute Modifier and Type Field Description private static DeferredRegister<Attribute>
AddEntityAttributeTest. ATTRIBUTES
static RegistryObject<Attribute>
AddEntityAttributeTest. TEST_ATTR
Methods in net.minecraftforge.debug.entity that return types with arguments of type Attribute Modifier and Type Method Description com.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 Attribute Modifier and Type Field Description private com.google.common.collect.Multimap<Attribute,AttributeModifier>
PlayerAttackKnockbackTest.KnockbackSwordItem. defaultModifiers
Methods in net.minecraftforge.debug.entity.player that return types with arguments of type Attribute Modifier and Type Method Description com.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 Attribute Modifier and Type Field Description private com.google.common.collect.Multimap<Attribute,AttributeModifier>
ItemAttributeModifierEvent. modifiableModifiers
private 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 Attribute Modifier and Type Method Description private 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 Attribute Modifier and Type Method Description boolean
ItemAttributeModifierEvent. addModifier(Attribute attribute, AttributeModifier modifier)
Adds a new attribute modifier to the given stack.java.util.Collection<AttributeModifier>
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 Attribute Constructor Description ItemAttributeModifierEvent(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 Attribute Modifier and Type Method Description void
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 Attribute Modifier and Type Field Description static IForgeRegistry<Attribute>
ForgeRegistries. ATTRIBUTES
static RegistryKey<Registry<Attribute>>
ForgeRegistries.Keys. ATTRIBUTES
Methods in net.minecraftforge.registries with parameters of type Attribute Modifier and Type Method Description void
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 Attribute Modifier and Type Method Description void
GameData.AttributeCallbacks. onValidate(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj)
-