Uses of Class
net.minecraft.world.entity.ai.attributes.Attribute
Packages that use Attribute
Package
Description
-
Uses of Attribute in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return AttributeModifier and TypeMethodDescriptionstatic AttributeResourceKeyArgument.getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212371_, String p_212372_) -
Uses of Attribute in net.minecraft.core
Fields in net.minecraft.core with type parameters of type AttributeModifier and TypeFieldDescriptionRegistry.ATTRIBUTEDeprecated.static final ResourceKey<Registry<Attribute>>Registry.ATTRIBUTE_REGISTRY -
Uses of Attribute in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as AttributeModifier and TypeFieldDescriptionprivate final AttributeClientboundUpdateAttributesPacket.AttributeSnapshot.attributeMethods in net.minecraft.network.protocol.game that return AttributeModifier and TypeMethodDescriptionClientboundUpdateAttributesPacket.AttributeSnapshot.getAttribute()Constructors in net.minecraft.network.protocol.game with parameters of type AttributeModifierConstructorDescriptionAttributeSnapshot(Attribute p_179459_, double p_179460_, Collection<AttributeModifier> p_179461_) -
Uses of Attribute in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type AttributeModifier and TypeMethodDescriptionprivate static intAttributeCommand.addModifier(CommandSourceStack p_136470_, Entity p_136471_, Attribute p_136472_, UUID p_136473_, String p_136474_, double p_136475_, AttributeModifier.Operation p_136476_) private static intAttributeCommand.getAttributeBase(CommandSourceStack p_136492_, Entity p_136493_, Attribute p_136494_, double p_136495_) private static AttributeInstanceAttributeCommand.getAttributeInstance(Entity p_136442_, Attribute p_136443_) private static intAttributeCommand.getAttributeModifier(CommandSourceStack p_136464_, Entity p_136465_, Attribute p_136466_, UUID p_136467_, double p_136468_) private static intAttributeCommand.getAttributeValue(CommandSourceStack p_136454_, Entity p_136455_, Attribute p_136456_, double p_136457_) private static LivingEntityAttributeCommand.getEntityWithAttribute(Entity p_136487_, Attribute p_136488_) private static intAttributeCommand.removeModifier(CommandSourceStack p_136459_, Entity p_136460_, Attribute p_136461_, UUID p_136462_) private static intAttributeCommand.setAttributeBase(CommandSourceStack p_136503_, Entity p_136504_, Attribute p_136505_, double p_136506_) -
Uses of Attribute in net.minecraft.world.effect
Fields in net.minecraft.world.effect with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,AttributeModifier> MobEffect.attributeModifiersMethods in net.minecraft.world.effect that return types with arguments of type AttributeMethods in net.minecraft.world.effect with parameters of type AttributeModifier and TypeMethodDescriptionMobEffect.addAttributeModifier(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) -
Uses of Attribute in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type AttributeModifier and TypeMethodDescriptionLivingEntity.getAttribute(Attribute p_21052_) doubleLivingEntity.getAttributeBaseValue(Attribute p_21173_) doubleLivingEntity.getAttributeValue(Attribute p_21134_) -
Uses of Attribute in net.minecraft.world.entity.ai.attributes
Subclasses of Attribute in net.minecraft.world.entity.ai.attributesFields in net.minecraft.world.entity.ai.attributes declared as AttributeModifier and TypeFieldDescriptionstatic final AttributeAttributes.ARMORstatic final AttributeAttributes.ARMOR_TOUGHNESSstatic final AttributeAttributes.ATTACK_DAMAGEstatic final AttributeAttributes.ATTACK_KNOCKBACKstatic final AttributeAttributes.ATTACK_SPEEDprivate final AttributeAttributeInstance.attributestatic final AttributeAttributes.FLYING_SPEEDstatic final AttributeAttributes.FOLLOW_RANGEstatic final AttributeAttributes.JUMP_STRENGTHstatic final AttributeAttributes.KNOCKBACK_RESISTANCEstatic final AttributeAttributes.LUCKstatic final AttributeAttributes.MAX_HEALTHstatic final AttributeAttributes.MOVEMENT_SPEEDstatic final AttributeAttributes.SPAWN_REINFORCEMENTS_CHANCEFields in net.minecraft.world.entity.ai.attributes with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Attribute,AttributeInstance> AttributeMap.attributesprivate final Map<Attribute,AttributeInstance> AttributeSupplier.Builder.builderprivate final Map<Attribute,AttributeInstance> AttributeSupplier.instancesMethods in net.minecraft.world.entity.ai.attributes that return AttributeModifier and TypeMethodDescriptionAttributeInstance.getAttribute()private static AttributeAttribute.setSyncable(boolean p_22085_) Methods in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifier and TypeMethodDescriptionprivate AttributeInstanceAttributeSupplier.createInstance(Consumer<AttributeInstance> p_22251_, Attribute p_22252_) private AttributeInstanceAttributeSupplier.getAttributeInstance(Attribute p_22261_) doubleAttributeMap.getBaseValue(Attribute p_22186_) doubleAttributeSupplier.getBaseValue(Attribute p_22254_) AttributeMap.getInstance(Attribute p_22147_) doubleAttributeMap.getModifierValue(Attribute p_22174_, UUID p_22175_) doubleAttributeSupplier.getModifierValue(Attribute p_22248_, UUID p_22249_) doubledoublebooleanAttributeMap.hasAttribute(Attribute p_22172_) booleanAttributeSupplier.Builder.hasAttribute(Attribute attribute) booleanAttributeSupplier.hasAttribute(Attribute p_22259_) booleanAttributeMap.hasModifier(Attribute p_22155_, UUID p_22156_) booleanAttributeSupplier.hasModifier(Attribute p_22256_, UUID p_22257_) private static AttributeMethod parameters in net.minecraft.world.entity.ai.attributes with type arguments of type AttributeModifier and TypeMethodDescriptionvoidAttributeMap.addTransientAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22179_) voidAttributeMap.removeAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22162_) Constructors in net.minecraft.world.entity.ai.attributes with parameters of type AttributeModifierConstructorDescriptionAttributeInstance(Attribute p_22097_, Consumer<AttributeInstance> p_22098_) Constructor parameters in net.minecraft.world.entity.ai.attributes with type arguments of type Attribute -
Uses of Attribute in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> ArmorItem.defaultModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> DiggerItem.defaultModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> SwordItem.defaultModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> TridentItem.defaultModifiersMethods in net.minecraft.world.item that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,AttributeModifier> ItemStack.getAttributeModifiers(EquipmentSlot p_41639_) com.google.common.collect.Multimap<Attribute,AttributeModifier> ArmorItem.getDefaultAttributeModifiers(EquipmentSlot p_40390_) com.google.common.collect.Multimap<Attribute,AttributeModifier> DiggerItem.getDefaultAttributeModifiers(EquipmentSlot p_40990_) com.google.common.collect.Multimap<Attribute,AttributeModifier> Item.getDefaultAttributeModifiers(EquipmentSlot p_41388_) Deprecated.com.google.common.collect.Multimap<Attribute,AttributeModifier> SwordItem.getDefaultAttributeModifiers(EquipmentSlot p_43274_) com.google.common.collect.Multimap<Attribute,AttributeModifier> TridentItem.getDefaultAttributeModifiers(EquipmentSlot p_43383_) Methods in net.minecraft.world.item with parameters of type AttributeModifier and TypeMethodDescriptionvoidItemStack.addAttributeModifier(Attribute p_41644_, AttributeModifier p_41645_, EquipmentSlot p_41646_) -
Uses of Attribute in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as AttributeModifier and TypeFieldDescription(package private) final AttributeSetAttributesFunction.Modifier.attributeprivate final AttributeSetAttributesFunction.ModifierBuilder.attributeMethods in net.minecraft.world.level.storage.loot.functions with parameters of type AttributeModifier and TypeMethodDescriptionSetAttributesFunction.modifier(String p_165236_, Attribute p_165237_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type AttributeModifierConstructorDescription(package private)Modifier(String p_165250_, Attribute p_165251_, AttributeModifier.Operation p_165252_, NumberProvider p_165253_, EquipmentSlot[] p_165254_, UUID p_165255_) ModifierBuilder(String p_165263_, Attribute p_165264_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_) -
Uses of Attribute in net.minecraftforge.common
Fields in net.minecraftforge.common with type parameters of type AttributeModifier and TypeFieldDescriptionstatic final RegistryObject<Attribute>ForgeMod.ATTACK_RANGEAttack Range represents the distance at which a player may attack an entity.private static final DeferredRegister<Attribute>ForgeMod.ATTRIBUTESstatic final RegistryObject<Attribute>ForgeMod.ENTITY_GRAVITYstatic final RegistryObject<Attribute>ForgeMod.NAMETAG_DISTANCEstatic final RegistryObject<Attribute>ForgeMod.REACH_DISTANCEReach Distance represents the distance at which a player may interact with the world.static final RegistryObject<Attribute>ForgeMod.STEP_HEIGHT_ADDITIONStep Height Addition modifies the amount of blocks an entity may walk up without jumping.static final RegistryObject<Attribute>ForgeMod.SWIM_SPEEDMethods in net.minecraftforge.common that return types with arguments of type AttributeModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,AttributeModifier> ForgeHooks.getAttributeModifiers(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent.Method parameters in net.minecraftforge.common with type arguments of type AttributeModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,AttributeModifier> ForgeHooks.getAttributeModifiers(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent. -
Uses of Attribute in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions that return types with arguments of type AttributeModifier and TypeMethodDescriptiondefault com.google.common.collect.Multimap<Attribute,AttributeModifier> IForgeItem.getAttributeModifiers(EquipmentSlot slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiers -
Uses of Attribute in net.minecraftforge.debug.entity
Fields in net.minecraftforge.debug.entity with type parameters of type AttributeModifier and TypeFieldDescriptionprivate static final DeferredRegister<Attribute>AddEntityAttributeTest.ATTRIBUTESstatic final RegistryObject<Attribute>AddEntityAttributeTest.TEST_ATTRMethods in net.minecraftforge.debug.entity that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,AttributeModifier> GravityAttributeTest.ItemGravityStick.getDefaultAttributeModifiers(EquipmentSlot slot) -
Uses of Attribute in net.minecraftforge.debug.entity.player
Fields in net.minecraftforge.debug.entity.player with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.defaultModifiersMethods in net.minecraftforge.debug.entity.player that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.getDefaultAttributeModifiers(EquipmentSlot equipmentSlotType) -
Uses of Attribute in net.minecraftforge.debug.item
Methods in net.minecraftforge.debug.item that return types with arguments of type AttributeModifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,AttributeModifier> HiddenTooltipPartsTest.TestItem.getAttributeModifiers(EquipmentSlot slot, ItemStack stack) -
Uses of Attribute in net.minecraftforge.event
Fields in net.minecraftforge.event with type parameters of type AttributeModifier and TypeFieldDescriptionprivate com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.modifiableModifiersprivate final com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.originalModifiersprivate com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.unmodifiableModifiersMethods in net.minecraftforge.event that return types with arguments of type AttributeModifier and TypeMethodDescriptionprivate com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.getModifiableMap()Gets a modifiable map instance, creating it if the current map is currently unmodifiablecom.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.getModifiers()Returns an unmodifiable view of the attribute multimap.com.google.common.collect.Multimap<Attribute,AttributeModifier> ItemAttributeModifierEvent.getOriginalModifiers()Returns the attribute map before any changes from other event listeners was made.Methods in net.minecraftforge.event with parameters of type AttributeModifier and TypeMethodDescriptionbooleanItemAttributeModifierEvent.addModifier(Attribute attribute, AttributeModifier modifier) Adds a new attribute modifier to the given stack.ItemAttributeModifierEvent.removeAttribute(Attribute attribute) Removes all modifiers for the given attributebooleanItemAttributeModifierEvent.removeModifier(Attribute attribute, AttributeModifier modifier) Removes a single modifier for the given attributeConstructor parameters in net.minecraftforge.event with type arguments of type AttributeModifierConstructorDescriptionItemAttributeModifierEvent(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) -
Uses of Attribute in net.minecraftforge.event.entity
Methods in net.minecraftforge.event.entity with parameters of type AttributeModifier and TypeMethodDescriptionvoidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Attribute attribute) voidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Attribute attribute, double value) booleanEntityAttributeModificationEvent.has(EntityType<? extends LivingEntity> entityType, Attribute attribute) -
Uses of Attribute in net.minecraftforge.registries
Fields in net.minecraftforge.registries with type parameters of type AttributeModifier and TypeFieldDescriptionstatic final IForgeRegistry<Attribute>ForgeRegistries.ATTRIBUTESstatic final ResourceKey<Registry<Attribute>>ForgeRegistries.Keys.ATTRIBUTESMethods in net.minecraftforge.registries with parameters of type AttributeModifier and TypeMethodDescriptionvoidGameData.AttributeCallbacks.onValidate(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj) Method parameters in net.minecraftforge.registries with type arguments of type AttributeModifier and TypeMethodDescriptionvoidGameData.AttributeCallbacks.onValidate(IForgeRegistryInternal<Attribute> owner, RegistryManager stage, int id, ResourceLocation key, Attribute obj)