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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondhyces.trimmed.modhelper.services.util.Platform<T> TgetRegistryValue(@Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryKey, net.minecraft.resources.ResourceLocation valueKey) booleanbooleanbooleanisModLoaded(String modid) boolean<T> booleanmodRegistryExists(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> modRegistry) resolveRegistryPath(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> resourceKey) booleanshouldPassConditions(com.google.gson.JsonObject jsonObject)
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
isModLoaded
- Specified by:
isModLoadedin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
isClientDist
public boolean isClientDist()- Specified by:
isClientDistin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
isProduction
public boolean isProduction()- Specified by:
isProductionin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
getPlatform
public dhyces.trimmed.modhelper.services.util.Platform getPlatform()- Specified by:
getPlatformin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
resolveRegistryPath
public String resolveRegistryPath(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> resourceKey) - Specified by:
resolveRegistryPathin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
modRegistryExists
public <T> boolean modRegistryExists(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> modRegistry) - Specified by:
modRegistryExistsin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
shouldPassConditions
public boolean shouldPassConditions(com.google.gson.JsonObject jsonObject) - Specified by:
shouldPassConditionsin interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-
isLoadingStateValid
public boolean isLoadingStateValid()- Specified by:
isLoadingStateValidin interfacedhyces.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:
getRegistryValuein interfacedhyces.trimmed.modhelper.services.helpers.PlatformHelper
-