Class ArcaneLockSpell


public class ArcaneLockSpell extends RaySpell
  • Constructor Details

    • ArcaneLockSpell

      public ArcaneLockSpell()
  • Method Details

    • onPlayerUseBlock

      public static void onPlayerUseBlock(EBPlayerUseBlockEvent event)
      Checks if a player is allowed to use a block with arcane lock. Called from the block use event listener.
      Parameters:
      event - The player use block event
    • onPlayerBreakBlock

      public static void onPlayerBreakBlock(EBPlayerBreakBlockEvent event)
      Checks if a player is allowed to break a block with arcane lock. Called from the block break event listener.
      Parameters:
      event - The player break block event
    • onBlockHit

      protected boolean onBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin)
      Specified by:
      onBlockHit in class RaySpell
    • onMiss

      protected boolean onMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction)
      Specified by:
      onMiss in class RaySpell
    • onEntityHit

      protected boolean onEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin)
      Specified by:
      onEntityHit in class RaySpell
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Specified by:
      properties in class Spell