Uses of Enum Class
net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation
Package
Description
-
Uses of AttributeModifier.Operation in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate final Optional
<AttributeModifier.Operation> ItemAttributeModifiersPredicate.EntryPredicate.operation
The field for theoperation
record component.Modifier and TypeMethodDescriptionItemAttributeModifiersPredicate.EntryPredicate.operation()
Returns the value of theoperation
record component. -
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.AttributeTemplate.operation
The field for theoperation
record component.Modifier and TypeMethodDescriptionMobEffect.AttributeTemplate.operation()
Returns the value of theoperation
record component.Modifier and TypeMethodDescriptionMobEffect.addAttributeModifier
(Holder<Attribute> p_316656_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) ModifierConstructorDescription(package private)
AttributeTemplate
(UUID id, double amount, AttributeModifier.Operation operation) Creates an instance of aAttributeTemplate
record class. -
Uses of AttributeModifier.Operation in net.minecraft.world.entity.ai.attributes
Modifier and TypeFieldDescriptionprivate final AttributeModifier.Operation
AttributeModifier.operation
The field for theoperation
record component.Modifier and TypeFieldDescriptionstatic final IntFunction
<AttributeModifier.Operation> AttributeModifier.Operation.BY_ID
static final com.mojang.serialization.Codec
<AttributeModifier.Operation> AttributeModifier.Operation.CODEC
private final Map
<AttributeModifier.Operation, Map<UUID, AttributeModifier>> AttributeInstance.modifiersByOperation
static final StreamCodec
<io.netty.buffer.ByteBuf, AttributeModifier.Operation> AttributeModifier.Operation.STREAM_CODEC
Modifier and TypeMethodDescriptionAttributeModifier.operation()
Returns the value of theoperation
record component.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 TypeMethodDescription(package private) Map
<UUID, AttributeModifier> AttributeInstance.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 id, String name, double amount, AttributeModifier.Operation operation) Creates an instance of aAttributeModifier
record class. -
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<EquipmentSlotGroup> 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_)