Class ModelBakery
java.lang.Object
net.minecraft.client.resources.model.ModelBakery
- Direct Known Subclasses:
ModelLoader
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<ResourceLocation,com.mojang.datafixers.util.Pair<TextureAtlas,TextureAtlas.Preparations>>
private AtlasSet
private Map<org.apache.commons.lang3.tuple.Triple<ResourceLocation,Transformation,Boolean>,BakedModel>
private Map<ResourceLocation,BakedModel>
static Material
static BlockModel
private BlockColors
static List<ResourceLocation>
private static String
private static String
private static String
private static com.google.common.base.Splitter
private BlockModelDefinition.Context
static int
static List<ResourceLocation>
static List<RenderType>
private static com.google.common.base.Splitter
static Material
static Material
static BlockModel
private static int
private static StateDefinition<Block,BlockState>
private static ItemModelGenerator
static Material
private Set<ResourceLocation>
private static org.apache.logging.log4j.Logger
static ModelResourceLocation
private static String
static String
private static String
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
private int
static Material
protected ResourceManager
static Material
(package private) static int
private static Map<ResourceLocation,StateDefinition<Block,BlockState>>
private Map<ResourceLocation,UnbakedModel>
private Map<ResourceLocation,UnbakedModel>
static Material
static Material
-
Constructor Summary
ModifierConstructorDescriptionprotected
ModelBakery(ResourceManager p_119247_, BlockColors p_119248_, boolean vanillaBakery)
ModelBakery(ResourceManager p_119247_, BlockColors p_119248_, ProfilerFiller p_119249_, int p_119250_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addModelToCache(ResourceLocation p_217843_1_)
bake(ResourceLocation p_119350_, ModelState p_119351_)
Deprecated.bake(ResourceLocation p_119350_, ModelState p_119351_, Function<Material,TextureAtlasSprite> sprites)
private void
cacheAndQueueDependencies(ResourceLocation p_119353_, UnbakedModel p_119354_)
getModel(ResourceLocation p_119342_)
it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
(package private) static <T extends Comparable<T>>
TgetValueHelper(Property<T> p_119277_, String p_119278_)
protected BlockModel
loadBlockModel(ResourceLocation p_119365_)
private void
loadModel(ResourceLocation p_119363_)
private void
loadTopLevel(ModelResourceLocation p_119307_)
private static Predicate<BlockState>
predicate(StateDefinition<Block,BlockState> p_119274_, String p_119275_)
protected void
processLoading(ProfilerFiller p_119249_, int p_119250_)
private void
registerModelGroup(Iterable<BlockState> p_119311_)
uploadTextures(TextureManager p_119299_, ProfilerFiller p_119300_)
-
Field Details
-
FIRE_0
-
FIRE_1
-
LAVA_FLOW
-
WATER_FLOW
-
WATER_OVERLAY
-
BANNER_BASE
-
SHIELD_BASE
-
NO_PATTERN_SHIELD
-
DESTROY_STAGE_COUNT
public static final int DESTROY_STAGE_COUNT- See Also:
- Constant Field Values
-
DESTROY_STAGES
-
BREAKING_LOCATIONS
-
DESTROY_TYPES
-
UNREFERENCED_TEXTURES
-
SINGLETON_MODEL_GROUP
static final int SINGLETON_MODEL_GROUP- See Also:
- Constant Field Values
-
INVISIBLE_MODEL_GROUP
private static final int INVISIBLE_MODEL_GROUP- See Also:
- Constant Field Values
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
BUILTIN_SLASH
- See Also:
- Constant Field Values
-
BUILTIN_SLASH_GENERATED
- See Also:
- Constant Field Values
-
BUILTIN_BLOCK_ENTITY
- See Also:
- Constant Field Values
-
MISSING_MODEL_NAME
- See Also:
- Constant Field Values
-
MISSING_MODEL_LOCATION
-
MISSING_MODEL_LOCATION_STRING
-
MISSING_MODEL_MESH
-
BUILTIN_MODELS
-
COMMA_SPLITTER
private static final com.google.common.base.Splitter COMMA_SPLITTER -
EQUAL_SPLITTER
private static final com.google.common.base.Splitter EQUAL_SPLITTER -
GENERATION_MARKER
-
BLOCK_ENTITY_MARKER
-
ITEM_FRAME_FAKE_DEFINITION
-
ITEM_MODEL_GENERATOR
-
STATIC_DEFINITIONS
-
resourceManager
-
atlasSet
-
blockColors
-
loadingStack
-
context
-
unbakedCache
-
bakedCache
private final Map<org.apache.commons.lang3.tuple.Triple<ResourceLocation,Transformation,Boolean>,BakedModel> bakedCache -
topLevelModels
-
bakedTopLevelModels
-
atlasPreparations
private Map<ResourceLocation,com.mojang.datafixers.util.Pair<TextureAtlas,TextureAtlas.Preparations>> atlasPreparations -
nextModelGroup
private int nextModelGroup -
modelGroups
-
-
Constructor Details
-
ModelBakery
public ModelBakery(ResourceManager p_119247_, BlockColors p_119248_, ProfilerFiller p_119249_, int p_119250_) -
ModelBakery
-
-
Method Details
-
processLoading
-
uploadTextures
-
predicate
private static Predicate<BlockState> predicate(StateDefinition<Block,BlockState> p_119274_, String p_119275_) -
getValueHelper
@Nullable static <T extends Comparable<T>> T getValueHelper(Property<T> p_119277_, String p_119278_) -
getModel
-
loadModel
- Throws:
Exception
-
cacheAndQueueDependencies
-
addModelToCache
-
loadTopLevel
-
registerModelGroup
-
bake
Deprecated. -
bake
@Nullable public BakedModel bake(ResourceLocation p_119350_, ModelState p_119351_, Function<Material,TextureAtlasSprite> sprites) -
loadBlockModel
- Throws:
IOException
-
getBakedTopLevelModels
-
getModelGroups
-
getSpecialModels
-
getSpriteMap
-