public static class B3DLoader.ModelWrapper extends java.lang.Object implements IRetexturableModel<B3DLoader.ModelWrapper>, IModelCustomData<B3DLoader.ModelWrapper>, IModelSimpleProperties<B3DLoader.ModelWrapper>, IAnimatedModel
| Constructor and Description |
|---|
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
<any> meshes,
boolean smooth,
boolean gui3d,
int defaultKey) |
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
<any> meshes,
boolean smooth,
boolean gui3d,
int defaultKey,
<any> textures) |
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
<any> meshes,
int defaultKey)
Deprecated.
|
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
<any> meshes,
int defaultKey,
<any> textures)
Deprecated.
|
| 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() |
B3DLoader.ModelWrapper |
gui3d(boolean value) |
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.
|
B3DLoader.ModelWrapper |
smoothLighting(boolean value) |
@Deprecated public ModelWrapper(ResourceLocation modelLocation, B3DModel model, <any> meshes, int defaultKey)
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, <any> meshes, boolean smooth, boolean gui3d, int defaultKey)
@Deprecated public ModelWrapper(ResourceLocation modelLocation, B3DModel model, <any> meshes, int defaultKey, <any> textures)
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, <any> meshes, boolean smooth, boolean gui3d, 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 IRetexturableModel<B3DLoader.ModelWrapper>textures - Newpublic IModel process(<any> data)
IModelCustomDataprocess in interface IModelCustomData<B3DLoader.ModelWrapper>public <any> getClip(java.lang.String name)
getClip in interface IAnimatedModelpublic IModelState getDefaultState()
getDefaultState in interface IModelpublic B3DLoader.ModelWrapper smoothLighting(boolean value)
smoothLighting in interface IModelSimpleProperties<B3DLoader.ModelWrapper>public B3DLoader.ModelWrapper gui3d(boolean value)
gui3d in interface IModelSimpleProperties<B3DLoader.ModelWrapper>