Interface PlatformHelper
- All Known Implementing Classes:
FabricPlatformHelper
public interface PlatformHelper
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> decodeWithConditions(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, com.google.gson.JsonObject jsonObject) <T> TgetRegistryValue(@Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, net.minecraft.resources.ResourceLocation valueKey) booleanbooleanisModLoaded(String modid) boolean<T> booleanmodRegistryExists(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> mod) resolveRegistryPath(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> resourceKey)
-
Method Details
-
isModLoaded
-
isClientDist
boolean isClientDist() -
isProduction
boolean isProduction() -
resolveRegistryPath
String resolveRegistryPath(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> resourceKey) -
modRegistryExists
<T> boolean modRegistryExists(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> mod) -
decodeWithConditions
<T> Optional<T> decodeWithConditions(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, com.google.gson.JsonObject jsonObject) -
getRegistryValue
<T> T getRegistryValue(@Nullable @Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, net.minecraft.resources.ResourceLocation valueKey)
-