Class ModelBakery
java.lang.Object
net.minecraft.client.resources.model.ModelBakery
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static class
static final record
(package private) class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescription(package private) final Map
<ModelBakery.BakedCacheKey, BakedModel> private final Map
<ResourceLocation, BakedModel> static final Material
static final BlockModel
private final BlockColors
static final FileToIdConverter
private final Map
<ResourceLocation, List<ModelBakery.LoadedJson>> static final List
<ResourceLocation> private static final String
private static final String
private static final String
private static final com.google.common.base.Splitter
private final BlockModelDefinition.Context
static final int
static final List
<ResourceLocation> static final List
<RenderType> private static final com.google.common.base.Splitter
static final Material
static final Material
static final BlockModel
private static final int
private static final StateDefinition
<Block, BlockState> (package private) static final ItemModelGenerator
static final Material
private final Set
<ResourceLocation> private static final org.slf4j.Logger
static final ModelResourceLocation
static final String
private static final String
static final FileToIdConverter
private final it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> private final Map
<ResourceLocation, BlockModel> private int
static final Material
static final Material
(package private) static final int
private static final Map
<ResourceLocation, StateDefinition<Block, BlockState>> private final Map
<ResourceLocation, 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<ModelBakery.LoadedJson>> p_250416_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeModels
(BiFunction<ResourceLocation, Material, TextureAtlasSprite> p_248669_) 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_) private void
registerModelGroup
(Iterable<BlockState> p_119311_)
-
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
-
SINGLETON_MODEL_GROUP
static final int SINGLETON_MODEL_GROUP- See Also:
-
INVISIBLE_MODEL_GROUP
private static final int INVISIBLE_MODEL_GROUP- See Also:
-
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
-
BLOCKSTATE_LISTER
-
MODEL_LISTER
-
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
-
blockColors
-
modelResources
-
blockStateResources
-
loadingStack
-
context
-
unbakedCache
-
bakedCache
-
topLevelModels
-
bakedTopLevelModels
-
nextModelGroup
private int nextModelGroup -
modelGroups
-
-
Constructor Details
-
ModelBakery
public ModelBakery(BlockColors p_249183_, ProfilerFiller p_252014_, Map<ResourceLocation, BlockModel> p_251087_, Map<ResourceLocation, List<ModelBakery.LoadedJson>> p_250416_)
-
-
Method Details
-
bakeModels
-
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
-
loadTopLevel
-
registerModelGroup
-
loadBlockModel
- Throws:
IOException
-
getBakedTopLevelModels
-
getModelGroups
-