Class ModelBakery
java.lang.Object
net.minecraft.client.renderer.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<AtlasTexture, AtlasTexture.SheetData>> private SpriteMap
private final Map<org.apache.commons.lang3.tuple.Triple<ResourceLocation,
TransformationMatrix, Boolean>, IBakedModel> private final Map<ResourceLocation,
IBakedModel> static final RenderMaterial
static final BlockModel
private final BlockColors
static final List<ResourceLocation>
private static final com.google.common.base.Splitter
private final BlockModelDefinition.ContainerHolder
static final List<ResourceLocation>
static final List<RenderType>
private static final com.google.common.base.Splitter
static final RenderMaterial
static final RenderMaterial
static final BlockModel
private static final StateContainer<Block,
BlockState> private static final ItemModelGenerator
static final RenderMaterial
private final Set<ResourceLocation>
private static final org.apache.logging.log4j.Logger
static final ModelResourceLocation
private static final String
static final String
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
private int
static final RenderMaterial
protected final IResourceManager
static final RenderMaterial
private static final Map<ResourceLocation,
StateContainer<Block, BlockState>> private final Map<ResourceLocation,
IUnbakedModel> private final Map<ResourceLocation,
IUnbakedModel> protected static final Set<RenderMaterial>
static final RenderMaterial
static final RenderMaterial
-
Constructor Summary
ModifierConstructorDescriptionprotected
ModelBakery
(IResourceManager p_i226056_1_, BlockColors p_i226056_2_, boolean vanillaBakery) ModelBakery
(IResourceManager p_i226056_1_, BlockColors p_i226056_2_, IProfiler p_i226056_3_, int p_i226056_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addModelToCache
(ResourceLocation p_217843_1_) bake
(ResourceLocation p_217845_1_, IModelTransform p_217845_2_) Deprecated.private void
cacheAndQueueDependencies
(ResourceLocation p_209593_1_, IUnbakedModel p_209593_2_) getBakedModel
(ResourceLocation p_217845_1_, IModelTransform p_217845_2_, Function<RenderMaterial, TextureAtlasSprite> textureGetter) getModel
(ResourceLocation p_209597_1_) it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
(package private) static <T extends Comparable<T>>
TgetValueHelper
(Property<T> p_209592_0_, String p_209592_1_) protected BlockModel
loadBlockModel
(ResourceLocation p_177594_1_) private void
loadModel
(ResourceLocation p_209598_1_) private void
loadTopLevel
(ModelResourceLocation p_217843_1_) private static Predicate<BlockState>
predicate
(StateContainer<Block, BlockState> p_209605_0_, String p_209605_1_) protected void
processLoading
(IProfiler p_i226056_3_, int p_i226056_4_) private void
registerModelGroup
(Iterable<BlockState> p_225352_1_) uploadTextures
(TextureManager p_229333_1_, IProfiler p_229333_2_)
-
Field Details
-
FIRE_0
-
FIRE_1
-
LAVA_FLOW
-
WATER_FLOW
-
WATER_OVERLAY
-
BANNER_BASE
-
SHIELD_BASE
-
NO_PATTERN_SHIELD
-
DESTROY_STAGES
-
BREAKING_LOCATIONS
-
DESTROY_TYPES
-
UNREFERENCED_TEXTURES
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
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,TransformationMatrix, bakedCacheBoolean>, IBakedModel> -
topLevelModels
-
bakedTopLevelModels
-
atlasPreparations
private Map<ResourceLocation,com.mojang.datafixers.util.Pair<AtlasTexture, atlasPreparationsAtlasTexture.SheetData>> -
nextModelGroup
private int nextModelGroup -
modelGroups
-
-
Constructor Details
-
ModelBakery
public ModelBakery(IResourceManager p_i226056_1_, BlockColors p_i226056_2_, IProfiler p_i226056_3_, int p_i226056_4_) -
ModelBakery
protected ModelBakery(IResourceManager p_i226056_1_, BlockColors p_i226056_2_, boolean vanillaBakery)
-
-
Method Details
-
processLoading
-
uploadTextures
-
predicate
private static Predicate<BlockState> predicate(StateContainer<Block, BlockState> p_209605_0_, String p_209605_1_) -
getValueHelper
@Nullable static <T extends Comparable<T>> T getValueHelper(Property<T> p_209592_0_, String p_209592_1_) -
getModel
-
loadModel
- Throws:
Exception
-
cacheAndQueueDependencies
-
addModelToCache
-
loadTopLevel
-
registerModelGroup
-
bake
@Nullable @Deprecated public IBakedModel bake(ResourceLocation p_217845_1_, IModelTransform p_217845_2_) Deprecated. -
getBakedModel
@Nullable public IBakedModel getBakedModel(ResourceLocation p_217845_1_, IModelTransform p_217845_2_, Function<RenderMaterial, TextureAtlasSprite> textureGetter) -
loadBlockModel
- Throws:
IOException
-
getBakedTopLevelModels
-
getModelGroups
-
getSpecialModels
-
getSpriteMap
-