Class SplicingTableIotaRenderers
java.lang.Object
gay.object.hexdebug.api.client.splicing.SplicingTableIotaRenderers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SplicingTableIotaRendererParser<?>getParser(@NotNull net.minecraft.resources.ResourceLocation parserId) static @Nullable SplicingTableIotaRendererProvidergetProvider(@Nullable at.petrak.hexcasting.api.casting.iota.IotaType<?> iotaType) Get a previously loaded provider for a given iota type.static @Nullable SplicingTableIotaRendererProvidergetProvider(@Nullable at.petrak.hexcasting.api.casting.iota.IotaType<?> iotaType, boolean useFallback) Get a previously loaded provider for a given iota type.static @NotNull SplicingTableIotaRendererProviderloadProvider(@NotNull net.minecraft.resources.ResourceLocation providerId) Get/load a provider by ID.static @NotNull SplicingTableIotaRendererProviderparseProvider(@NotNull com.google.gson.JsonObject jsonObject) Parse a provider from a raw JSON object.static voidregister(@NotNull net.minecraft.resources.ResourceLocation parserId, @NotNull SplicingTableIotaRendererParser<?> parser) Register a splicing table iota renderer.
-
Constructor Details
-
SplicingTableIotaRenderers
public SplicingTableIotaRenderers()
-
-
Method Details
-
register
public static void register(@NotNull @NotNull net.minecraft.resources.ResourceLocation parserId, @NotNull @NotNull SplicingTableIotaRendererParser<?> parser) Register a splicing table iota renderer.
This is used to parse resource files and create providers for iota renderers. -
loadProvider
@NotNull public static @NotNull SplicingTableIotaRendererProvider loadProvider(@NotNull @NotNull net.minecraft.resources.ResourceLocation providerId) Get/load a provider by ID. Throws if the referenced provider does not exist or fails to load. Intended for use in providers that reference other providers.
This should only be called from inside ofSplicingTableIotaRendererParser.parse(com.google.gson.Gson, com.google.gson.JsonObject, T). -
parseProvider
@NotNull public static @NotNull SplicingTableIotaRendererProvider parseProvider(@NotNull @NotNull com.google.gson.JsonObject jsonObject) Parse a provider from a raw JSON object. Intended for use in providers that contain other providers.
This should only be called from inside ofSplicingTableIotaRendererParser.parse(com.google.gson.Gson, com.google.gson.JsonObject, T). -
getProvider
@Nullable public static @Nullable SplicingTableIotaRendererProvider getProvider(@Nullable @Nullable at.petrak.hexcasting.api.casting.iota.IotaType<?> iotaType) Get a previously loaded provider for a given iota type.
Returns the fallback provider if the type isnullor no provider was found for that type, ornullif the fallback provider has not yet been loaded. -
getProvider
@Nullable public static @Nullable SplicingTableIotaRendererProvider getProvider(@Nullable @Nullable at.petrak.hexcasting.api.casting.iota.IotaType<?> iotaType, boolean useFallback) Get a previously loaded provider for a given iota type.
Returns the fallback provider ifuseFallbackistrueand either the type isnullor no provider was found for that type, ornullifuseFallbackisfalseor the fallback provider has not yet been loaded. -
getParser
@Internal @Nullable public static @Nullable SplicingTableIotaRendererParser<?> getParser(@NotNull @NotNull net.minecraft.resources.ResourceLocation parserId)
-