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.attributeThe field for theattributerecord component.Methods in net.minecraft.component.type that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionAttributeModifiersComponent.Entry.attribute()Returns the value of theattributerecord 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) voidAttributeModifiersComponent.applyModifiers(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) voidAttributeModifiersComponent.applyModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) booleanAttributeModifiersComponent.Entry.matches(RegistryEntry<EntityAttribute> attribute, Identifier modifierId) 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.enchantment
Method parameters in net.minecraft.enchantment with type arguments of type EntityAttributeModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.applyAttributeModifiers(ItemStack stack, AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static voidEnchantmentHelper.applyAttributeModifiers(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of EntityAttribute in net.minecraft.enchantment.effect
Fields in net.minecraft.enchantment.effect with type parameters of type EntityAttributeModifier and TypeFieldDescriptionprivate final RegistryEntry<EntityAttribute> AttributeEnchantmentEffect.attributeThe field for theattributerecord component.Methods in net.minecraft.enchantment.effect that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionAttributeEnchantmentEffect.attribute()Returns the value of theattributerecord component.AttributeEnchantmentEffect.getModifiers(int level, EquipmentSlot slot) Constructor parameters in net.minecraft.enchantment.effect with type arguments of type EntityAttributeModifierConstructorDescriptionAttributeEnchantmentEffect(Identifier identifier, RegistryEntry<EntityAttribute> registryEntry, EnchantmentLevelBasedValue enchantmentLevelBasedValue, EntityAttributeModifier.Operation operation) -
Uses of EntityAttribute in net.minecraft.entity
Method parameters in net.minecraft.entity with type arguments of type EntityAttributeModifier and TypeMethodDescriptiondoubleLivingEntity.getAttributeBaseValue(RegistryEntry<EntityAttribute> attribute) LivingEntity.getAttributeInstance(RegistryEntry<EntityAttribute> attribute) doubleLivingEntity.getAttributeValue(RegistryEntry<EntityAttribute> attribute) private voidLivingEntity.updateAttribute(RegistryEntry<EntityAttribute> attribute) -
Uses of EntityAttribute in net.minecraft.entity.attribute
Subclasses of EntityAttribute in net.minecraft.entity.attributeModifier and TypeClassDescriptionclassRepresents a type of attribute with minimum and maximum value limits.Fields in net.minecraft.entity.attribute with type parameters of type EntityAttributeModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RegistryEntry<EntityAttribute>> EntityAttribute.CODECprivate final Map<RegistryEntry<EntityAttribute>, EntityAttributeInstance> AttributeContainer.customstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_ARMORstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_ARMOR_TOUGHNESSstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_ATTACK_DAMAGEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_ATTACK_KNOCKBACKstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_ATTACK_SPEEDstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_BURNING_TIMEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_EXPLOSION_KNOCKBACK_RESISTANCEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_FALL_DAMAGE_MULTIPLIERstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_FLYING_SPEEDstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_FOLLOW_RANGEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_GRAVITYstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_JUMP_STRENGTHstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_KNOCKBACK_RESISTANCEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_LUCKstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_MAX_ABSORPTIONstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_MAX_HEALTHstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_MOVEMENT_EFFICIENCYstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_MOVEMENT_SPEEDstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_OXYGEN_BONUSstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_SAFE_FALL_DISTANCEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_SCALEstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_STEP_HEIGHTstatic final RegistryEntry<EntityAttribute> EntityAttributes.GENERIC_WATER_MOVEMENT_EFFICIENCYprivate final ImmutableMap.Builder<RegistryEntry<EntityAttribute>, EntityAttributeInstance> DefaultAttributeContainer.Builder.instancesprivate final Map<RegistryEntry<EntityAttribute>, EntityAttributeInstance> DefaultAttributeContainer.instancesstatic final PacketCodec<RegistryByteBuf, RegistryEntry<EntityAttribute>> EntityAttribute.PACKET_CODECstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_BLOCK_BREAK_SPEEDstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_BLOCK_INTERACTION_RANGEstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_ENTITY_INTERACTION_RANGEstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_MINING_EFFICIENCYstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_SNEAKING_SPEEDstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_SUBMERGED_MINING_SPEEDstatic final RegistryEntry<EntityAttribute> EntityAttributes.PLAYER_SWEEPING_DAMAGE_RATIOprivate final RegistryEntry<EntityAttribute> EntityAttributeInstance.typestatic final RegistryEntry<EntityAttribute> EntityAttributes.ZOMBIE_SPAWN_REINFORCEMENTSMethods in net.minecraft.entity.attribute that return EntityAttributeModifier and TypeMethodDescriptionEntityAttribute.setCategory(EntityAttribute.Category category) EntityAttribute.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) voidAttributeContainer.addTemporaryModifiers(Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> modifiersMap) private EntityAttributeInstanceDefaultAttributeContainer.Builder.checkedAdd(RegistryEntry<EntityAttribute> attribute) DefaultAttributeContainer.createOverride(Consumer<EntityAttributeInstance> updateCallback, RegistryEntry<EntityAttribute> attribute) doubleAttributeContainer.getBaseValue(RegistryEntry<EntityAttribute> attribute) doubleDefaultAttributeContainer.getBaseValue(RegistryEntry<EntityAttribute> attribute) AttributeContainer.getCustomInstance(RegistryEntry<EntityAttribute> attribute) doubleAttributeContainer.getModifierValue(RegistryEntry<EntityAttribute> attribute, Identifier id) doubleDefaultAttributeContainer.getModifierValue(RegistryEntry<EntityAttribute> attribute, Identifier id) doubleAttributeContainer.getValue(RegistryEntry<EntityAttribute> attribute) doubleDefaultAttributeContainer.getValue(RegistryEntry<EntityAttribute> attribute) booleanDefaultAttributeContainer.has(RegistryEntry<EntityAttribute> attribute) booleanAttributeContainer.hasAttribute(RegistryEntry<EntityAttribute> attribute) booleanDefaultAttributeContainer.hasModifier(RegistryEntry<EntityAttribute> attribute, Identifier id) booleanAttributeContainer.hasModifierForAttribute(RegistryEntry<EntityAttribute> attribute, Identifier id) static RegistryEntry<EntityAttribute> EntityAttributes.registerAndGetDefault(Registry<EntityAttribute> registry) voidAttributeContainer.removeModifiers(Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> modifiersMap) private EntityAttributeInstanceDefaultAttributeContainer.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.attributeModifiersMethod parameters in net.minecraft.entity.effect with type arguments of type EntityAttributeModifier and TypeMethodDescriptionStatusEffect.addAttributeModifier(RegistryEntry<EntityAttribute> attribute, Identifier id, double amount, EntityAttributeModifier.Operation operation) voidStatusEffect.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 voidAbstractHorseEntity.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 voidItemStack.appendAttributeModifierTooltip(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) voidItemStack.applyAttributeModifier(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) voidItemStack.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.attributeThe field for theattributerecord component.private final RegistryEntry<EntityAttribute> SetAttributesLootFunction.AttributeBuilder.attributeMethods in net.minecraft.loot.function that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionSetAttributesLootFunction.Attribute.attribute()Returns the value of theattributerecord component.Method parameters in net.minecraft.loot.function with type arguments of type EntityAttributeModifier and TypeMethodDescriptionSetAttributesLootFunction.attributeBuilder(Identifier id, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) Constructor parameters in net.minecraft.loot.function with type arguments of type EntityAttributeModifierConstructorDescription(package private)Attribute(Identifier identifier, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<AttributeModifierSlot> list) AttributeBuilder(Identifier id, 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.attributeThe field for theattributerecord 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 theattributerecord 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.attributeThe field for theattributerecord component.Methods in net.minecraft.predicate.item that return types with arguments of type EntityAttributeModifier and TypeMethodDescriptionAttributeModifiersPredicate.AttributeModifierPredicate.attribute()Returns the value of theattributerecord component.Constructor parameters in net.minecraft.predicate.item with type arguments of type EntityAttributeModifierConstructorDescriptionAttributeModifierPredicate(Optional<RegistryEntryList<EntityAttribute>> optional, Optional<Identifier> optional2, NumberRange.DoubleRange doubleRange, Optional<EntityAttributeModifier.Operation> optional3, Optional<AttributeModifierSlot> optional4) -
Uses of EntityAttribute in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type EntityAttributeModifier and TypeFieldDescriptionstatic final Registry<EntityAttribute> Registries.ATTRIBUTEstatic 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 intAttributeCommand.executeBaseValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) private static intAttributeCommand.executeBaseValueSet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double value) private static intAttributeCommand.executeModifierAdd(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double value, EntityAttributeModifier.Operation operation) private static intAttributeCommand.executeModifierRemove(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id) private static intAttributeCommand.executeModifierValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double multiplier) private static intAttributeCommand.executeValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) private static EntityAttributeInstanceAttributeCommand.getAttributeInstance(Entity entity, RegistryEntry<EntityAttribute> attribute) private static LivingEntityAttributeCommand.getLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute) private static TextAttributeCommand.getName(RegistryEntry<EntityAttribute> attribute)