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

    Constructors
    Constructor
    Description
    AstralStatusEffect(String path, net.minecraft.entity.effect.StatusEffectCategory category, int color)
    Creates a new status effect using the given properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns this value's associated registry identifier path.
    void
    Registers 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, setFactorCalculationDataSupplier

    Methods inherited from class java.lang.Object

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

    Methods 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