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 ClassesModifier and TypeClassDescriptionstatic @interfaceContainer for theIRecipeHandler.Forannotation. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends net.minecraft.world.item.crafting.Recipe<?>>Indicates the recipe class the annotatedIRecipeHandleris able to recognize and subsequently handle.
-
Element Details
-
value
Class<? extends net.minecraft.world.item.crafting.Recipe<?>> valueIndicates the recipe class the annotatedIRecipeHandleris able to recognize and subsequently handle.- Returns:
- The recipe class handled by this handler.
- Since:
- 9.0.0
- See Also:
-