Class AstralStatusEffect
java.lang.Object
net.minecraft.entity.effect.StatusEffect
dev.jaxydog.astral.content.effect.AstralStatusEffect
- All Implemented Interfaces:
Registered,Registered.Common
public class AstralStatusEffect
extends net.minecraft.entity.effect.StatusEffect
implements Registered.Common
An extension of a
StatusEffect that provides commonly used functionality.
This type is automatically registered.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Constructor Summary
ConstructorsConstructorDescriptionAstralStatusEffect(String path, net.minecraft.entity.effect.StatusEffectCategory category, int color) Creates a new status effect using the given properties. -
Method Summary
Modifier and TypeMethodDescriptionReturns this value's associated registry identifier path.voidRegisters this value on both the client and server environments.Methods inherited from class net.minecraft.entity.effect.StatusEffect
addAttributeModifier, adjustModifierAmount, applyInstantEffect, applyUpdateEffect, byRawId, canApplyUpdateEffect, getAttributeModifiers, getCategory, getColor, getFactorCalculationDataSupplier, getName, getRawId, getRawIdNullable, getTranslationKey, isBeneficial, isInstant, loadTranslationKey, onApplied, onRemoved, setFactorCalculationDataSupplierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId
-
Constructor Details
-
AstralStatusEffect
public AstralStatusEffect(String path, net.minecraft.entity.effect.StatusEffectCategory category, int color) Creates a new status effect using the given properties.- Parameters:
path- The effect's identifier path.category- The effect's category.color- The effect's potion and particle color.- Since:
- 2.0.0
-
-
Method Details
-
getRegistryPath
Description copied from interface:RegisteredReturns this value's associated registry identifier path.This is by default used to determine the
Identifierprovided byRegistered.getRegistryId(). For example, returning"my_item"will cause the associated identifier to beastral:my_item.- Specified by:
getRegistryPathin interfaceRegistered- Returns:
- An identifier path.
-
registerCommon
public void registerCommon()Description copied from interface:Registered.CommonRegisters this value on both the client and server environments.The contained code will run for both environments. If you only want one or the other, see its sister interfaces.
- Specified by:
registerCommonin interfaceRegistered.Common- See Also:
-