Interface SpecialHandler.Factory<T extends SpecialHandler>

Enclosing interface:
SpecialHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SpecialHandler.Factory<T extends SpecialHandler>
Given a pattern, possibly make up the special handler from it.

This is what goes in the registry! Think of it like BlockEntityType vs BlockEntity.

  • Method Summary

    Modifier and Type
    Method
    Description
    tryMatch(at.petrak.hexcasting.api.casting.math.HexPattern pattern, CastingEnvironment env)
     
  • Method Details

    • tryMatch

      @Nullable T tryMatch(at.petrak.hexcasting.api.casting.math.HexPattern pattern, CastingEnvironment env)