private static final class ModelLoader.WeightedRandomModel extends java.lang.Object implements IModel
Modifier and Type | Field and Description |
---|---|
private IModelState |
defaultState |
private java.util.List<ResourceLocation> |
locations |
private java.util.List<IModel> |
models |
private java.util.Set<ResourceLocation> |
textures |
private java.util.List<Variant> |
variants |
Modifier | Constructor and Description |
---|---|
private |
WeightedRandomModel(java.util.List<Variant> variants,
java.util.List<ResourceLocation> locations,
java.util.Set<ResourceLocation> textures,
java.util.List<IModel> models,
IModelState defaultState) |
|
WeightedRandomModel(ResourceLocation parent,
VariantList variants) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
IModelState |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures() |
ModelLoader.WeightedRandomModel |
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, gui3d, process, smoothLighting, uvlock
private final java.util.List<Variant> variants
private final java.util.List<ResourceLocation> locations
private final java.util.Set<ResourceLocation> textures
private final java.util.List<IModel> models
private final IModelState defaultState
public WeightedRandomModel(ResourceLocation parent, VariantList variants) throws java.lang.Exception
java.lang.Exception
private WeightedRandomModel(java.util.List<Variant> variants, java.util.List<ResourceLocation> locations, java.util.Set<ResourceLocation> textures, java.util.List<IModel> models, IModelState defaultState)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
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 IModelState getDefaultState()
getDefaultState
in interface IModel
public ModelLoader.WeightedRandomModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel