Interface AbilityEffect
- All Known Subinterfaces:
EventTriggeredAbilityEffect<T>
public interface AbilityEffect
Represents an ability effect. One
Ability may have multiple ability effects.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends AbilityEffect> codec()default voidshiftInto(net.minecraft.world.entity.player.Player player, net.minecraft.core.Holder<Ability> ability) Called when aPlayershifts into anAbilitywith the effect.default voidshiftOutOf(net.minecraft.world.entity.player.Player player, net.minecraft.core.Holder<Ability> ability) Called when aPlayershifts into anAbilitywith the effect.default voidCalled every tick when anAbilitywith the effect is active on the givenPlayer.
-
Field Details
-
CODEC
-
-
Method Details
-
codec
com.mojang.serialization.MapCodec<? extends AbilityEffect> codec()- Returns:
- The registered
MapCodecof the ability effect.
-
shiftInto
-
shiftOutOf
-
tick
-