Class RadiantEffect

java.lang.Object
net.minecraft.world.effect.MobEffect
etithespirit.orimod.util.RichEffect
etithespirit.orimod.common.potion.RadiantEffect
All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeMobEffect

public class RadiantEffect extends RichEffect
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.effect.MobEffectCategory
    Returns the default type for this effect.
    int
    Returns the default color for this effect.
    net.minecraft.resources.ResourceLocation
    Returns the ResourceLocation representing the image to be used as this effect's icon.
    int
     
    int
     

    Methods inherited from class etithespirit.orimod.util.RichEffect

    getEffectRendererInternal

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

    addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, byId, createFactorData, getAttributeModifiers, getAttributeModifierValue, getDescriptionId, getDisplayName, getId, getIdFromNullable, getOrCreateDescriptionId, initializeClient, isBeneficial, isDurationEffectTick, 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 net.minecraftforge.common.extensions.IForgeMobEffect

    getCurativeItems, getSortOrder
  • Field Details

    • RADIANT_ICON

      public static final net.minecraft.resources.ResourceLocation RADIANT_ICON
  • Constructor Details

    • RadiantEffect

      public RadiantEffect()
  • Method Details

    • getCategory

      public net.minecraft.world.effect.MobEffectCategory getCategory()
      Description copied from class: RichEffect
      Returns the default type for this effect. This value is cached and this method will only be called once.
      Specified by:
      getCategory in class RichEffect
      Returns:
      The type of effect.
    • getTextMainColor

      public int getTextMainColor()
      Overrides:
      getTextMainColor in class RichEffect
      Returns:
      The color of the text foreground.
    • getTextShadowColor

      public int getTextShadowColor()
      Overrides:
      getTextShadowColor in class RichEffect
      Returns:
      The color of the text shadow.
    • getColor

      public int getColor()
      Description copied from class: RichEffect
      Returns the default color for this effect. This value is cached and this method will only be called once.
      Specified by:
      getColor in class RichEffect
      Returns:
      The custom color. 0x00RRGGBB
    • getCustomIcon

      public net.minecraft.resources.ResourceLocation getCustomIcon()
      Description copied from class: RichEffect
      Returns the ResourceLocation representing the image to be used as this effect's icon. It may return null if a default icon is used.
      Specified by:
      getCustomIcon in class RichEffect
      Returns:
      The custom icon, or null to use a vanilla icon as defined by MobEffect.