Class ContainmentEffect

java.lang.Object
net.minecraft.world.effect.MobEffect
com.binaris.wizardry.api.content.effect.MagicMobEffect
com.binaris.wizardry.content.effect.ContainmentEffect
All Implemented Interfaces:
CustomMobEffectParticles, net.minecraftforge.common.extensions.IForgeMobEffect

public class ContainmentEffect extends MagicMobEffect
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyEffectTick(@NotNull net.minecraft.world.entity.LivingEntity target, int amplifier)
     
    static float
    getContainmentDistance(int effectStrength)
     
    boolean
    isDurationEffectTick(int duration, int amplifier)
     
    static void
     
    void
    spawnCustomParticle(net.minecraft.world.level.Level world, double x, double y, double z)
     

    Methods inherited from class com.binaris.wizardry.api.content.effect.MagicMobEffect

    onLivingTick

    Methods inherited from class net.minecraft.world.effect.MobEffect

    addAttributeModifier, addAttributeModifiers, applyInstantenousEffect, byId, createFactorData, getAttributeModifiers, getAttributeModifierValue, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getId, getIdFromNullable, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, removeAttributeModifiers, setFactorDataFactory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.binaris.wizardry.api.content.effect.CustomMobEffectParticles

    shouldMixColour

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeMobEffect

    getCurativeItems, getSortOrder
  • Constructor Details

    • ContainmentEffect

      public ContainmentEffect()
  • Method Details

    • getContainmentDistance

      public static float getContainmentDistance(int effectStrength)
    • onLivingUpdateEvent

      public static void onLivingUpdateEvent(EBLivingTick event)
    • applyEffectTick

      public void applyEffectTick(@NotNull @NotNull net.minecraft.world.entity.LivingEntity target, int amplifier)
      Overrides:
      applyEffectTick in class net.minecraft.world.effect.MobEffect
    • isDurationEffectTick

      public boolean isDurationEffectTick(int duration, int amplifier)
      Overrides:
      isDurationEffectTick in class net.minecraft.world.effect.MobEffect
    • spawnCustomParticle

      public void spawnCustomParticle(net.minecraft.world.level.Level world, double x, double y, double z)