Class SplicingTableIotaRenderers

java.lang.Object
gay.object.hexdebug.api.client.splicing.SplicingTableIotaRenderers

public final class SplicingTableIotaRenderers extends Object
  • 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 of SplicingTableIotaRendererParser.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 of SplicingTableIotaRendererParser.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 is null or no provider was found for that type, or null if 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 if useFallback is true and either the type is null or no provider was found for that type, or null if useFallback is false or the fallback provider has not yet been loaded.
    • getParser

      @Internal @Nullable public static @Nullable SplicingTableIotaRendererParser<?> getParser(@NotNull @NotNull net.minecraft.resources.ResourceLocation parserId)