public class TexturedModel extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TexturedModel.Factory |
Modifier | Constructor and Description |
---|---|
private |
TexturedModel(Texture texture,
Model model) |
Modifier and Type | Method and 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,
BiConsumer<Identifier,Supplier<JsonElement>> writer) |
Identifier |
upload(Block block,
String suffix,
BiConsumer<Identifier,Supplier<JsonElement>> writer) |
public static final TexturedModel.Factory CUBE_ALL
public static final TexturedModel.Factory CUBE_MIRRORED_ALL
public static final TexturedModel.Factory CUBE_COLUMN
public static final TexturedModel.Factory CUBE_COLUMN_HORIZONTAL
public static final TexturedModel.Factory CUBE_BOTTOM_TOP
public static final TexturedModel.Factory CUBE_TOP
public static final TexturedModel.Factory ORIENTABLE
public static final TexturedModel.Factory ORIENTABLE_WITH_BOTTOM
public static final TexturedModel.Factory CARPET
public static final TexturedModel.Factory TEMPLATE_GLAZED_TERRACOTTA
public static final TexturedModel.Factory CORAL_FAN
public static final TexturedModel.Factory PARTICLE
public static final TexturedModel.Factory TEMPLATE_ANVIL
public static final TexturedModel.Factory LEAVES
public static final TexturedModel.Factory TEMPLATE_LANTERN
public static final TexturedModel.Factory TEMPLATE_HANGING_LANTERN
public static final TexturedModel.Factory TEMPLATE_SEAGRASS
public static final TexturedModel.Factory END_FOR_TOP_CUBE_COLUMN
public static final TexturedModel.Factory END_FOR_TOP_CUBE_COLUMN_HORIZONTAL
public static final TexturedModel.Factory WALL_CUBE_BOTTOM_TOP
public static final TexturedModel.Factory field_23959
private final Texture texture
private final Model model
public Model getModel()
public Texture getTexture()
public TexturedModel texture(Consumer<Texture> textureConsumer)
public Identifier upload(Block block, BiConsumer<Identifier,Supplier<JsonElement>> writer)
public Identifier upload(Block block, String suffix, BiConsumer<Identifier,Supplier<JsonElement>> writer)
private static TexturedModel.Factory makeFactory(Function<Block,Texture> textureGetter, Model model)
public static TexturedModel getCubeAll(Identifier id)