@Environment(value=CLIENT) public class WeightedUnbakedModel extends Object implements UnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
WeightedUnbakedModel.Deserializer |
Modifier and Type | Field and Description |
---|---|
private List<ModelVariant> |
variants |
Constructor and Description |
---|
WeightedUnbakedModel(List<ModelVariant> variants) |
Modifier and Type | Method and Description |
---|---|
BakedModel |
bake(ModelLoader loader,
Function<SpriteIdentifier,Sprite> textureGetter,
ModelBakeSettings rotationContainer,
Identifier modelId) |
boolean |
equals(Object o) |
Collection<Identifier> |
getModelDependencies() |
Collection<SpriteIdentifier> |
getTextureDependencies(Function<Identifier,UnbakedModel> unbakedModelGetter,
Set<com.mojang.datafixers.util.Pair<String,String>> unresolvedTextureReferences) |
List<ModelVariant> |
getVariants() |
int |
hashCode() |
private final List<ModelVariant> variants
public WeightedUnbakedModel(List<ModelVariant> variants)
public List<ModelVariant> getVariants()
public Collection<Identifier> getModelDependencies()
getModelDependencies
in interface UnbakedModel
public Collection<SpriteIdentifier> getTextureDependencies(Function<Identifier,UnbakedModel> unbakedModelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> unresolvedTextureReferences)
getTextureDependencies
in interface UnbakedModel
@Nullable public BakedModel bake(ModelLoader loader, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId)
bake
in interface UnbakedModel