Package com.binaris.wizardry.core
Class QuickArtifactEffect
java.lang.Object
com.binaris.wizardry.core.QuickArtifactEffect
- All Implemented Interfaces:
IArtifactEffect,IEventEffect<ArtifactEffectContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IArtifactEffectchangeDamageIfSource(@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> damageType, float value, SpellModifiers.Operation operation) static IArtifactEffectchangeModifiers(String modifierKey, float value, SpellModifiers.Operation operation) static IArtifactEffectchangeModifiersByBiomeElement(Element element, Predicate<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>> predicate, String modifierKey, float value, SpellModifiers.Operation operation) static IArtifactEffectchangeModifiersIfCasting(Supplier<Spell> spell, String modifierKey, float value, SpellModifiers.Operation operation) static IArtifactEffectchangeModifiersIfCastingType(SpellType type, String modifierKey, float value, SpellModifiers.Operation operation) static IArtifactEffectmeleeRing(Element element, @Nullable net.minecraft.world.effect.MobEffect effect, int level, int ticks) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.IEventEffect
onHurtEntity, onKillEntity, onSpellPostCast, onSpellPreCast, onTick, onUserHurt
-
Constructor Details
-
QuickArtifactEffect
public QuickArtifactEffect()
-
-
Method Details
-
changeModifiers
public static IArtifactEffect changeModifiers(String modifierKey, float value, SpellModifiers.Operation operation) -
changeModifiersIfCasting
public static IArtifactEffect changeModifiersIfCasting(Supplier<Spell> spell, String modifierKey, float value, SpellModifiers.Operation operation) -
changeModifiersIfCastingType
public static IArtifactEffect changeModifiersIfCastingType(SpellType type, String modifierKey, float value, SpellModifiers.Operation operation) -
meleeRing
public static IArtifactEffect meleeRing(Element element, @Nullable @Nullable net.minecraft.world.effect.MobEffect effect, int level, int ticks) -
changeModifiersByBiomeElement
public static IArtifactEffect changeModifiersByBiomeElement(Element element, Predicate<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>> predicate, String modifierKey, float value, SpellModifiers.Operation operation) -
changeDamageIfSource
public static IArtifactEffect changeDamageIfSource(@Nullable @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> damageType, float value, SpellModifiers.Operation operation)
-