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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.effect.MobEffectCategory
Returns the default type for this effect.int
getColor()
Returns the default color for this effect.net.minecraft.resources.ResourceLocation
Returns theResourceLocation
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 classRichEffect
- Returns:
- The type of effect.
-
getTextMainColor
public int getTextMainColor()- Overrides:
getTextMainColor
in classRichEffect
- Returns:
- The color of the text foreground.
-
getTextShadowColor
public int getTextShadowColor()- Overrides:
getTextShadowColor
in classRichEffect
- 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 classRichEffect
- Returns:
- The custom color. 0x00RRGGBB
-
getCustomIcon
public net.minecraft.resources.ResourceLocation getCustomIcon()Description copied from class:RichEffect
Returns theResourceLocation
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 classRichEffect
- Returns:
- The custom icon, or null to use a vanilla icon as defined by
MobEffect
.
-