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 TypeMethodDescriptionRegistryEntryReferenceArgumentType.getEntityAttribute
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of EntityAttribute in net.minecraft.component.type
Fields in net.minecraft.component.type with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> AttributeModifiersComponent.Entry.attribute
The field for theattribute
record component.Methods in net.minecraft.component.type that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionAttributeModifiersComponent.Entry.attribute()
Returns the value of theattribute
record component.Method parameters in net.minecraft.component.type with type arguments of type EntityAttributeModifier and TypeMethodDescriptionAttributeModifiersComponent.Builder.add
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) void
AttributeModifiersComponent.applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) AttributeModifiersComponent.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) Constructor parameters in net.minecraft.component.type with type arguments of type EntityAttributeModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Uses of EntityAttribute in net.minecraft.entity
Method parameters in net.minecraft.entity with type arguments of type EntityAttributeModifier and TypeMethodDescriptiondouble
LivingEntity.getAttributeBaseValue
(RegistryEntry<EntityAttribute> attribute) LivingEntity.getAttributeInstance
(RegistryEntry<EntityAttribute> attribute) double
LivingEntity.getAttributeValue
(RegistryEntry<EntityAttribute> attribute) private void
LivingEntity.updateAttribute
(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 with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final Map
<RegistryEntry<EntityAttribute>, EntityAttributeInstance> AttributeContainer.custom
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_ARMOR
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_ARMOR_TOUGHNESS
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_ATTACK_DAMAGE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_ATTACK_KNOCKBACK
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_ATTACK_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_FALL_DAMAGE_MULTIPLIER
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_FLYING_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_FOLLOW_RANGE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_GRAVITY
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_JUMP_STRENGTH
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_KNOCKBACK_RESISTANCE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_LUCK
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_MAX_ABSORPTION
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_MAX_HEALTH
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_MOVEMENT_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_SAFE_FALL_DISTANCE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_SCALE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_STEP_HEIGHT
private final ImmutableMap.Builder
<RegistryEntry<EntityAttribute>, EntityAttributeInstance> DefaultAttributeContainer.Builder.instances
private final Map
<RegistryEntry<EntityAttribute>, EntityAttributeInstance> DefaultAttributeContainer.instances
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_BLOCK_BREAK_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_BLOCK_INTERACTION_RANGE
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_ENTITY_INTERACTION_RANGE
private final RegistryEntry
<EntityAttribute> EntityAttributeInstance.type
static final RegistryEntry
<EntityAttribute> EntityAttributes.ZOMBIE_SPAWN_REINFORCEMENTS
Methods in net.minecraft.entity.attribute that return EntityAttributeModifier and TypeMethodDescriptionEntityAttribute.setTracked
(boolean tracked) Sets all instances of this attribute to synchronize their values to clients.Methods in net.minecraft.entity.attribute that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionEntityAttributeInstance.getAttribute()
private static RegistryEntry
<EntityAttribute> EntityAttributes.register
(String id, EntityAttribute attribute) static RegistryEntry
<EntityAttribute> EntityAttributes.registerAndGetDefault
(Registry<EntityAttribute> registry) Methods in net.minecraft.entity.attribute with parameters of type EntityAttributeModifier and TypeMethodDescriptionprivate static RegistryEntry
<EntityAttribute> EntityAttributes.register
(String id, EntityAttribute attribute) Method parameters in net.minecraft.entity.attribute with type arguments of type EntityAttributeModifier and TypeMethodDescriptionDefaultAttributeContainer.Builder.add
(RegistryEntry<EntityAttribute> attribute) DefaultAttributeContainer.Builder.add
(RegistryEntry<EntityAttribute> attribute, double baseValue) private EntityAttributeInstance
DefaultAttributeContainer.Builder.checkedAdd
(RegistryEntry<EntityAttribute> attribute) DefaultAttributeContainer.createOverride
(Consumer<EntityAttributeInstance> updateCallback, RegistryEntry<EntityAttribute> attribute) double
AttributeContainer.getBaseValue
(RegistryEntry<EntityAttribute> attribute) double
DefaultAttributeContainer.getBaseValue
(RegistryEntry<EntityAttribute> attribute) AttributeContainer.getCustomInstance
(RegistryEntry<EntityAttribute> attribute) double
AttributeContainer.getModifierValue
(RegistryEntry<EntityAttribute> attribute, UUID uuid) double
DefaultAttributeContainer.getModifierValue
(RegistryEntry<EntityAttribute> attribute, UUID uuid) double
AttributeContainer.getValue
(RegistryEntry<EntityAttribute> attribute) double
DefaultAttributeContainer.getValue
(RegistryEntry<EntityAttribute> attribute) boolean
DefaultAttributeContainer.has
(RegistryEntry<EntityAttribute> attribute) boolean
AttributeContainer.hasAttribute
(RegistryEntry<EntityAttribute> attribute) boolean
DefaultAttributeContainer.hasModifier
(RegistryEntry<EntityAttribute> attribute, UUID uuid) boolean
AttributeContainer.hasModifierForAttribute
(RegistryEntry<EntityAttribute> attribute, UUID uuid) static RegistryEntry
<EntityAttribute> EntityAttributes.registerAndGetDefault
(Registry<EntityAttribute> registry) private EntityAttributeInstance
DefaultAttributeContainer.require
(RegistryEntry<EntityAttribute> attribute) Constructor parameters in net.minecraft.entity.attribute with type arguments of type EntityAttributeModifierConstructorDescription(package private)
EntityAttributeInstance
(RegistryEntry<EntityAttribute> type, Consumer<EntityAttributeInstance> updateCallback) -
Uses of EntityAttribute in net.minecraft.entity.effect
Fields in net.minecraft.entity.effect with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final Map
<RegistryEntry<EntityAttribute>, StatusEffect.EffectAttributeModifierCreator> StatusEffect.attributeModifiers
Method parameters in net.minecraft.entity.effect with type arguments of type EntityAttributeModifier and TypeMethodDescriptionStatusEffect.addAttributeModifier
(RegistryEntry<EntityAttribute> attribute, String uuid, double amount, EntityAttributeModifier.Operation operation) void
StatusEffect.forEachAttributeModifier
(int amplifier, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> consumer) -
Uses of EntityAttribute in net.minecraft.entity.passive
Method parameters in net.minecraft.entity.passive with type arguments of type EntityAttributeModifier and TypeMethodDescriptionprivate void
AbstractHorseEntity.setChildAttribute
(PassiveEntity other, AbstractHorseEntity child, RegistryEntry<EntityAttribute> attribute, double min, double max) -
Uses of EntityAttribute in net.minecraft.item
Method parameters in net.minecraft.item with type arguments of type EntityAttributeModifier and TypeMethodDescriptionprivate void
ItemStack.appendAttributeModifierTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) void
ItemStack.applyAttributeModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
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<AttributeModifierSlot> 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 with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> EntityAttributesS2CPacket.Entry.attribute
The field for theattribute
record component.Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionEntityAttributesS2CPacket.Entry.attribute()
Returns the value of theattribute
record component.Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type EntityAttributeModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, double baseValue, Collection<EntityAttributeModifier> modifiers) -
Uses of EntityAttribute in net.minecraft.predicate.item
Fields in net.minecraft.predicate.item with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final Optional
<RegistryEntryList<EntityAttribute>> AttributeModifiersPredicate.AttributeModifierPredicate.attribute
The field for theattribute
record component.Methods in net.minecraft.predicate.item that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionAttributeModifiersPredicate.AttributeModifierPredicate.attribute()
Returns the value of theattribute
record component.Constructor parameters in net.minecraft.predicate.item with type arguments of type EntityAttributeModifierConstructorDescriptionAttributeModifierPredicate
(Optional<RegistryEntryList<EntityAttribute>> optional, Optional<UUID> optional2, Optional<String> optional3, NumberRange.DoubleRange doubleRange, Optional<EntityAttributeModifier.Operation> optional4, Optional<AttributeModifierSlot> optional5) -
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)