public static class B3DLoader.ModelWrapper extends java.lang.Object implements IRetexturableModel, IModelCustomData, IAnimatedModel
Constructor and Description |
---|
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
<any> meshes,
int defaultKey) |
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
<any> meshes,
int defaultKey,
<any> textures) |
Modifier and Type | Method and Description |
---|---|
IFlexibleBakedModel |
bake(IModelState state,
VertexFormat format,
<any> bakedTextureGetter) |
<any> |
getClip(java.lang.String name) |
IModelState |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures() |
IModel |
process(<any> data)
Allows the model to process custom data from the variant definition
|
IModel |
retexture(<any> textures)
Applies new textures to the model.
|
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, <any> meshes, int defaultKey)
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, <any> meshes, int defaultKey, <any> textures)
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 IModel retexture(<any> textures)
IRetexturableModel
retexture
in interface IRetexturableModel
textures
- Newpublic IModel process(<any> data)
IModelCustomData
process
in interface IModelCustomData
public <any> getClip(java.lang.String name)
getClip
in interface IAnimatedModel
public IModelState getDefaultState()
getDefaultState
in interface IModel