Package com.velddev.xpalchemy.effects
Class XPDebtEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
com.velddev.xpalchemy.effects.XPDebtEffect
- All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeMobEffect
public class XPDebtEffect
extends net.minecraft.world.effect.MobEffect
-
Constructor Summary
ConstructorsConstructorDescriptionXPDebtEffect(net.minecraft.world.effect.MobEffectCategory category, int color) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier) voidapplyInstantenousEffect(net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, double health) static intgetTotalConsumedXp(int amplifier, net.minecraft.world.entity.player.Player player) booleanisDurationEffectTick(int duration, int amplifier) booleanMethods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifiers, byId, createFactorData, getAttributeModifiers, getAttributeModifierValue, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getId, getIdFromNullable, getOrCreateDescriptionId, initializeClient, isBeneficial, removeAttributeModifiers, setFactorDataFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeMobEffect
getCurativeItems, getSortOrder
-
Constructor Details
-
XPDebtEffect
public XPDebtEffect(net.minecraft.world.effect.MobEffectCategory category, int color)
-
-
Method Details
-
applyInstantenousEffect
public void applyInstantenousEffect(@Nullable net.minecraft.world.entity.Entity source, @Nullable net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, double health) - Overrides:
applyInstantenousEffectin classnet.minecraft.world.effect.MobEffect
-
applyEffectTick
public void applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier) - Overrides:
applyEffectTickin classnet.minecraft.world.effect.MobEffect
-
isDurationEffectTick
public boolean isDurationEffectTick(int duration, int amplifier) - Overrides:
isDurationEffectTickin classnet.minecraft.world.effect.MobEffect
-
isInstantenous
public boolean isInstantenous()- Overrides:
isInstantenousin classnet.minecraft.world.effect.MobEffect
-
getTotalConsumedXp
public static int getTotalConsumedXp(int amplifier, net.minecraft.world.entity.player.Player player)
-