Package net.minecraft.data
Class TexturedModel
- java.lang.Object
-
- net.minecraft.data.TexturedModel
-
public class TexturedModel extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TexturedModel.ISupplier
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
TexturedModel(ModelTextures p_i232548_1_, ModelsUtil p_i232548_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
create(Block p_240459_1_, java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> p_240459_2_)
static TexturedModel
createAllSame(ResourceLocation p_240463_0_)
private static TexturedModel.ISupplier
createDefault(java.util.function.Function<Block,ModelTextures> p_240461_0_, ModelsUtil p_240461_1_)
ResourceLocation
createWithSuffix(Block p_240458_1_, java.lang.String p_240458_2_, java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> p_240458_3_)
ModelTextures
getMapping()
ModelsUtil
getTemplate()
TexturedModel
updateTextures(java.util.function.Consumer<ModelTextures> p_240460_1_)
-
-
-
Field Detail
-
CUBE
public static final TexturedModel.ISupplier CUBE
-
CUBE_MIRRORED
public static final TexturedModel.ISupplier CUBE_MIRRORED
-
COLUMN
public static final TexturedModel.ISupplier COLUMN
-
COLUMN_HORIZONTAL
public static final TexturedModel.ISupplier COLUMN_HORIZONTAL
-
CUBE_TOP_BOTTOM
public static final TexturedModel.ISupplier CUBE_TOP_BOTTOM
-
CUBE_TOP
public static final TexturedModel.ISupplier CUBE_TOP
-
ORIENTABLE_ONLY_TOP
public static final TexturedModel.ISupplier ORIENTABLE_ONLY_TOP
-
ORIENTABLE
public static final TexturedModel.ISupplier ORIENTABLE
-
CARPET
public static final TexturedModel.ISupplier CARPET
-
GLAZED_TERRACOTTA
public static final TexturedModel.ISupplier GLAZED_TERRACOTTA
-
CORAL_FAN
public static final TexturedModel.ISupplier CORAL_FAN
-
PARTICLE_ONLY
public static final TexturedModel.ISupplier PARTICLE_ONLY
-
ANVIL
public static final TexturedModel.ISupplier ANVIL
-
LEAVES
public static final TexturedModel.ISupplier LEAVES
-
LANTERN
public static final TexturedModel.ISupplier LANTERN
-
HANGING_LANTERN
public static final TexturedModel.ISupplier HANGING_LANTERN
-
SEAGRASS
public static final TexturedModel.ISupplier SEAGRASS
-
COLUMN_ALT
public static final TexturedModel.ISupplier COLUMN_ALT
-
COLUMN_HORIZONTAL_ALT
public static final TexturedModel.ISupplier COLUMN_HORIZONTAL_ALT
-
TOP_BOTTOM_WITH_WALL
public static final TexturedModel.ISupplier TOP_BOTTOM_WITH_WALL
-
COLUMN_WITH_WALL
public static final TexturedModel.ISupplier COLUMN_WITH_WALL
-
mapping
private final ModelTextures mapping
-
template
private final ModelsUtil template
-
-
Constructor Detail
-
TexturedModel
private TexturedModel(ModelTextures p_i232548_1_, ModelsUtil p_i232548_2_)
-
-
Method Detail
-
getTemplate
public ModelsUtil getTemplate()
-
getMapping
public ModelTextures getMapping()
-
updateTextures
public TexturedModel updateTextures(java.util.function.Consumer<ModelTextures> p_240460_1_)
-
create
public ResourceLocation create(Block p_240459_1_, java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> p_240459_2_)
-
createWithSuffix
public ResourceLocation createWithSuffix(Block p_240458_1_, java.lang.String p_240458_2_, java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> p_240458_3_)
-
createDefault
private static TexturedModel.ISupplier createDefault(java.util.function.Function<Block,ModelTextures> p_240461_0_, ModelsUtil p_240461_1_)
-
createAllSame
public static TexturedModel createAllSame(ResourceLocation p_240463_0_)
-
-