Class StaffCastEnv


public class StaffCastEnv extends PlayerBasedCastEnv
  • Constructor Details

    • StaffCastEnv

      public StaffCastEnv(net.minecraft.server.level.ServerPlayer caster, net.minecraft.world.InteractionHand castingHand)
  • Method Details

    • postExecution

      public void postExecution(at.petrak.hexcasting.api.casting.eval.CastResult result)
      Description copied from class: CastingEnvironment
      Do whatever you like after a pattern is executed.
      Overrides:
      postExecution in class PlayerBasedCastEnv
    • postCast

      public void postCast(at.petrak.hexcasting.api.casting.eval.vm.CastingImage image)
      Description copied from class: CastingEnvironment
      Do things after the whole cast is finished (i.e. every pattern to be executed has been executed).
      Overrides:
      postCast in class CastingEnvironment
    • extractMediaEnvironment

      public long extractMediaEnvironment(long cost, boolean simulate)
      Description copied from class: CastingEnvironment
      Attempt to extract the given amount of media. Returns the amount of media left in the cost.

      If there was enough media found, it will return less or equal to zero; if there wasn't, it will be positive.

      Specified by:
      extractMediaEnvironment in class CastingEnvironment
    • getCastingHand

      public net.minecraft.world.InteractionHand getCastingHand()
      Specified by:
      getCastingHand in class CastingEnvironment
    • getPigment

      public FrozenPigment getPigment()
      Specified by:
      getPigment in class CastingEnvironment
    • handleNewPatternOnServer

      public static void handleNewPatternOnServer(net.minecraft.server.level.ServerPlayer sender, MsgNewSpellPatternC2S msg)