Class HTSubRecipeProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private HolderLookup.Provider provider
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      HolderLookup.Provider getProvider()
      Unit setProvider(HolderLookup.Provider value)
      final Holder<Enchantment> getEnchantment(ResourceKey<Enchantment> key) 指定したkeyからエンチャントを取得します。
      final Unit buildRecipes(RecipeOutput output, HolderLookup.Provider holderLookup) HTRecipeProvider.buildRecipes内で呼び出されるメソッドです。
      • Methods inherited from class hiiragi283.core.api.data.recipe.HTRecipeProviderContext

        baseOrDust, baseOrPrefix, save
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getEnchantment

         final Holder<Enchantment> getEnchantment(ResourceKey<Enchantment> key)

        指定したkeyからエンチャントを取得します。

        Since:

        0.12.0

      • buildRecipes

         final Unit buildRecipes(RecipeOutput output, HolderLookup.Provider holderLookup)

        HTRecipeProvider.buildRecipes内で呼び出されるメソッドです。