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