Uses of Class
net.minecraft.entity.attribute.EntityAttribute
Package
Description
-
Uses of EntityAttribute in net.minecraft.command.argument
Modifier and TypeMethodDescriptionRegistryEntryReferenceArgumentType.getEntityAttribute
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of EntityAttribute in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> AttributeModifiersComponent.Entry.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionAttributeModifiersComponent.Entry.attribute()
Returns the value of theattribute
record component.Modifier and TypeMethodDescriptionAttributeModifiersComponent.Builder.add
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) void
AttributeModifiersComponent.applyModifiers
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) void
AttributeModifiersComponent.applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) AttributeModifiersComponent.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) ModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Uses of EntityAttribute in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.applyAttributeModifiers
(ItemStack stack, AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static void
EnchantmentHelper.applyAttributeModifiers
(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of EntityAttribute in net.minecraft.enchantment.effect
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> AttributeEnchantmentEffectType.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionAttributeEnchantmentEffectType.attribute()
Returns the value of theattribute
record component.AttributeEnchantmentEffectType.getModifiers
(int level) ModifierConstructorDescriptionAttributeEnchantmentEffectType
(String string, RegistryEntry<EntityAttribute> registryEntry, EnchantmentLevelBasedValueType enchantmentLevelBasedValueType, EntityAttributeModifier.Operation operation, UUID uUID) -
Uses of EntityAttribute in net.minecraft.entity
Modifier 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
Modifier and TypeClassDescriptionclass
Represents a type of attribute with minimum and maximum value limits.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<RegistryEntry<EntityAttribute>> EntityAttribute.CODEC
private 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_BURNING_TIME
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_EXPLOSION_KNOCKBACK_RESISTANCE
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_EFFICIENCY
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_MOVEMENT_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_OXYGEN_BONUS
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_SAFE_FALL_DISTANCE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_SCALE
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_STEP_HEIGHT
static final RegistryEntry
<EntityAttribute> EntityAttributes.GENERIC_WATER_MOVEMENT_EFFICIENCY
private final ImmutableMap.Builder
<RegistryEntry<EntityAttribute>, EntityAttributeInstance> DefaultAttributeContainer.Builder.instances
private final Map
<RegistryEntry<EntityAttribute>, EntityAttributeInstance> DefaultAttributeContainer.instances
static final PacketCodec
<RegistryByteBuf, RegistryEntry<EntityAttribute>> EntityAttribute.PACKET_CODEC
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
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_MINING_EFFICIENCY
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_SNEAKING_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_SUBMERGED_MINING_SPEED
static final RegistryEntry
<EntityAttribute> EntityAttributes.PLAYER_SWEEPING_DAMAGE_RATIO
private final RegistryEntry
<EntityAttribute> EntityAttributeInstance.type
static final RegistryEntry
<EntityAttribute> EntityAttributes.ZOMBIE_SPAWN_REINFORCEMENTS
Modifier and TypeMethodDescriptionEntityAttribute.setCategory
(EntityAttribute.Category category) EntityAttribute.setTracked
(boolean tracked) Sets all instances of this attribute to synchronize their values to clients.Modifier and TypeMethodDescriptionEntityAttributeInstance.getAttribute()
private static RegistryEntry
<EntityAttribute> EntityAttributes.register
(String id, EntityAttribute attribute) static RegistryEntry
<EntityAttribute> EntityAttributes.registerAndGetDefault
(Registry<EntityAttribute> registry) Modifier and TypeMethodDescriptionprivate static RegistryEntry
<EntityAttribute> EntityAttributes.register
(String id, EntityAttribute attribute) Modifier and TypeMethodDescriptionDefaultAttributeContainer.Builder.add
(RegistryEntry<EntityAttribute> attribute) DefaultAttributeContainer.Builder.add
(RegistryEntry<EntityAttribute> attribute, double baseValue) void
AttributeContainer.addTemporaryModifiers
(Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> modifiersMap) 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) void
AttributeContainer.removeModifiers
(Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> modifiersMap) private EntityAttributeInstance
DefaultAttributeContainer.require
(RegistryEntry<EntityAttribute> attribute) ModifierConstructorDescription(package private)
EntityAttributeInstance
(RegistryEntry<EntityAttribute> type, Consumer<EntityAttributeInstance> updateCallback) -
Uses of EntityAttribute in net.minecraft.entity.effect
Modifier and TypeFieldDescriptionprivate final Map
<RegistryEntry<EntityAttribute>, StatusEffect.EffectAttributeModifierCreator> StatusEffect.attributeModifiers
Modifier 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
Modifier and TypeMethodDescriptionprivate void
AbstractHorseEntity.setChildAttribute
(PassiveEntity other, AbstractHorseEntity child, RegistryEntry<EntityAttribute> attribute, double min, double max) -
Uses of EntityAttribute in net.minecraft.item
Modifier and TypeMethodDescriptionprivate void
ItemStack.appendAttributeModifierTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) void
ItemStack.applyAttributeModifier
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) void
ItemStack.applyAttributeModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of EntityAttribute in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> SetAttributesLootFunction.Attribute.attribute
The field for theattribute
record component.private final RegistryEntry
<EntityAttribute> SetAttributesLootFunction.AttributeBuilder.attribute
Modifier and TypeMethodDescriptionSetAttributesLootFunction.Attribute.attribute()
Returns the value of theattribute
record component.Modifier and TypeMethodDescriptionSetAttributesLootFunction.attributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) ModifierConstructorDescription(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
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> EntityAttributesS2CPacket.Entry.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionEntityAttributesS2CPacket.Entry.attribute()
Returns the value of theattribute
record component.ModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, double baseValue, Collection<EntityAttributeModifier> modifiers) -
Uses of EntityAttribute in net.minecraft.predicate.item
Modifier and TypeFieldDescriptionprivate final Optional
<RegistryEntryList<EntityAttribute>> AttributeModifiersPredicate.AttributeModifierPredicate.attribute
The field for theattribute
record component.Modifier and TypeMethodDescriptionAttributeModifiersPredicate.AttributeModifierPredicate.attribute()
Returns the value of theattribute
record component.ModifierConstructorDescriptionAttributeModifierPredicate
(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
Modifier and TypeFieldDescriptionstatic final Registry
<EntityAttribute> Registries.ATTRIBUTE
static final RegistryKey
<Registry<EntityAttribute>> RegistryKeys.ATTRIBUTE
-
Uses of EntityAttribute in net.minecraft.server.command
Modifier 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)