public class Model extends Object
Modifier and Type | Field and Description |
---|---|
private Optional<Identifier> |
parent |
private Set<TextureKey> |
requiredTextures |
private Optional<String> |
variant |
Constructor and Description |
---|
Model(Optional<Identifier> parent,
Optional<String> variant,
TextureKey[] requiredTextures) |
Modifier and Type | Method and Description |
---|---|
private Map<TextureKey,Identifier> |
createTextureMap(Texture texture) |
Identifier |
upload(Block block,
String suffix,
Texture texture,
BiConsumer<Identifier,Supplier<JsonElement>> modelCollector) |
Identifier |
upload(Block block,
Texture texture,
BiConsumer<Identifier,Supplier<JsonElement>> modelCollector) |
Identifier |
upload(Identifier id,
Texture texture,
BiConsumer<Identifier,Supplier<JsonElement>> modelCollector) |
Identifier |
uploadWithoutVariant(Block block,
String suffix,
Texture texture,
BiConsumer<Identifier,Supplier<JsonElement>> modelCollector) |
private final Optional<Identifier> parent
private final Set<TextureKey> requiredTextures
public Model(Optional<Identifier> parent, Optional<String> variant, TextureKey[] requiredTextures)
public Identifier upload(Block block, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
public Identifier upload(Block block, String suffix, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
public Identifier uploadWithoutVariant(Block block, String suffix, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
public Identifier upload(Identifier id, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
private Map<TextureKey,Identifier> createTextureMap(Texture texture)