Class HTRecipeHolder

  • All Implemented Interfaces:
    hiiragi283.core.api.resource.HTIdLike

    @JvmRecord() 
    public final class HTRecipeHolder<RECIPE extends Object>
    extends Record implements HTIdLike
                        

    レシピのIDとレシピ自身をまとめたクラスです。

    Since:

    0.15.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getNamespace()
      String getPath()
      final <R extends Any> HTRecipeHolder<R> mapRecipe(Function1<RECIPE, R> transform) レシピの値を変換し,新しいインスタンスを作成します。
      ResourceLocation getId() 保持しているIDを返します。
      final static <RECIPE extends Recipe<?>> HTRecipeHolder<RECIPE> from(RecipeHolder<RECIPE> holder) バニラのRecipeHolderをHTRecipeHolderに変換します。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HTRecipeHolder

        HTRecipeHolder(ResourceLocation id, RECIPE recipe)
      • HTRecipeHolder

        HTRecipeHolder(Pair<ResourceLocation, RECIPE> pair)