Interface RitualEffect


public interface RitualEffect
Represents a ritual effect that does something when the ritual is successfully performed.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<RitualEffect>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.serialization.MapCodec<? extends RitualEffect>
     
    void
    perform(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 vec)
    Performs the effect.
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<RitualEffect> CODEC
  • Method Details

    • codec

      com.mojang.serialization.MapCodec<? extends RitualEffect> codec()
      Returns:
      The registered MapCodec.
    • perform

      void perform(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 vec)
      Performs the effect.
      Parameters:
      player - The Player that triggered the ritual.
      level - The Level the ritual was triggered in.
      vec - The Vec3 the ritual was triggered at.