Modifier and Type | Class and Description |
---|---|
(package private) static class |
OBJModel.CustomData |
static class |
OBJModel.Face |
static class |
OBJModel.Group
Deprecated.
|
static class |
OBJModel.Material |
static class |
OBJModel.MaterialLibrary |
static class |
OBJModel.Normal |
class |
OBJModel.OBJBakedModel |
static class |
OBJModel.OBJProperty
Deprecated.
|
static class |
OBJModel.OBJState
Deprecated.
|
static class |
OBJModel.Parser |
static class |
OBJModel.Texture |
static class |
OBJModel.TextureCoordinate |
static class |
OBJModel.UVsOutOfBoundsException |
static class |
OBJModel.Vertex |
Modifier and Type | Field and Description |
---|---|
private OBJModel.CustomData |
customData |
private OBJModel.MaterialLibrary |
matLib |
private ResourceLocation |
modelLocation |
Constructor and Description |
---|
OBJModel(OBJModel.MaterialLibrary matLib,
ResourceLocation modelLocation) |
OBJModel(OBJModel.MaterialLibrary matLib,
ResourceLocation modelLocation,
OBJModel.CustomData customData) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
OBJModel.MaterialLibrary |
getMatLib() |
java.util.Collection<ResourceLocation> |
getTextures() |
IModel |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Allows the model to process custom data from the variant definition.
|
IModel |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
Applies new textures to the model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVanillaModel, getClip, getDefaultState, getDependencies, gui3d, smoothLighting, uvlock
private OBJModel.MaterialLibrary matLib
private final ResourceLocation modelLocation
private OBJModel.CustomData customData
public OBJModel(OBJModel.MaterialLibrary matLib, ResourceLocation modelLocation)
public OBJModel(OBJModel.MaterialLibrary matLib, ResourceLocation modelLocation, OBJModel.CustomData customData)
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public OBJModel.MaterialLibrary getMatLib()
public IModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModel
public IModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel