Uses of Class
net.minecraft.entity.attribute.EntityAttribute
Package
Description
-
Uses of EntityAttribute in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic EntityAttribute
IdentifierArgumentType.getAttributeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
Uses of EntityAttribute in net.minecraft.entity
Modifier and TypeMethodDescriptiondouble
LivingEntity.getAttributeBaseValue
(EntityAttribute attribute) LivingEntity.getAttributeInstance
(EntityAttribute attribute) double
LivingEntity.getAttributeValue
(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 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_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
Modifier and TypeFieldDescriptionprivate final Map<EntityAttribute,
EntityAttributeInstance> AttributeContainer.custom
private final Map<EntityAttribute,
EntityAttributeInstance> DefaultAttributeContainer.Builder.instances
private final Map<EntityAttribute,
EntityAttributeInstance> DefaultAttributeContainer.instances
Modifier 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.Modifier 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) Modifier and TypeMethodDescriptionvoid
AttributeContainer.addTemporaryModifiers
(Multimap<EntityAttribute, EntityAttributeModifier> attributeModifiers) void
AttributeContainer.removeModifiers
(Multimap<EntityAttribute, EntityAttributeModifier> attributeModifiers) ModifierConstructorDescriptionEntityAttributeInstance
(EntityAttribute type, Consumer<EntityAttributeInstance> updateCallback) ModifierConstructorDescription -
Uses of EntityAttribute in net.minecraft.entity.effect
Modifier and TypeFieldDescriptionprivate final Map<EntityAttribute,
EntityAttributeModifier> StatusEffect.attributeModifiers
Modifier and TypeMethodDescriptionStatusEffect.addAttributeModifier
(EntityAttribute attribute, String uuid, double amount, EntityAttributeModifier.Operation operation) -
Uses of EntityAttribute in net.minecraft.item
Modifier 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
Modifier and TypeMethodDescriptionArmorItem.getAttributeModifiers
(EquipmentSlot slot) Item.getAttributeModifiers
(EquipmentSlot slot) ItemStack.getAttributeModifiers
(EquipmentSlot slot) MiningToolItem.getAttributeModifiers
(EquipmentSlot slot) SwordItem.getAttributeModifiers
(EquipmentSlot slot) TridentItem.getAttributeModifiers
(EquipmentSlot slot) Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(EntityAttribute attribute, EntityAttributeModifier modifier, @Nullable EquipmentSlot slot) -
Uses of EntityAttribute in net.minecraft.loot.function
Modifier and TypeFieldDescription(package private) final EntityAttribute
SetAttributesLootFunction.Attribute.attribute
private final EntityAttribute
SetAttributesLootFunction.AttributeBuilder.attribute
Modifier and TypeMethodDescriptionSetAttributesLootFunction.create
(String name, EntityAttribute attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) ModifierConstructorDescription(package private)
Attribute
(String string, EntityAttribute entityAttribute, EntityAttributeModifier.Operation operation, LootNumberProvider lootNumberProvider, EquipmentSlot[] equipmentSlot, @Nullable UUID uUID) AttributeBuilder
(String name, EntityAttribute attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount) -
Uses of EntityAttribute in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final EntityAttribute
EntityAttributesS2CPacket.Entry.attribute
ModifierConstructorDescriptionEntry
(EntityAttribute attribute, double baseValue, Collection<EntityAttributeModifier> modifiers) -
Uses of EntityAttribute in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
AttributeCommand.executeBaseValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static int
AttributeCommand.executeBaseValueSet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double value) private static int
AttributeCommand.executeModifierAdd
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) private static int
AttributeCommand.executeModifierRemove
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid) private static int
AttributeCommand.executeModifierValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier) private static int
AttributeCommand.executeValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static EntityAttributeInstance
AttributeCommand.getAttributeInstance
(Entity entity, EntityAttribute attribute) private static LivingEntity
AttributeCommand.getLivingEntityWithAttribute
(Entity entity, EntityAttribute attribute) -
Uses of EntityAttribute in net.minecraft.util.registry
Modifier and TypeFieldDescriptionstatic final Registry<EntityAttribute>
Registry.ATTRIBUTE
static final RegistryKey<Registry<EntityAttribute>>
Registry.ATTRIBUTE_KEY