@Environment(value=CLIENT) public class ModelVariantMap extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelVariantMap.DeserializationContext |
static class |
ModelVariantMap.Deserializer |
Modifier and Type | Field and Description |
---|---|
private MultipartUnbakedModel |
multipartModel |
private Map<String,WeightedUnbakedModel> |
variantMap |
Constructor and Description |
---|
ModelVariantMap(List<ModelVariantMap> variantMapList) |
ModelVariantMap(Map<String,WeightedUnbakedModel> variantMap,
MultipartUnbakedModel multipartModel) |
Modifier and Type | Method and Description |
---|---|
static ModelVariantMap |
deserialize(ModelVariantMap.DeserializationContext context,
Reader reader) |
boolean |
equals(Object o) |
MultipartUnbakedModel |
getMultipartModel() |
Map<String,WeightedUnbakedModel> |
getVariantMap() |
int |
hashCode() |
boolean |
hasMultipartModel() |
private final Map<String,WeightedUnbakedModel> variantMap
private MultipartUnbakedModel multipartModel
public ModelVariantMap(Map<String,WeightedUnbakedModel> variantMap, MultipartUnbakedModel multipartModel)
public ModelVariantMap(List<ModelVariantMap> variantMapList)
public static ModelVariantMap deserialize(ModelVariantMap.DeserializationContext context, Reader reader)
public Map<String,WeightedUnbakedModel> getVariantMap()
public boolean hasMultipartModel()
public MultipartUnbakedModel getMultipartModel()