Package net.minecraft.data.client.model
Class TexturedModel
java.lang.Object
net.minecraft.data.client.model.TexturedModel
public class TexturedModel extends Object
Represents a model with texture variables defined.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TexturedModel.Factory
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
TexturedModel(Texture texture, Model model)
-
Method Summary
Modifier and Type Method Description static TexturedModel
getCubeAll(Identifier id)
Model
getModel()
Texture
getTexture()
private static TexturedModel.Factory
makeFactory(Function<Block,Texture> textureGetter, Model model)
TexturedModel
texture(Consumer<Texture> textureConsumer)
Identifier
upload(Block block, String suffix, BiConsumer<Identifier,Supplier<JsonElement>> writer)
Identifier
upload(Block block, BiConsumer<Identifier,Supplier<JsonElement>> writer)
-
Field Details
-
CUBE_ALL
-
CUBE_MIRRORED_ALL
-
CUBE_COLUMN
-
CUBE_COLUMN_HORIZONTAL
-
CUBE_BOTTOM_TOP
-
CUBE_TOP
-
ORIENTABLE
-
ORIENTABLE_WITH_BOTTOM
-
CARPET
-
TEMPLATE_GLAZED_TERRACOTTA
-
CORAL_FAN
-
PARTICLE
-
TEMPLATE_ANVIL
-
LEAVES
-
TEMPLATE_LANTERN
-
TEMPLATE_HANGING_LANTERN
-
TEMPLATE_SEAGRASS
-
END_FOR_TOP_CUBE_COLUMN
-
END_FOR_TOP_CUBE_COLUMN_HORIZONTAL
-
WALL_CUBE_BOTTOM_TOP
-
field_23959
-
texture
-
model
-
-
Constructor Details
-
TexturedModel
-
-
Method Details
-
getModel
-
getTexture
-
texture
-
upload
-
upload
public Identifier upload(Block block, String suffix, BiConsumer<Identifier,Supplier<JsonElement>> writer) -
makeFactory
private static TexturedModel.Factory makeFactory(Function<Block,Texture> textureGetter, Model model) -
getCubeAll
-