Modifier and Type | Field and Description |
---|---|
private int |
defaultKey |
private boolean |
gui3d |
private com.google.common.collect.ImmutableSet<java.lang.String> |
meshes |
private B3DModel |
model |
private ResourceLocation |
modelLocation |
private boolean |
smooth |
private com.google.common.collect.ImmutableMap<java.lang.String,ResourceLocation> |
textures |
Constructor and Description |
---|
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
boolean smooth,
boolean gui3d,
int defaultKey) |
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
boolean smooth,
boolean gui3d,
int defaultKey,
com.google.common.collect.ImmutableMap<java.lang.String,ResourceLocation> textures) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
private static com.google.common.collect.ImmutableMap<java.lang.String,ResourceLocation> |
buildTextures(java.util.List<B3DModel.Texture> textures) |
java.util.Optional<IClip> |
getClip(java.lang.String name) |
IModelState |
getDefaultState() |
private static java.lang.String |
getLocation(java.lang.String path) |
java.util.Collection<ResourceLocation> |
getTextures() |
B3DLoader.ModelWrapper |
gui3d(boolean value) |
B3DLoader.ModelWrapper |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> data)
Allows the model to process custom data from the variant definition.
|
B3DLoader.ModelWrapper |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
Applies new textures to the model.
|
B3DLoader.ModelWrapper |
smoothLighting(boolean value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVanillaModel, getDependencies, uvlock
private final ResourceLocation modelLocation
private final B3DModel model
private final com.google.common.collect.ImmutableSet<java.lang.String> meshes
private final com.google.common.collect.ImmutableMap<java.lang.String,ResourceLocation> textures
private final boolean smooth
private final boolean gui3d
private final int defaultKey
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<java.lang.String> meshes, boolean smooth, boolean gui3d, int defaultKey)
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<java.lang.String> meshes, boolean smooth, boolean gui3d, int defaultKey, com.google.common.collect.ImmutableMap<java.lang.String,ResourceLocation> textures)
private static com.google.common.collect.ImmutableMap<java.lang.String,ResourceLocation> buildTextures(java.util.List<B3DModel.Texture> textures)
private static java.lang.String getLocation(java.lang.String path)
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public B3DLoader.ModelWrapper retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel
public B3DLoader.ModelWrapper process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> data)
IModel
public java.util.Optional<IClip> getClip(java.lang.String name)
public IModelState getDefaultState()
getDefaultState
in interface IModel
public B3DLoader.ModelWrapper smoothLighting(boolean value)
smoothLighting
in interface IModel
public B3DLoader.ModelWrapper gui3d(boolean value)