@Deprecated public class OBJModel extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
OBJModel.Face
Deprecated.
|
static class |
OBJModel.Group
Deprecated.
|
static class |
OBJModel.Material
Deprecated.
|
static class |
OBJModel.MaterialLibrary
Deprecated.
|
static class |
OBJModel.Normal
Deprecated.
|
class |
OBJModel.OBJBakedModel
Deprecated.
|
static class |
OBJModel.OBJState
Deprecated.
|
static class |
OBJModel.Parser
Deprecated.
|
static class |
OBJModel.Texture
Deprecated.
|
static class |
OBJModel.TextureCoordinate
Deprecated.
|
static class |
OBJModel.UVsOutOfBoundsException
Deprecated.
|
static class |
OBJModel.Vertex
Deprecated.
|
Constructor and Description |
---|
OBJModel(OBJModel.MaterialLibrary matLib,
ResourceLocation modelLocation)
Deprecated.
|
OBJModel(OBJModel.MaterialLibrary matLib,
ResourceLocation modelLocation,
net.minecraftforge.client.model.obj.OBJModel.CustomData customData)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter,
ISprite sprite,
VertexFormat format)
Deprecated.
|
java.util.Collection<ResourceLocation> |
getDependencies()
Deprecated.
|
OBJModel.MaterialLibrary |
getMatLib()
Deprecated.
|
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors)
Deprecated.
|
IUnbakedModel |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Deprecated.
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)
Deprecated.
Applies new textures to the model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bake
getDefaultState, gui3d, smoothLighting
getClip
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> getDependencies()
getDependencies
in interface IUnbakedModel
@Nullable public IBakedModel bake(ModelBakery bakery, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter, ISprite sprite, VertexFormat format)
bake
in interface IForgeUnbakedModel
spriteGetter
- Where textures will be looked up when bakingsprite
- Transforms to apply while baking. Usually will be an instance of IModelState
.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