Uses of Enum Class
net.minecraft.entity.attribute.EntityAttributeModifier.Operation
Package
Description
-
Uses of EntityAttributeModifier.Operation in net.minecraft.entity.attribute
Modifier and TypeFieldDescriptionprivate final EntityAttributeModifier.Operation
EntityAttributeModifier.operation
private static final EntityAttributeModifier.Operation[]
EntityAttributeModifier.Operation.VALUES
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityAttributeModifier.Operation>
EntityAttributeModifier.Operation.CODEC
private final Map<EntityAttributeModifier.Operation,
Set<EntityAttributeModifier>> EntityAttributeInstance.operationToModifiers
Modifier and TypeMethodDescriptionEntityAttributeModifier.Operation.fromId
(int id) EntityAttributeModifier.getOperation()
Returns the enum constant of this class with the specified name.static EntityAttributeModifier.Operation[]
EntityAttributeModifier.Operation.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionEntityAttributeInstance.getModifiers
(EntityAttributeModifier.Operation operation) private Collection<EntityAttributeModifier>
EntityAttributeInstance.getModifiersByOperation
(EntityAttributeModifier.Operation operation) ModifierConstructorDescriptionEntityAttributeModifier
(String name, double value, EntityAttributeModifier.Operation operation) EntityAttributeModifier
(UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) -
Uses of EntityAttributeModifier.Operation in net.minecraft.entity.effect
Modifier and TypeFieldDescriptionprivate final EntityAttributeModifier.Operation
StatusEffect.EffectAttributeModifierCreator.operation
Modifier and TypeMethodDescriptionStatusEffect.addAttributeModifier
(EntityAttribute attribute, String uuid, double amount, EntityAttributeModifier.Operation operation) ModifierConstructorDescriptionEffectAttributeModifierCreator
(UUID uuid, double baseValue, EntityAttributeModifier.Operation operation) -
Uses of EntityAttributeModifier.Operation in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final EntityAttributeModifier.Operation
SetAttributesLootFunction.Attribute.operation
The field for theoperation
record component.private final EntityAttributeModifier.Operation
SetAttributesLootFunction.AttributeBuilder.operation
Modifier and TypeMethodDescriptionSetAttributesLootFunction.Attribute.operation()
Returns the value of theoperation
record component.Modifier and TypeMethodDescriptionSetAttributesLootFunction.attributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) ModifierConstructorDescription(package private)
Attribute
(String name, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<EquipmentSlot> list, Optional<UUID> optional) AttributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount) -
Uses of EntityAttributeModifier.Operation in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
AttributeCommand.executeModifierAdd
(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation)