public class GenericModelHolder<M extends net.minecraft.client.renderer.model.Model> extends ModelHolder<M>
CustomModel
Only in object form.model
Constructor and Description |
---|
GenericModelHolder(java.lang.Class<M> clazz) |
GenericModelHolder(java.lang.Class<M> clazz,
java.lang.Object... parameters) |
GenericModelHolder(java.lang.Class<M> clazz,
net.minecraft.util.ResourceLocation resource) |
GenericModelHolder(net.minecraft.util.ResourceLocation model) |
GenericModelHolder(java.lang.String modelPath) |
Modifier and Type | Method and Description |
---|---|
protected M |
loadModel() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
com.mojang.blaze3d.vertex.IVertexBuilder buffer,
int packedLight,
int packedOverlay) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
com.mojang.blaze3d.vertex.IVertexBuilder buffer,
int packedLight,
int packedOverlay,
float r,
float g,
float b,
float a) |
clear, getModel
public GenericModelHolder(java.lang.Class<M> clazz, net.minecraft.util.ResourceLocation resource)
clazz
- The class of the model. Will normally be GenericSmdModel
unless it's an older model.resource
- The ResourceLocation of the model's .pqc file (Only applies to GenericSmdModel). null otherwise.public GenericModelHolder(java.lang.Class<M> clazz, java.lang.Object... parameters)
public GenericModelHolder(java.lang.Class<M> clazz)
public GenericModelHolder(net.minecraft.util.ResourceLocation model)
public GenericModelHolder(java.lang.String modelPath)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, com.mojang.blaze3d.vertex.IVertexBuilder buffer, int packedLight, int packedOverlay, float r, float g, float b, float a)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, com.mojang.blaze3d.vertex.IVertexBuilder buffer, int packedLight, int packedOverlay)
protected M loadModel()
loadModel
in class ModelHolder<M extends net.minecraft.client.renderer.model.Model>