Class FabricPlatformHelper

java.lang.Object
dhyces.trimmed.modhelper.services.helpers.FabricPlatformHelper
All Implemented Interfaces:
dhyces.trimmed.modhelper.services.helpers.PlatformHelper

public final class FabricPlatformHelper extends Object implements dhyces.trimmed.modhelper.services.helpers.PlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • isModLoaded

      public boolean isModLoaded(String modid)
      Specified by:
      isModLoaded in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • isClientDist

      public boolean isClientDist()
      Specified by:
      isClientDist in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • isProduction

      public boolean isProduction()
      Specified by:
      isProduction in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • getPlatform

      public dhyces.trimmed.modhelper.services.util.Platform getPlatform()
      Specified by:
      getPlatform in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • resolveRegistryPath

      public String resolveRegistryPath(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> resourceKey)
      Specified by:
      resolveRegistryPath in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • modRegistryExists

      public <T> boolean modRegistryExists(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> modRegistry)
      Specified by:
      modRegistryExists in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • shouldPassConditions

      public boolean shouldPassConditions(com.google.gson.JsonObject jsonObject)
      Specified by:
      shouldPassConditions in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • isLoadingStateValid

      public boolean isLoadingStateValid()
      Specified by:
      isLoadingStateValid in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper
    • getRegistryValue

      public <T> T getRegistryValue(@Nullable @Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryKey, net.minecraft.resources.ResourceLocation valueKey)
      Specified by:
      getRegistryValue in interface dhyces.trimmed.modhelper.services.helpers.PlatformHelper