Class AmethysmEffect
java.lang.Object
net.minecraft.entity.effect.StatusEffect
com.bleudev.nine_lifes.custom.effect.AmethysmEffect
- All Implemented Interfaces:
net.minecraft.resource.featuretoggle.ToggleableFeature
public class AmethysmEffect
extends net.minecraft.entity.effect.StatusEffect
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyUpdateEffect(net.minecraft.server.world.ServerWorld world, net.minecraft.entity.LivingEntity entity, int amplifier) booleancanApplyUpdateEffect(int duration, int amplifier) voidonApplied(net.minecraft.entity.LivingEntity entity, int amplifier) voidonRemoved(net.minecraft.entity.attribute.AttributeContainer attributeContainer) Methods inherited from class net.minecraft.entity.effect.StatusEffect
addAttributeModifier, applyInstantEffect, applySound, createParticle, fadeTicks, fadeTicks, forEachAttributeModifier, getCategory, getColor, getFadeInTicks, getFadeOutThresholdTicks, getFadeOutTicks, getName, getRequiredFeatures, getTranslationKey, isBeneficial, isInstant, loadTranslationKey, onApplied, onEntityDamage, onEntityRemoval, playApplySound, requiresMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Constructor Details
-
AmethysmEffect
public AmethysmEffect()
-
-
Method Details
-
canApplyUpdateEffect
public boolean canApplyUpdateEffect(int duration, int amplifier) - Overrides:
canApplyUpdateEffectin classnet.minecraft.entity.effect.StatusEffect
-
applyUpdateEffect
public boolean applyUpdateEffect(net.minecraft.server.world.ServerWorld world, net.minecraft.entity.LivingEntity entity, int amplifier) - Overrides:
applyUpdateEffectin classnet.minecraft.entity.effect.StatusEffect
-
onApplied
public void onApplied(net.minecraft.entity.LivingEntity entity, int amplifier) - Overrides:
onAppliedin classnet.minecraft.entity.effect.StatusEffect
-
onRemoved
public void onRemoved(net.minecraft.entity.attribute.AttributeContainer attributeContainer) - Overrides:
onRemovedin classnet.minecraft.entity.effect.StatusEffect
-