@Environment(value=CLIENT) public class MultipartUnbakedModel extends Object implements UnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
MultipartUnbakedModel.Deserializer |
Modifier and Type | Field and Description |
---|---|
private List<MultipartModelComponent> |
components |
private StateManager<Block,BlockState> |
stateFactory |
Constructor and Description |
---|
MultipartUnbakedModel(StateManager<Block,BlockState> stateFactory,
List<MultipartModelComponent> components) |
Modifier and Type | Method and Description |
---|---|
BakedModel |
bake(ModelLoader loader,
Function<SpriteIdentifier,Sprite> textureGetter,
ModelBakeSettings rotationContainer,
Identifier modelId) |
boolean |
equals(Object o) |
List<MultipartModelComponent> |
getComponents() |
Collection<Identifier> |
getModelDependencies() |
Set<WeightedUnbakedModel> |
getModels() |
Collection<SpriteIdentifier> |
getTextureDependencies(Function<Identifier,UnbakedModel> unbakedModelGetter,
Set<com.mojang.datafixers.util.Pair<String,String>> unresolvedTextureReferences) |
int |
hashCode() |
private final StateManager<Block,BlockState> stateFactory
private final List<MultipartModelComponent> components
public MultipartUnbakedModel(StateManager<Block,BlockState> stateFactory, List<MultipartModelComponent> components)
public List<MultipartModelComponent> getComponents()
public Set<WeightedUnbakedModel> getModels()
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