Package hiiragi283.lib
Object HTPhysicalSideHelper
-
- All Implemented Interfaces:
public class HTPhysicalSideHelper- Since:
0.16.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final RecipeMapcachedRecipespublic final static HTPhysicalSideHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static Either<ErrorText, RegistryAccess>getRegistryAccess()現在のレジストリへのアクセスを取得します。 final static <T extends Any> Either<ErrorText, Registry<T>>lookup(ResourceKey<out Registry<T>> registryKey)final static FeatureFlagSetgetFeatureFlags()現在のFeatureFlagSetを取得します。 final static <T extends FeatureElement> Either<ErrorText, HolderLookup.RegistryLookup<T>>filteredLookup(ResourceKey<out Registry<T>> registryKey)final UnitonRecipeSync(RecipesReceivedEvent event)final RecipeMapgetCachedRecipes()-
-
Method Detail
-
getRegistryAccess
final static Either<ErrorText, RegistryAccess> getRegistryAccess()
現在のレジストリへのアクセスを取得します。
- Returns:
クライアント側でワールドを読み込んでいない,またはサーバーのインスタンスが作成されていない場合は
null
-
lookup
final static <T extends Any> Either<ErrorText, Registry<T>> lookup(ResourceKey<out Registry<T>> registryKey)
-
getFeatureFlags
final static FeatureFlagSet getFeatureFlags()
現在のFeatureFlagSetを取得します。
- Returns:
クライアント側でワールドを読み込んでいない,またはサーバーのインスタンスが作成されていない場合は
null- Since:
0.16.0
-
filteredLookup
final static <T extends FeatureElement> Either<ErrorText, HolderLookup.RegistryLookup<T>> filteredLookup(ResourceKey<out Registry<T>> registryKey)
-
onRecipeSync
final Unit onRecipeSync(RecipesReceivedEvent event)
-
getCachedRecipes
final RecipeMap getCachedRecipes()
-
-
-
-