Class ModelBakery
java.lang.Object
net.minecraft.client.renderer.model.ModelBakery
- Direct Known Subclasses:
ModelLoader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<ResourceLocation,com.mojang.datafixers.util.Pair<AtlasTexture, AtlasTexture.SheetData>> private SpriteMapprivate final Map<org.apache.commons.lang3.tuple.Triple<ResourceLocation,TransformationMatrix, Boolean>, IBakedModel> private final Map<ResourceLocation,IBakedModel> static final RenderMaterialstatic final BlockModelprivate final BlockColorsstatic final List<ResourceLocation>private static final com.google.common.base.Splitterprivate final BlockModelDefinition.ContainerHolderstatic final List<ResourceLocation>static final List<RenderType>private static final com.google.common.base.Splitterstatic final RenderMaterialstatic final RenderMaterialstatic final BlockModelprivate static final StateContainer<Block,BlockState> private static final ItemModelGeneratorstatic final RenderMaterialprivate final Set<ResourceLocation>private static final org.apache.logging.log4j.Loggerstatic final ModelResourceLocationprivate static final Stringstatic final Stringprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>private intstatic final RenderMaterialprotected final IResourceManagerstatic final RenderMaterialprivate static final Map<ResourceLocation,StateContainer<Block, BlockState>> private final Map<ResourceLocation,IUnbakedModel> private final Map<ResourceLocation,IUnbakedModel> protected static final Set<RenderMaterial>static final RenderMaterialstatic final RenderMaterial -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModelBakery(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 voidaddModelToCache(ResourceLocation p_217843_1_) bake(ResourceLocation p_217845_1_, IModelTransform p_217845_2_) Deprecated.private voidcacheAndQueueDependencies(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 BlockModelloadBlockModel(ResourceLocation p_177594_1_) private voidloadModel(ResourceLocation p_209598_1_) private voidloadTopLevel(ModelResourceLocation p_217843_1_) private static Predicate<BlockState>predicate(StateContainer<Block, BlockState> p_209605_0_, String p_209605_1_) protected voidprocessLoading(IProfiler p_i226056_3_, int p_i226056_4_) private voidregisterModelGroup(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
-