Interface SpecialHandler


public interface SpecialHandler
Special handling of a pattern. Before checking any of the normal angle-signature based patterns, a given pattern is run by all of these special handlers patterns. If none of them return non-null, then its signature is checked.

In the base mod, this is used for number patterns and Bookkeeper's Gambit.

There's a separation between the special handlers and their factories so we never have to use Action instances on the client. We can have SpecialHandlers on the client though because they're just wrappers.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Given a pattern, possibly make up the special handler from it.
  • Method Summary

    Modifier and Type
    Method
    Description
    at.petrak.hexcasting.api.casting.castables.Action
    act()
    Convert this to an action, for modification of the stack and state.
    net.minecraft.network.chat.Component
    Get the name of this handler.
  • Method Details

    • act

      at.petrak.hexcasting.api.casting.castables.Action act()
      Convert this to an action, for modification of the stack and state.

      This is called on the SERVER-SIDE ONLY.

    • getName

      net.minecraft.network.chat.Component getName()
      Get the name of this handler.