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

    Constructors
    Constructor
    Description
    XPDebtEffect(net.minecraft.world.effect.MobEffectCategory category, int color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier)
     
    void
    applyInstantenousEffect(net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, double health)
     
    static int
    getTotalConsumedXp(int amplifier, net.minecraft.world.entity.player.Player player)
     
    boolean
    isDurationEffectTick(int duration, int amplifier)
     
    boolean
     

    Methods 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, setFactorDataFactory

    Methods inherited from class java.lang.Object

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

    Methods 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:
      applyInstantenousEffect in class net.minecraft.world.effect.MobEffect
    • applyEffectTick

      public void applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, 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
    • isInstantenous

      public boolean isInstantenous()
      Overrides:
      isInstantenous in class net.minecraft.world.effect.MobEffect
    • getTotalConsumedXp

      public static int getTotalConsumedXp(int amplifier, net.minecraft.world.entity.player.Player player)