Annotation Interface IRecipeHandler.For

Enclosing interface:
IRecipeHandler<T extends net.minecraft.world.item.crafting.Recipe<?>>

@Documented @Repeatable(Container.class) @Retention(RUNTIME) @Target(TYPE) public static @interface IRecipeHandler.For
Annotates an IRecipeHandler indicating which recipe classes it is able to handle.

This annotation is only required if the recipe handler needs to be discovered via annotation scanning. Registering an instance manually through a plugin does not require the annotation to be present.

This annotation is Repeatable.

Since:
9.0.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Container for the IRecipeHandler.For annotation.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends net.minecraft.world.item.crafting.Recipe<?>>
    Indicates the recipe class the annotated IRecipeHandler is able to recognize and subsequently handle.
  • Element Details

    • value

      Class<? extends net.minecraft.world.item.crafting.Recipe<?>> value
      Indicates the recipe class the annotated IRecipeHandler is able to recognize and subsequently handle.
      Returns:
      The recipe class handled by this handler.
      Since:
      9.0.0
      See Also: