Uses of Enum Class
net.minecraft.enchantment.effect.EnchantmentEffectTarget
-
Uses of EnchantmentEffectTarget in net.minecraft.enchantment
Modifier and TypeMethodDescriptionEnchantment.Builder.addEffect
(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect) Enchantment.Builder.addEffect
(ComponentType<List<TargetedEnchantmentEffect<E>>> type, 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
TargetedEnchantmentEffect.affected
The field for theaffected
record component.private final EnchantmentEffectTarget
TargetedEnchantmentEffect.enchanted
The field for theenchanted
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentEffectTarget> EnchantmentEffectTarget.CODEC
Modifier and TypeMethodDescriptionTargetedEnchantmentEffect.affected()
Returns the value of theaffected
record component.TargetedEnchantmentEffect.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.ModifierConstructorDescriptionTargetedEnchantmentEffect
(EnchantmentEffectTarget enchantmentEffectTarget, EnchantmentEffectTarget enchantmentEffectTarget2, T t, Optional<LootCondition> optional)