java.lang.Object
org.cyclops.integrateddynamics.core.client.model.ModelHelpers

public final class ModelHelpers extends Object
Several helpers for models.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.client.renderer.block.model.BlockModel
     
    static final net.minecraft.client.renderer.block.model.ItemModelGenerator
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.renderer.block.model.BlockModel
    loadModelBlock(net.minecraft.resources.ResourceLocation modelLocation)
    Read the given model location to a BlockModel.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODEL_GENERATED

      public static final net.minecraft.client.renderer.block.model.BlockModel MODEL_GENERATED
    • MODEL_GENERATOR

      public static final net.minecraft.client.renderer.block.model.ItemModelGenerator MODEL_GENERATOR
  • Constructor Details

    • ModelHelpers

      public ModelHelpers()
  • Method Details

    • loadModelBlock

      public static net.minecraft.client.renderer.block.model.BlockModel loadModelBlock(net.minecraft.resources.ResourceLocation modelLocation) throws IOException
      Read the given model location to a BlockModel.
      Parameters:
      modelLocation - A model location (without .json suffix)
      Returns:
      The corresponding model.
      Throws:
      IOException - If the model file was invalid.