Interface PlatformHelper

All Known Implementing Classes:
FabricPlatformHelper

public interface PlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    <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> T
    getRegistryValue(@Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, net.minecraft.resources.ResourceLocation valueKey)
     
    boolean
     
    boolean
     
    boolean
     
    <T> boolean
    modRegistryExists(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

      boolean isModLoaded(String modid)
    • 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)