public class OBJModel extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
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.OBJState
Deprecated.
|
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 |
---|---|
IBakedModel |
bake(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter,
IModelState state,
boolean uvlock,
VertexFormat format) |
OBJModel.MaterialLibrary |
getMatLib() |
java.util.Collection<ResourceLocation> |
getOverrideLocations() |
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
IUnbakedModel |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Allows the model to process custom data from the variant definition.
|
IUnbakedModel |
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
bake
getClip, getDefaultState, gui3d, smoothLighting
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> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<java.lang.String> missingTextureErrors)
getTextures
in interface IUnbakedModel
public java.util.Collection<ResourceLocation> getOverrideLocations()
getOverrideLocations
in interface IUnbakedModel
public IBakedModel bake(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter, IModelState state, boolean uvlock, VertexFormat format)
bake
in interface IModel<IUnbakedModel>
public OBJModel.MaterialLibrary getMatLib()
public IUnbakedModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModel
process
in interface IModel<IUnbakedModel>
public IUnbakedModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel
retexture
in interface IModel<IUnbakedModel>
textures
- New