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_, ResourceLocation p_350414_, 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_, ResourceLocation p_350368_, double p_19475_, AttributeModifier.Operation p_19476_) ModifierConstructorDescription(package private)
AttributeTemplate
(ResourceLocation 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<ResourceLocation, 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
<ResourceLocation, AttributeModifier> AttributeInstance.getModifiers
(AttributeModifier.Operation p_22105_) private Collection
<AttributeModifier> AttributeInstance.getModifiersOrEmpty
(AttributeModifier.Operation p_22117_) ModifierConstructorDescriptionAttributeModifier
(ResourceLocation id, double amount, AttributeModifier.Operation operation) Creates an instance of aAttributeModifier
record class. -
Uses of AttributeModifier.Operation in net.minecraft.world.item.enchantment.effects
Modifier and TypeFieldDescriptionprivate final AttributeModifier.Operation
EnchantmentAttributeEffect.operation
The field for theoperation
record component.Modifier and TypeMethodDescriptionEnchantmentAttributeEffect.operation()
Returns the value of theoperation
record component.ModifierConstructorDescriptionEnchantmentAttributeEffect
(ResourceLocation id, Holder<Attribute> attribute, LevelBasedValue amount, AttributeModifier.Operation operation) Creates an instance of aEnchantmentAttributeEffect
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
(ResourceLocation p_350454_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) ModifierConstructorDescription(package private)
Modifier
(ResourceLocation id, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlotGroup> slots) Creates an instance of aModifier
record class.ModifierBuilder
(ResourceLocation p_350927_, Holder<Attribute> p_298853_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_)