Class CyclopsEffect

java.lang.Object
net.minecraft.world.effect.MobEffect
org.cyclops.cyclopscore.potion.CyclopsEffect
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.neoforged.neoforge.common.extensions.IMobEffectExtension

public abstract class CyclopsEffect extends net.minecraft.world.effect.MobEffect
A configurable potion effect.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.cyclops.cyclopscore.config.extendedconfig.EffectConfigCommon<ModBase<?>>
     

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

    CODEC, STREAM_CODEC

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    CyclopsEffect(net.minecraft.world.effect.MobEffectCategory type, int liquidColor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getAmplifier(net.minecraft.world.entity.LivingEntity entity)
     
    int
    getAmplifier(net.minecraft.world.entity.LivingEntity entity, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> potion)
     
    boolean
    isActiveOn(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
    isActiveOn(net.minecraft.world.entity.LivingEntity entity, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> potion)
     
    void
    onEntityUpdate(net.neoforged.neoforge.event.tick.EntityTickEvent.Post event)
     
    protected abstract void
    onUpdate(net.minecraft.world.entity.LivingEntity entity)
     

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

    addAttributeModifier, addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, onEffectAdded, onEffectStarted, onMobHurt, onMobRemoved, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, shouldApplyEffectTickThisTick, withSoundOnAdded

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IMobEffectExtension

    fillEffectCures, getSortOrder
  • Field Details

    • eConfig

      protected org.cyclops.cyclopscore.config.extendedconfig.EffectConfigCommon<ModBase<?>> eConfig
  • Constructor Details

    • CyclopsEffect

      public CyclopsEffect(net.minecraft.world.effect.MobEffectCategory type, int liquidColor)
  • Method Details

    • isActiveOn

      public boolean isActiveOn(net.minecraft.world.entity.LivingEntity entity)
    • isActiveOn

      public boolean isActiveOn(net.minecraft.world.entity.LivingEntity entity, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> potion)
    • getAmplifier

      public int getAmplifier(net.minecraft.world.entity.LivingEntity entity, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> potion)
    • getAmplifier

      public int getAmplifier(net.minecraft.world.entity.LivingEntity entity)
    • onUpdate

      protected abstract void onUpdate(net.minecraft.world.entity.LivingEntity entity)
    • onEntityUpdate

      public void onEntityUpdate(net.neoforged.neoforge.event.tick.EntityTickEvent.Post event)