Uses of Enum Class
net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation
Package
Description
-
Uses of AttributeModifier.Operation in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSourceStack p_136470_, Entity p_136471_, Holder<Attribute> p_251636_, UUID p_136473_, String p_136474_, double p_136475_, AttributeModifier.Operation p_136476_) -
Uses of AttributeModifier.Operation in net.minecraft.world.effect
Modifier and TypeFieldDescriptionprivate final AttributeModifier.Operation
MobEffect.MobEffectAttributeModifierTemplate.operation
Modifier and TypeMethodDescriptionMobEffect.addAttributeModifier
(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) ModifierConstructorDescriptionMobEffectAttributeModifierTemplate
(UUID p_295616_, double p_294530_, AttributeModifier.Operation p_294958_) -
Uses of AttributeModifier.Operation in net.minecraft.world.entity.ai.attributes
Modifier and TypeFieldDescriptionprivate final AttributeModifier.Operation
AttributeModifier.operation
private static final AttributeModifier.Operation[]
AttributeModifier.Operation.OPERATIONS
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AttributeModifier.Operation>
AttributeModifier.Operation.CODEC
private final Map<AttributeModifier.Operation,
Set<AttributeModifier>> AttributeInstance.modifiersByOperation
Modifier and TypeMethodDescriptionstatic AttributeModifier.Operation
AttributeModifier.Operation.fromValue
(int p_22237_) AttributeModifier.getOperation()
static AttributeModifier.Operation
Returns the enum constant of this class with the specified name.static AttributeModifier.Operation[]
AttributeModifier.Operation.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionAttributeInstance.getModifiers
(AttributeModifier.Operation p_22105_) private Collection<AttributeModifier>
AttributeInstance.getModifiersOrEmpty
(AttributeModifier.Operation p_22117_) ModifierConstructorDescriptionAttributeModifier
(String p_22196_, double p_22197_, AttributeModifier.Operation p_22198_) AttributeModifier
(UUID p_22200_, String p_22201_, double p_22202_, AttributeModifier.Operation p_22203_) -
Uses of AttributeModifier.Operation in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionprivate final AttributeModifier.Operation
SetAttributesFunction.Modifier.operation
The field for theoperation
record component.private final AttributeModifier.Operation
SetAttributesFunction.ModifierBuilder.operation
Modifier and TypeMethodDescriptionSetAttributesFunction.Modifier.operation()
Returns the value of theoperation
record component.Modifier and TypeMethodDescriptionSetAttributesFunction.modifier
(String p_165236_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) ModifierConstructorDescription(package private)
Modifier
(String name, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlot> slots, Optional<UUID> id) Creates an instance of aModifier
record class.ModifierBuilder
(String p_165263_, Holder<Attribute> p_298853_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_)