Class FabricPlatformHelper
java.lang.Object
dev.dhyces.trimmed.modhelper.services.helpers.FabricPlatformHelper
- All Implemented Interfaces:
PlatformHelper
-
Constructor Summary
Constructors -
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>> registryKey, net.minecraft.resources.ResourceLocation valueKey) booleanbooleanisModLoaded(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)
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
isModLoaded
- Specified by:
isModLoadedin interfacePlatformHelper
-
isClientDist
public boolean isClientDist()- Specified by:
isClientDistin interfacePlatformHelper
-
isProduction
public boolean isProduction()- Specified by:
isProductionin interfacePlatformHelper
-
resolveRegistryPath
public String resolveRegistryPath(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> resourceKey) - Specified by:
resolveRegistryPathin interfacePlatformHelper
-
modRegistryExists
public <T> boolean modRegistryExists(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> modRegistry) - Specified by:
modRegistryExistsin interfacePlatformHelper
-
decodeWithConditions
public <T> Optional<T> decodeWithConditions(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, com.google.gson.JsonObject jsonObject) - Specified by:
decodeWithConditionsin interfacePlatformHelper
-
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 interfacePlatformHelper
-