Package org.cyclops.cyclopscore.potion
Class CyclopsEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
org.cyclops.cyclopscore.potion.CyclopsEffect
- All Implemented Interfaces:
net.neoforged.neoforge.common.extensions.IMobEffectExtension
public abstract class CyclopsEffect
extends net.minecraft.world.effect.MobEffect
A configurable potion effect.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCyclopsEffect
(net.minecraft.world.effect.MobEffectCategory type, int liquidColor) -
Method Summary
Modifier and TypeMethodDescriptionint
getAmplifier
(net.minecraft.world.entity.LivingEntity entity) int
getAmplifier
(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.effect.MobEffect potion) boolean
isActiveOn
(net.minecraft.world.entity.LivingEntity entity) boolean
isActiveOn
(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.effect.MobEffect potion) void
onEntityUpdate
(net.neoforged.neoforge.event.entity.living.LivingEvent.LivingTickEvent event) protected abstract void
onUpdate
(net.minecraft.world.entity.LivingEntity entity) Methods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, builtInRegistryHolder, createFactorData, getAttributeModifiers, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, onEffectStarted, removeAttributeModifiers, setFactorDataFactory, shouldApplyEffectTickThisTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IMobEffectExtension
fillEffectCures, getSortOrder
-
Field Details
-
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.world.effect.MobEffect potion) -
getAmplifier
public int getAmplifier(net.minecraft.world.entity.LivingEntity entity, 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.entity.living.LivingEvent.LivingTickEvent event)
-