Package hiiragi283.core.api.data.recipe
Class HTSubRecipeProvider
-
- All Implemented Interfaces:
public class HTSubRecipeProvider extends HTRecipeProviderContext
レシピを登録するクラスです。
- Since:
0.1.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classHTSubRecipeProvider.Directmod本体で使用されるHTSubRecipeProviderの拡張クラスです。
public abstract classHTSubRecipeProvider.Integration他Modとの連携レシピ向けのHTSubRecipeProviderの拡張クラスです。
-
Field Summary
Fields Modifier and Type Field Description private HolderLookup.Providerprovider
-
Method Summary
Modifier and Type Method Description HolderLookup.ProvidergetProvider()UnitsetProvider(HolderLookup.Provider value)final Holder<Enchantment>getEnchantment(ResourceKey<Enchantment> key)指定したkeyからエンチャントを取得します。 final UnitbuildRecipes(RecipeOutput output, HolderLookup.Provider holderLookup)HTRecipeProvider.buildRecipes内で呼び出されるメソッドです。 -
-
Method Detail
-
getProvider
HolderLookup.Provider getProvider()
-
setProvider
Unit setProvider(HolderLookup.Provider value)
-
getEnchantment
final Holder<Enchantment> getEnchantment(ResourceKey<Enchantment> key)
指定したkeyからエンチャントを取得します。
- Since:
0.12.0
-
buildRecipes
final Unit buildRecipes(RecipeOutput output, HolderLookup.Provider holderLookup)
HTRecipeProvider.buildRecipes内で呼び出されるメソッドです。
-
-
-
-