Class ModelHelpers
java.lang.Object
org.cyclops.integrateddynamics.core.client.model.ModelHelpers
Several helpers for models.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.client.renderer.block.model.BlockModel
static final net.minecraft.client.renderer.block.model.ItemModelGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.renderer.block.model.BlockModel
loadModelBlock
(net.minecraft.resources.ResourceLocation modelLocation) Read the given model location to aBlockModel
.
-
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 aBlockModel
.- Parameters:
modelLocation
- A model location (without .json suffix)- Returns:
- The corresponding model.
- Throws:
IOException
- If the model file was invalid.
-