public class OBJModel extends java.lang.Object implements IRetexturableModel<OBJModel>, IModelCustomData<OBJModel>
Modifier and Type | Class and Description |
---|---|
static class |
OBJModel.Face |
static class |
OBJModel.Group |
static class |
OBJModel.Material |
static class |
OBJModel.MaterialLibrary |
static class |
OBJModel.Normal |
class |
OBJModel.OBJBakedModel |
static class |
OBJModel.OBJProperty |
static class |
OBJModel.OBJState |
static class |
OBJModel.Parser |
static class |
OBJModel.Texture |
static class |
OBJModel.TextureCoordinate |
static class |
OBJModel.UVsOutOfBoundsException |
static class |
OBJModel.Vertex |
Constructor and Description |
---|
OBJModel(OBJModel.MaterialLibrary matLib,
ResourceLocation modelLocation) |
OBJModel(OBJModel.MaterialLibrary matLib,
ResourceLocation modelLocation,
net.minecraftforge.client.model.obj.OBJModel.CustomData customData) |
Modifier and Type | Method and Description |
---|---|
IFlexibleBakedModel |
bake(IModelState state,
VertexFormat format,
<any> bakedTextureGetter) |
IModelState |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
OBJModel.MaterialLibrary |
getMatLib() |
java.util.Collection<ResourceLocation> |
getTextures() |
IModel |
process(<any> customData)
Allows the model to process custom data from the variant definition.
|
IModel |
retexture(<any> textures)
Applies new textures to the model.
|
public OBJModel(OBJModel.MaterialLibrary matLib, ResourceLocation modelLocation)
public OBJModel(OBJModel.MaterialLibrary matLib, ResourceLocation modelLocation, net.minecraftforge.client.model.obj.OBJModel.CustomData customData)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IFlexibleBakedModel bake(IModelState state, VertexFormat format, <any> bakedTextureGetter)
public OBJModel.MaterialLibrary getMatLib()
public IModel process(<any> customData)
IModelCustomData
process
in interface IModelCustomData<OBJModel>
public IModel retexture(<any> textures)
IRetexturableModel
retexture
in interface IRetexturableModel<OBJModel>
textures
- Newpublic IModelState getDefaultState()
getDefaultState
in interface IModel