Uses of Enum Class
net.minecraft.enchantment.effect.EnchantmentEffectTarget
-
Uses of EnchantmentEffectTarget in net.minecraft.enchantment
Modifier and TypeMethodDescriptionEnchantment.Builder.addEffect
(ComponentType<List<TargetedEnchantmentEffectType<E>>> effectType, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect) Enchantment.Builder.addEffect
(ComponentType<List<TargetedEnchantmentEffectType<E>>> effectType, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect, LootCondition.Builder requirements) void
Enchantment.onTargetDamaged
(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource) -
Uses of EnchantmentEffectTarget in net.minecraft.enchantment.effect
Modifier and TypeFieldDescriptionprivate final EnchantmentEffectTarget
TargetedEnchantmentEffectType.affected
The field for theaffected
record component.private final EnchantmentEffectTarget
TargetedEnchantmentEffectType.enchanted
The field for theenchanted
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentEffectTarget> EnchantmentEffectTarget.CODEC
Modifier and TypeMethodDescriptionTargetedEnchantmentEffectType.affected()
Returns the value of theaffected
record component.TargetedEnchantmentEffectType.enchanted()
Returns the value of theenchanted
record component.static EnchantmentEffectTarget
Returns the enum constant of this class with the specified name.static EnchantmentEffectTarget[]
EnchantmentEffectTarget.values()
Returns an array containing the constants of this enum class, in the order they are declared.ModifierConstructorDescriptionTargetedEnchantmentEffectType
(EnchantmentEffectTarget enchantmentEffectTarget, EnchantmentEffectTarget enchantmentEffectTarget2, T t, Optional<LootCondition> optional)