Uses of Class
net.minecraft.entity.attribute.EntityAttribute
Packages that use EntityAttribute
Package
Description
-
Uses of EntityAttribute in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionRegistryEntryArgumentType.getEntityAttribute
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of EntityAttribute in net.minecraft.entity
Methods in net.minecraft.entity with parameters of type EntityAttributeModifier and TypeMethodDescriptiondouble
LivingEntity.getAttributeBaseValue
(EntityAttribute attribute) LivingEntity.getAttributeInstance
(EntityAttribute attribute) double
LivingEntity.getAttributeValue
(EntityAttribute attribute) private void
LivingEntity.updateAttribute
(EntityAttribute attribute) Method parameters in net.minecraft.entity with type arguments of type EntityAttributeModifier and TypeMethodDescriptiondouble
LivingEntity.getAttributeBaseValue
(RegistryEntry<EntityAttribute> attribute) double
LivingEntity.getAttributeValue
(RegistryEntry<EntityAttribute> attribute) -
Uses of EntityAttribute in net.minecraft.entity.attribute
Subclasses of EntityAttribute in net.minecraft.entity.attributeModifier and TypeClassDescriptionclass
Represents a type of attribute with minimum and maximum value limits.Fields in net.minecraft.entity.attribute declared as EntityAttributeModifier and TypeFieldDescriptionstatic final EntityAttribute
EntityAttributes.GENERIC_ARMOR
static final EntityAttribute
EntityAttributes.GENERIC_ARMOR_TOUGHNESS
static final EntityAttribute
EntityAttributes.GENERIC_ATTACK_DAMAGE
static final EntityAttribute
EntityAttributes.GENERIC_ATTACK_KNOCKBACK
static final EntityAttribute
EntityAttributes.GENERIC_ATTACK_SPEED
static final EntityAttribute
EntityAttributes.GENERIC_FLYING_SPEED
static final EntityAttribute
EntityAttributes.GENERIC_FOLLOW_RANGE
static final EntityAttribute
EntityAttributes.GENERIC_KNOCKBACK_RESISTANCE
static final EntityAttribute
EntityAttributes.GENERIC_LUCK
static final EntityAttribute
EntityAttributes.GENERIC_MAX_ABSORPTION
static final EntityAttribute
EntityAttributes.GENERIC_MAX_HEALTH
static final EntityAttribute
EntityAttributes.GENERIC_MOVEMENT_SPEED
static final EntityAttribute
EntityAttributes.HORSE_JUMP_STRENGTH
private final EntityAttribute
EntityAttributeInstance.type
static final EntityAttribute
EntityAttributes.ZOMBIE_SPAWN_REINFORCEMENTS
Fields in net.minecraft.entity.attribute with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final Map<EntityAttribute,
EntityAttributeInstance> AttributeContainer.custom
private final Map<EntityAttribute,
EntityAttributeInstance> DefaultAttributeContainer.Builder.instances
private final Map<EntityAttribute,
EntityAttributeInstance> DefaultAttributeContainer.instances
Methods in net.minecraft.entity.attribute that return EntityAttributeModifier and TypeMethodDescriptionEntityAttributeInstance.getAttribute()
private static EntityAttribute
EntityAttributes.register
(String id, EntityAttribute attribute) EntityAttribute.setTracked
(boolean tracked) Sets all instances of this attribute to synchronize their values to clients.Methods in net.minecraft.entity.attribute with parameters of type EntityAttributeModifier and TypeMethodDescriptionDefaultAttributeContainer.Builder.add
(EntityAttribute attribute) DefaultAttributeContainer.Builder.add
(EntityAttribute attribute, double baseValue) private EntityAttributeInstance
DefaultAttributeContainer.Builder.checkedAdd
(EntityAttribute attribute) DefaultAttributeContainer.createOverride
(Consumer<EntityAttributeInstance> updateCallback, EntityAttribute attribute) double
AttributeContainer.getBaseValue
(EntityAttribute attribute) double
DefaultAttributeContainer.getBaseValue
(EntityAttribute attribute) AttributeContainer.getCustomInstance
(EntityAttribute attribute) double
AttributeContainer.getModifierValue
(EntityAttribute attribute, UUID uuid) double
DefaultAttributeContainer.getModifierValue
(EntityAttribute attribute, UUID uuid) double
AttributeContainer.getValue
(EntityAttribute attribute) double
DefaultAttributeContainer.getValue
(EntityAttribute attribute) boolean
DefaultAttributeContainer.has
(EntityAttribute type) boolean
AttributeContainer.hasAttribute
(EntityAttribute attribute) boolean
DefaultAttributeContainer.hasModifier
(EntityAttribute type, UUID uuid) boolean
AttributeContainer.hasModifierForAttribute
(EntityAttribute attribute, UUID uuid) private static EntityAttribute
EntityAttributes.register
(String id, EntityAttribute attribute) private EntityAttributeInstance
DefaultAttributeContainer.require
(EntityAttribute attribute) Method parameters in net.minecraft.entity.attribute with type arguments of type EntityAttributeModifier and TypeMethodDescriptionvoid
AttributeContainer.addTemporaryModifiers
(Multimap<EntityAttribute, EntityAttributeModifier> attributeModifiers) AttributeContainer.getCustomInstance
(RegistryEntry<EntityAttribute> attribute) double
AttributeContainer.getModifierValue
(RegistryEntry<EntityAttribute> attribute, UUID uuid) boolean
AttributeContainer.hasAttribute
(RegistryEntry<EntityAttribute> attribute) boolean
AttributeContainer.hasModifierForAttribute
(RegistryEntry<EntityAttribute> attribute, UUID uuid) void
AttributeContainer.removeModifiers
(Multimap<EntityAttribute, EntityAttributeModifier> attributeModifiers) Constructors in net.minecraft.entity.attribute with parameters of type EntityAttributeModifierConstructorDescriptionEntityAttributeInstance
(EntityAttribute type, Consumer<EntityAttributeInstance> updateCallback) Constructor parameters in net.minecraft.entity.attribute with type arguments of type EntityAttributeModifierConstructorDescription -
Uses of EntityAttribute in net.minecraft.entity.effect
Fields in net.minecraft.entity.effect with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final Map<EntityAttribute,
AttributeModifierCreator> StatusEffect.attributeModifiers
Methods in net.minecraft.entity.effect that return types with arguments of type EntityAttributeMethods in net.minecraft.entity.effect with parameters of type EntityAttributeModifier and TypeMethodDescriptionStatusEffect.addAttributeModifier
(EntityAttribute attribute, String uuid, double amount, EntityAttributeModifier.Operation operation) -
Uses of EntityAttribute in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type EntityAttributeModifier and TypeMethodDescriptionprivate void
AbstractHorseEntity.setChildAttribute
(PassiveEntity other, AbstractHorseEntity child, EntityAttribute attribute, double min, double max) -
Uses of EntityAttribute in net.minecraft.item
Fields in net.minecraft.item with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final Multimap<EntityAttribute,
EntityAttributeModifier> ArmorItem.attributeModifiers
private final Multimap<EntityAttribute,
EntityAttributeModifier> MiningToolItem.attributeModifiers
private final Multimap<EntityAttribute,
EntityAttributeModifier> SwordItem.attributeModifiers
private final Multimap<EntityAttribute,
EntityAttributeModifier> TridentItem.attributeModifiers
Methods in net.minecraft.item that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionArmorItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.Item.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.ItemStack.getAttributeModifiers
(EquipmentSlot slot) Returns a multimap of attribute modifiers forslot
.MiningToolItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.SwordItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.TridentItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.Methods in net.minecraft.item with parameters of type EntityAttributeModifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(EntityAttribute attribute, EntityAttributeModifier modifier, @Nullable EquipmentSlot slot) Adds an attribute modifier to this stack. -
Uses of EntityAttribute in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final RegistryEntry<EntityAttribute>
SetAttributesLootFunction.Attribute.attribute
The field for theattribute
record component.private final RegistryEntry<EntityAttribute>
SetAttributesLootFunction.AttributeBuilder.attribute
Methods in net.minecraft.loot.function that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionSetAttributesLootFunction.Attribute.attribute()
Returns the value of theattribute
record component.Method parameters in net.minecraft.loot.function with type arguments of type EntityAttributeModifier and TypeMethodDescriptionSetAttributesLootFunction.attributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) Constructor parameters in net.minecraft.loot.function with type arguments of type EntityAttributeModifierConstructorDescription(package private)
Attribute
(String name, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<EquipmentSlot> list, Optional<UUID> optional) AttributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount) -
Uses of EntityAttribute in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as EntityAttributeModifier and TypeFieldDescriptionprivate final EntityAttribute
EntityAttributesS2CPacket.Entry.attribute
Methods in net.minecraft.network.packet.s2c.play that return EntityAttributeConstructors in net.minecraft.network.packet.s2c.play with parameters of type EntityAttributeModifierConstructorDescriptionEntry
(EntityAttribute attribute, double baseValue, Collection<EntityAttributeModifier> modifiers) -
Uses of EntityAttribute in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type EntityAttributeModifier and TypeFieldDescriptionstatic final Registry<EntityAttribute>
Registries.ATTRIBUTE
static final RegistryKey<Registry<EntityAttribute>>
RegistryKeys.ATTRIBUTE
-
Uses of EntityAttribute in net.minecraft.server.command
Method parameters in net.minecraft.server.command with type arguments of type EntityAttributeModifier and TypeMethodDescriptionprivate static int
AttributeCommand.executeBaseValueGet
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) private static int
AttributeCommand.executeBaseValueSet
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double value) private static int
AttributeCommand.executeModifierAdd
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) private static int
AttributeCommand.executeModifierRemove
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid) private static int
AttributeCommand.executeModifierValueGet
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, double multiplier) private static int
AttributeCommand.executeValueGet
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) private static EntityAttributeInstance
AttributeCommand.getAttributeInstance
(Entity entity, RegistryEntry<EntityAttribute> attribute) private static LivingEntity
AttributeCommand.getLivingEntityWithAttribute
(Entity entity, RegistryEntry<EntityAttribute> attribute) private static Text
AttributeCommand.getName
(RegistryEntry<EntityAttribute> attribute)