public class ModelComponent extends java.lang.Object implements IRenderComponent
ModelComponent allows models to be rendered for MalisisBlock.| Modifier and Type | Field and Description |
|---|---|
protected MalisisModel |
model
MalisisModel for this ModelComponent. |
protected net.minecraft.util.ResourceLocation |
resourceLocation
ResourceLocation for the model. |
| Constructor and Description |
|---|
ModelComponent(java.lang.String modelName)
Instantiates a new
ModelComponent and load its MalisisModel. |
| Modifier and Type | Method and Description |
|---|---|
MalisisModel |
getModel()
Gets the
MalisisModel for this ModelComponent. |
protected void |
loadModel()
Loads the
MalisisBlock for this ModelComponent. |
void |
render(net.minecraft.block.Block block,
MalisisRenderer<net.minecraft.tileentity.TileEntity> renderer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClientComponentgetComponent, getDependenciesprotected net.minecraft.util.ResourceLocation resourceLocation
ResourceLocation for the model.protected MalisisModel model
MalisisModel for this ModelComponent.public ModelComponent(java.lang.String modelName)
ModelComponent and load its MalisisModel.modelName - the model nameprotected void loadModel()
MalisisBlock for this ModelComponent.public MalisisModel getModel()
MalisisModel for this ModelComponent.public void render(net.minecraft.block.Block block,
MalisisRenderer<net.minecraft.tileentity.TileEntity> renderer)
render in interface IRenderComponent