Class PackagedItemCastEnv


public class PackagedItemCastEnv extends PlayerBasedCastEnv
  • Field Details

  • Constructor Details

    • PackagedItemCastEnv

      public PackagedItemCastEnv(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
    • extractMediaEnvironment

      public long extractMediaEnvironment(long costLeft, 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
    • getSound

      public EvalSound getSound()