Class ModelBakery
java.lang.Object
net.minecraft.client.resources.model.ModelBakery
-
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 final Map<org.apache.commons.lang3.tuple.Triple<ResourceLocation,
Transformation, Boolean>, BakedModel> private final Map<ResourceLocation,
BakedModel> static final Material
static final BlockModel
private final BlockColors
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> private static final ItemModelGenerator
static final Material
private final Set<ResourceLocation>
private static final org.slf4j.Logger
static final ModelResourceLocation
private static final String
static final String
private static final String
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
private int
static final Material
protected final ResourceManager
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
(ResourceManager p_119247_, BlockColors p_119248_, ProfilerFiller p_119249_, int p_119250_) -
Method Summary
Modifier and TypeMethodDescriptionbake
(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_) 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:
-
DESTROY_STAGES
-
BREAKING_LOCATIONS
-
DESTROY_TYPES
-
UNREFERENCED_TEXTURES
-
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
-
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, bakedCacheBoolean>, BakedModel> -
topLevelModels
-
bakedTopLevelModels
-
atlasPreparations
private Map<ResourceLocation,com.mojang.datafixers.util.Pair<TextureAtlas, atlasPreparationsTextureAtlas.Preparations>> -
nextModelGroup
private int nextModelGroup -
modelGroups
-
-
Constructor Details
-
ModelBakery
public ModelBakery(ResourceManager p_119247_, BlockColors p_119248_, ProfilerFiller p_119249_, int p_119250_)
-
-
Method Details
-
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
-
loadTopLevel
-
registerModelGroup
-
bake
Deprecated. -
bake
@Nullable public BakedModel bake(ResourceLocation p_119350_, ModelState p_119351_, Function<Material, TextureAtlasSprite> sprites) -
loadBlockModel
- Throws:
IOException
-
getBakedTopLevelModels
-
getModelGroups
-
getAtlasSet
-