Class ElementalStatusEffect
java.lang.Object
net.minecraft.entity.effect.StatusEffect
io.github.xrickastley.sevenelements.effect.ElementalStatusEffect
- All Implemented Interfaces:
EntityAwareEffect,ToggleableFeature
- Direct Known Subclasses:
CryoStatusEffect,FrozenStatusEffect
public abstract sealed class ElementalStatusEffect
extends StatusEffect
permits CryoStatusEffect, FrozenStatusEffect
A special subclass of
This subclass of
StatusEffect that is tied to an Element. This subclass of
StatusEffect will persist on the entity it is inflicted on so long as
its corresponding element is applied onto the entity.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Elementprivate static final Map<Element, ElementalStatusEffect> Fields inherited from class net.minecraft.entity.effect.StatusEffect
ENTRY_CODEC, ENTRY_PACKET_CODECFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionElementalStatusEffect(StatusEffectCategory category, int color, Element element) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyPossibleStatusEffect(ElementalApplication application) voidapplyStatusEffect(ElementalApplication application) static Optional<ElementalStatusEffect> asElementEffect(RegistryEntry<StatusEffect> effect) static @Nullable ElementalStatusEffectgetEffectForElement(Element element) static List<RegistryEntry<StatusEffect>> static @Nullable RegistryEntry<StatusEffect> getEntryForElement(Element element) static booleanisElementalEffect(RegistryEntry<StatusEffect> effect) Methods inherited from class net.minecraft.entity.effect.StatusEffect
addAttributeModifier, applyInstantEffect, applySound, applyUpdateEffect, canApplyUpdateEffect, createParticle, fadeTicks, fadeTicks, forEachAttributeModifier, getCategory, getColor, getFadeInTicks, getFadeOutThresholdTicks, getFadeOutTicks, getName, getRequiredFeatures, getTranslationKey, isBeneficial, isInstant, loadTranslationKey, onApplied, onApplied, onEntityDamage, onEntityRemoval, onRemoved, playApplySound, requiresMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.xrickastley.sevenelements.interfaces.EntityAwareEffect
onRemovedMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
ELEMENT_EFFECTS
-
element
-
-
Constructor Details
-
ElementalStatusEffect
ElementalStatusEffect(StatusEffectCategory category, int color, Element element)
-
-
Method Details
-
getEffectForElement
-
getEntryForElement
-
getElementEffects
-
asElementEffect
-
applyPossibleStatusEffect
-
isElementalEffect
-
getElement
-
applyStatusEffect
-