Class ModelBakery
java.lang.Object
net.minecraft.client.resources.model.ModelBakery
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) class
static interface
-
Field Summary
Modifier and TypeFieldDescription(package private) final Map
<ModelBakery.BakedCacheKey, BakedModel> private final Map
<ModelResourceLocation, BakedModel> static final Material
static final BlockModel
static final List
<ResourceLocation> private static final String
private static final String
private static final String
static final int
static final List
<ResourceLocation> static final List
<RenderType> static final Material
static final Material
static final BlockModel
(package private) static final ItemModelGenerator
static final Material
private final Set
<ResourceLocation> private static final org.slf4j.Logger
static final ResourceLocation
static final String
private static final String
static final ModelResourceLocation
private final UnbakedModel
static final FileToIdConverter
private final it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> private final Map
<ResourceLocation, BlockModel> static final Material
static final Material
private final Map
<ModelResourceLocation, UnbakedModel> private final Map
<ResourceLocation, UnbakedModel> static final Material
static final Material
-
Constructor Summary
ConstructorDescriptionModelBakery
(BlockColors p_249183_, ProfilerFiller p_252014_, Map<ResourceLocation, BlockModel> p_251087_, Map<ResourceLocation, List<BlockStateModelLoader.LoadedJson>> p_250416_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeModels
(ModelBakery.TextureGetter p_343407_) (package private) UnbakedModel
getModel
(ResourceLocation p_119342_) it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> protected BlockModel
loadBlockModel
(ResourceLocation p_119365_) private void
loadItemModelAndDependencies
(ResourceLocation p_344766_) private void
private void
registerModel
(ModelResourceLocation p_342222_, UnbakedModel p_344405_) private void
registerModelAndLoadDependencies
(ModelResourceLocation p_342218_, UnbakedModel p_344824_)
-
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:
-
DESTROY_STAGES
-
BREAKING_LOCATIONS
-
DESTROY_TYPES
-
LOGGER
private static final org.slf4j.Logger LOGGER -
BUILTIN_SLASH
- See Also:
-
BUILTIN_SLASH_GENERATED
- See Also:
-
BUILTIN_BLOCK_ENTITY
- See Also:
-
MISSING_MODEL_NAME
- See Also:
-
MISSING_MODEL_LOCATION
-
MISSING_MODEL_VARIANT
-
MODEL_LISTER
-
MISSING_MODEL_MESH
-
BUILTIN_MODELS
-
GENERATION_MARKER
-
BLOCK_ENTITY_MARKER
-
ITEM_MODEL_GENERATOR
-
modelResources
-
loadingStack
-
unbakedCache
-
bakedCache
-
topLevelModels
-
bakedTopLevelModels
-
missingModel
-
modelGroups
-
-
Constructor Details
-
ModelBakery
public ModelBakery(BlockColors p_249183_, ProfilerFiller p_252014_, Map<ResourceLocation, BlockModel> p_251087_, Map<ResourceLocation, List<BlockStateModelLoader.LoadedJson>> p_250416_)
-
-
Method Details
-
bakeModels
-
getModel
-
loadItemModelAndDependencies
-
loadSpecialItemModelAndDependencies
-
registerModelAndLoadDependencies
private void registerModelAndLoadDependencies(ModelResourceLocation p_342218_, UnbakedModel p_344824_) -
registerModel
-
loadBlockModel
- Throws:
IOException
-
getBakedTopLevelModels
-
getModelGroups
-