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 IModelpublic java.util.Collection<ResourceLocation> getTextures()
getTextures in interface IModelpublic IFlexibleBakedModel bake(IModelState state, VertexFormat format, <any> bakedTextureGetter)
public IModel retexture(<any> textures)
IRetexturableModelretexture in interface IRetexturableModeltextures - Newpublic IModel process(<any> data)
IModelCustomDataprocess in interface IModelCustomDatapublic <any> getClip(java.lang.String name)
getClip in interface IAnimatedModelpublic IModelState getDefaultState()
getDefaultState in interface IModel