private static class ModelLoader.MultipartModel extends java.lang.Object implements IModel
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
location |
private Multipart |
multipart |
private com.google.common.collect.ImmutableMap<Selector,IModel> |
partModels |
Modifier | Constructor and Description |
---|---|
|
MultipartModel(ResourceLocation location,
Multipart multipart) |
private |
MultipartModel(ResourceLocation location,
Multipart multipart,
com.google.common.collect.ImmutableMap<Selector,IModel> partModels) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
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, getTextures, gui3d, process, smoothLighting, uvlock
private final ResourceLocation location
private final Multipart multipart
public MultipartModel(ResourceLocation location, Multipart multipart) throws java.lang.Exception
java.lang.Exception
private MultipartModel(ResourceLocation location, Multipart multipart, com.google.common.collect.ImmutableMap<Selector,IModel> partModels)
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public IModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel