Uses of Interface
net.minecraft.client.resources.model.BakedModel
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of BakedModel in net.minecraft.client.renderer
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BakedModel>
ItemModelShaper.shapesCache
Modifier and TypeMethodDescriptionItemModelShaper.getItemModel
(Item p_109395_) ItemModelShaper.getItemModel
(ItemStack p_109407_) -
Uses of BakedModel in net.minecraft.client.renderer.block
Modifier and TypeFieldDescriptionprivate Map<BlockState,
BakedModel> BlockModelShaper.modelByStateCache
Modifier and TypeMethodDescriptionBlockModelShaper.getBlockModel
(BlockState p_110894_) BlockRenderDispatcher.getBlockModel
(BlockState p_110911_) Modifier and TypeMethodDescriptionvoid
ModelBlockRenderer.renderModel
(PoseStack.Pose p_111068_, VertexConsumer p_111069_, BlockState p_111070_, BakedModel p_111071_, float p_111072_, float p_111073_, float p_111074_, int p_111075_, int p_111076_) Deprecated.void
ModelBlockRenderer.renderModel
(PoseStack.Pose p_111068_, VertexConsumer p_111069_, BlockState p_111070_, BakedModel p_111071_, float p_111072_, float p_111073_, float p_111074_, int p_111075_, int p_111076_, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter p_234380_, BakedModel p_234381_, BlockState p_234382_, BlockPos p_234383_, PoseStack p_234384_, VertexConsumer p_234385_, boolean p_234386_, RandomSource p_234387_, long p_234388_, int p_234389_) Deprecated.void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter p_111048_, BakedModel p_111049_, BlockState p_111050_, BlockPos p_111051_, PoseStack p_111052_, VertexConsumer p_111053_, boolean p_111054_, RandomSource p_111055_, long p_111056_, int p_111057_, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter p_111048_, BakedModel p_111049_, BlockState p_111050_, BlockPos p_111051_, PoseStack p_111052_, VertexConsumer p_111053_, boolean p_111054_, RandomSource p_111055_, long p_111056_, int p_111057_, ModelData modelData, RenderType renderType, boolean queryModelSpecificData) void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter p_234391_, BakedModel p_234392_, BlockState p_234393_, BlockPos p_234394_, PoseStack p_234395_, VertexConsumer p_234396_, boolean p_234397_, RandomSource p_234398_, long p_234399_, int p_234400_) Deprecated.void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter p_111079_, BakedModel p_111080_, BlockState p_111081_, BlockPos p_111082_, PoseStack p_111083_, VertexConsumer p_111084_, boolean p_111085_, RandomSource p_111086_, long p_111087_, int p_111088_, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter p_234402_, BakedModel p_234403_, BlockState p_234404_, BlockPos p_234405_, PoseStack p_234406_, VertexConsumer p_234407_, boolean p_234408_, RandomSource p_234409_, long p_234410_, int p_234411_) Deprecated.void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter p_111091_, BakedModel p_111092_, BlockState p_111093_, BlockPos p_111094_, PoseStack p_111095_, VertexConsumer p_111096_, boolean p_111097_, RandomSource p_111098_, long p_111099_, int p_111100_, ModelData modelData, RenderType renderType) Modifier and TypeMethodDescriptionvoid
BlockModelShaper.replaceCache
(Map<BlockState, BakedModel> p_248582_) -
Uses of BakedModel in net.minecraft.client.renderer.block.model
Modifier and TypeFieldDescription(package private) final BakedModel
ItemOverrides.BakedOverride.model
Modifier and TypeMethodDescriptionBlockModel.bake
(ModelBaker p_252120_, Function<Material, TextureAtlasSprite> p_250023_, ModelState p_251130_, ResourceLocation p_252208_) Deprecated.BlockModel.bake
(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_) MultiVariant.bake
(ModelBaker p_249016_, Function<Material, TextureAtlasSprite> p_111851_, ModelState p_111852_, ResourceLocation p_111853_) private BakedModel
ItemOverrides.bakeModel
(ModelBaker p_249483_, UnbakedModel p_251965_, ItemOverride p_250816_, Function<Material, TextureAtlasSprite> spriteGetter) BlockModel.bakeVanilla
(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_, RenderTypeGroup renderTypes) Deprecated, for removal: This API element is subject to removal in a future version.Forge: For internal use only.ItemOverrides.resolve
(BakedModel p_173465_, ItemStack p_173466_, ClientLevel p_173467_, LivingEntity p_173468_, int p_173469_) Modifier and TypeMethodDescriptionItemOverrides.resolve
(BakedModel p_173465_, ItemStack p_173466_, ClientLevel p_173467_, LivingEntity p_173468_, int p_173469_) ModifierConstructorDescription(package private)
BakedOverride
(ItemOverrides.PropertyMatcher[] p_173483_, BakedModel p_173484_) -
Uses of BakedModel in net.minecraft.client.renderer.block.model.multipart
Modifier and TypeMethodDescriptionMultiPart.bake
(ModelBaker p_249988_, Function<Material, TextureAtlasSprite> p_111972_, ModelState p_111973_, ResourceLocation p_111974_) -
Uses of BakedModel in net.minecraft.client.renderer.entity
Modifier and TypeMethodDescriptionItemRenderer.getModel
(ItemStack p_174265_, Level p_174266_, LivingEntity p_174267_, int p_174268_) Modifier and TypeMethodDescriptionvoid
ItemRenderer.render
(ItemStack p_115144_, ItemTransforms.TransformType p_115145_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) protected void
ItemRenderer.renderGuiItem
(ItemStack p_115128_, int p_115129_, int p_115130_, BakedModel p_115131_) void
ItemRenderer.renderModelLists
(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) -
Uses of BakedModel in net.minecraft.client.renderer.entity.layers
Modifier and TypeMethodDescriptionprivate void
MushroomCowMushroomLayer.renderMushroomBlock
(PoseStack p_234853_, MultiBufferSource p_234854_, int p_234855_, boolean p_234856_, BlockState p_234857_, int p_234858_, BakedModel p_234859_) -
Uses of BakedModel in net.minecraft.client.resources.model
Modifier and TypeClassDescriptionclass
class
class
class
Modifier and TypeFieldDescriptionprivate final BakedModel
MultiPartBakedModel.defaultModel
private BakedModel
ModelManager.missingModel
private final BakedModel
ModelManager.ReloadState.missingModel
The field for themissingModel
record component.private final BakedModel
WeightedBakedModel.wrapped
Modifier and TypeFieldDescription(package private) final Map<ModelBakery.BakedCacheKey,
BakedModel> ModelBakery.bakedCache
private Map<ResourceLocation,
BakedModel> ModelManager.bakedRegistry
private final Map<ResourceLocation,
BakedModel> ModelBakery.bakedTopLevelModels
private final List<WeightedEntry.Wrapper<BakedModel>>
WeightedBakedModel.Builder.list
private final List<WeightedEntry.Wrapper<BakedModel>>
WeightedBakedModel.list
private final Map<BlockState,
BakedModel> ModelManager.ReloadState.modelCache
The field for themodelCache
record component.private final List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>,
BakedModel>> MultiPartBakedModel.Builder.selectors
private final List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>,
BakedModel>> MultiPartBakedModel.selectors
Modifier and TypeMethodDescriptionMultiPartBakedModel.applyTransform
(ItemTransforms.TransformType transformType, PoseStack poseStack, boolean applyLeftHandTransform) WeightedBakedModel.applyTransform
(ItemTransforms.TransformType transformType, PoseStack poseStack, boolean applyLeftHandTransform) ModelBaker.bake
(ResourceLocation p_250776_, ModelState p_251280_) Deprecated.Forge: UseIForgeModelBaker.bake(ResourceLocation, ModelState, java.util.function.Function)
instead.ModelBakery.ModelBakerImpl.bake
(ResourceLocation p_252176_, ModelState p_249765_) ModelBakery.ModelBakerImpl.bake
(ResourceLocation p_252176_, ModelState p_249765_, Function<Material, TextureAtlasSprite> sprites) UnbakedModel.bake
(ModelBaker p_250133_, Function<Material, TextureAtlasSprite> p_119535_, ModelState p_119536_, ResourceLocation p_119537_) MultiPartBakedModel.Builder.build()
SimpleBakedModel.Builder.build()
Deprecated.Forge: Use variant with RenderTypeGroupSimpleBakedModel.Builder.build
(RenderTypeGroup renderTypes) WeightedBakedModel.Builder.build()
ModelManager.getMissingModel()
ModelManager.getModel
(ModelResourceLocation p_119423_) ModelManager.getModel
(ResourceLocation modelLocation) ModelManager.ReloadState.missingModel()
Returns the value of themissingModel
record component.Modifier and TypeMethodDescriptionModelBakery.getBakedTopLevelModels()
ModelManager.ReloadState.modelCache()
Returns the value of themodelCache
record component.Modifier and TypeMethodDescriptionvoid
MultiPartBakedModel.Builder.add
(Predicate<BlockState> p_119478_, BakedModel p_119479_) WeightedBakedModel.Builder.add
(BakedModel p_119560_, int p_119561_) ModifierConstructorDescription(package private)
ReloadState
(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState, BakedModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadState
record class.ModifierConstructorDescriptionMultiPartBakedModel
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> p_119462_) (package private)
ReloadState
(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState, BakedModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadState
record class.WeightedBakedModel
(List<WeightedEntry.Wrapper<BakedModel>> p_119544_) -
Uses of BakedModel in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic BakedModel
ForgeHooksClient.handleCameraTransforms
(PoseStack poseStack, BakedModel model, ItemTransforms.TransformType cameraTransformType, boolean applyLeftHandTransform) Modifier and TypeMethodDescriptionstatic @NotNull RenderType
RenderTypeHelper.getFallbackItemRenderType
(ItemStack stack, BakedModel model, boolean cull) Provides a fallbackRenderType
for the givenItemStack
in the case that none is explicitly specified.static BakedModel
ForgeHooksClient.handleCameraTransforms
(PoseStack poseStack, BakedModel model, ItemTransforms.TransformType cameraTransformType, boolean applyLeftHandTransform) Modifier and TypeMethodDescriptionstatic void
ForgeHooksClient.onModelBake
(ModelManager modelManager, Map<ResourceLocation, BakedModel> models, ModelBakery modelBakery) static void
ForgeHooksClient.onModifyBakingResult
(Map<ResourceLocation, BakedModel> models, ModelBakery modelBakery) -
Uses of BakedModel in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
BakedModel> ModelEvent.BakingCompleted.models
private final Map<ResourceLocation,
BakedModel> ModelEvent.ModifyBakingResult.models
Modifier and TypeMethodDescriptionModelEvent.BakingCompleted.getModels()
ModelEvent.ModifyBakingResult.getModels()
ModifierConstructorDescriptionBakingCompleted
(ModelManager modelManager, Map<ResourceLocation, BakedModel> models, ModelBakery modelBakery) ModifyBakingResult
(Map<ResourceLocation, BakedModel> models, ModelBakery modelBakery) -
Uses of BakedModel in net.minecraftforge.client.extensions
Modifier and TypeMethodDescriptiondefault BakedModel
IForgeBakedModel.applyTransform
(ItemTransforms.TransformType transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformType
andapplyLeftHandTransform
, and returns the model to be rendered.@Nullable BakedModel
IForgeModelBaker.bake
(ResourceLocation location, ModelState state, Function<Material, TextureAtlasSprite> sprites) private BakedModel
IForgeBakedModel.self()
Modifier and TypeMethodDescriptiondefault List<BakedModel>
IForgeBakedModel.getRenderPasses
(ItemStack itemStack, boolean fabulous) Gets an ordered list of baked models used to render this model as an item. -
Uses of BakedModel in net.minecraftforge.client.model
Modifier and TypeClassDescriptionclass
BakedModelWrapper<T extends BakedModel>
Wrapper forBakedModel
which delegates all operations to its parent.Modifier and TypeInterfaceDescriptioninterface
Convenience interface with default implementation ofIForgeBakedModel.getQuads(BlockState, Direction, RandomSource, ModelData, RenderType)
.Modifier and TypeClassDescriptionclass
BakedModelWrapper<T extends BakedModel>
Wrapper forBakedModel
which delegates all operations to its parent.static class
private static class
static class
Modifier and TypeFieldDescriptionstatic final BakedModel
EmptyModel.BAKED
private final BakedModel
SeparateTransformsModel.Baked.baseModel
protected final T
BakedModelWrapper.originalModel
Modifier and TypeFieldDescriptionprivate final Map<String,
BakedModel> DynamicFluidContainerModel.ContainedFluidOverrideHandler.cache
private final List<BakedModel>
CompositeModel.Baked.Builder.children
private final com.google.common.collect.ImmutableMap<String,
BakedModel> CompositeModel.Baked.children
private final com.google.common.collect.ImmutableList<BakedModel>
CompositeModel.Baked.itemPasses
private final Map<Holder.Reference<Item>,
BakedModel> ForgeItemModelShaper.models
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
BakedModel> SeparateTransformsModel.Baked.perspectives
Modifier and TypeMethodDescriptionBakedModelWrapper.applyTransform
(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) SeparateTransformsModel.Baked.applyTransform
(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) CompositeModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) DynamicFluidContainerModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) EmptyModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) ItemLayerModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) SeparateTransformsModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) CompositeModel.Baked.Builder.build()
IModelBuilder.build()
IModelBuilder.Collecting.build()
IModelBuilder.Simple.build()
Deprecated.@Nullable BakedModel
ForgeItemModelShaper.getItemModel
(Item item) @Nullable BakedModel
DynamicFluidContainerModel.ContainedFluidOverrideHandler.resolve
(BakedModel originalModel, ItemStack stack, @Nullable ClientLevel level, @Nullable LivingEntity entity, int seed) Modifier and TypeMethodDescriptionBakedModelWrapper.getRenderPasses
(ItemStack itemStack, boolean fabulous) CompositeModel.Baked.getRenderPasses
(ItemStack itemStack, boolean fabulous) Modifier and TypeMethodDescriptionvoid
CompositeModel.Baked.Builder.addLayer
(BakedModel model) DynamicFluidContainerModel.ContainedFluidOverrideHandler.resolve
(BakedModel originalModel, ItemStack stack, @Nullable ClientLevel level, @Nullable LivingEntity entity, int seed) ModifierConstructorDescriptionBaked
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BakedModel> perspectives) ModifierConstructorDescriptionBaked
(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, ItemTransforms transforms, ItemOverrides overrides, com.google.common.collect.ImmutableMap<String, BakedModel> children, com.google.common.collect.ImmutableList<BakedModel> itemPasses) Baked
(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, ItemTransforms transforms, ItemOverrides overrides, com.google.common.collect.ImmutableMap<String, BakedModel> children, com.google.common.collect.ImmutableList<BakedModel> itemPasses) Baked
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BakedModel> perspectives) -
Uses of BakedModel in net.minecraftforge.client.model.data
Modifier and TypeFieldDescriptionprivate final Map<BakedModel,
ModelData> MultipartModelData.Builder.partData
private final Map<BakedModel,
ModelData> MultipartModelData.partData
Modifier and TypeMethodDescription@Nullable ModelData
MultipartModelData.get
(BakedModel model) static ModelData
MultipartModelData.resolve
(ModelData modelData, BakedModel model) Helper to get the data from aModelData
instance.MultipartModelData.Builder.with
(BakedModel model, ModelData data) -
Uses of BakedModel in net.minecraftforge.client.model.geometry
Modifier and TypeMethodDescriptionBlockGeometryBakingContext.bake
(ModelBaker baker, Function<Material, TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) IUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) SimpleUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) static BakedModel
UnbakedGeometryHelper.bake
(BlockModel blockModel, ModelBaker modelBaker, BlockModel owner, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ResourceLocation modelLocation, boolean guiLight3d) Helper for bakingBlockModel
instances.static BakedModel
UnbakedGeometryHelper.bakeVanilla
(BlockModel blockModel, ModelBaker modelBaker, BlockModel owner, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ResourceLocation modelLocation) Deprecated, for removal: This API element is subject to removal in a future version.Merge into the method above in 1.20 once the call fromBlockModel
is gone. -
Uses of BakedModel in net.minecraftforge.client.model.lighting
Modifier and TypeMethodDescriptionstatic boolean
ForgeModelBlockRenderer.render
(VertexConsumer vertexConsumer, QuadLighter lighter, BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
ForgeModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
ForgeModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) -
Uses of BakedModel in net.minecraftforge.client.model.renderable
Modifier and TypeMethodDescriptionstatic BakedModelRenderable
BakedModelRenderable.of
(BakedModel model) Constructs aBakedModelRenderable
from the given baked model. -
Uses of BakedModel in net.minecraftforge.debug.block
Modifier and TypeClassDescriptionprivate static class
Modifier and TypeMethodDescriptionFullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) -
Uses of BakedModel in net.minecraftforge.debug.client.model
Modifier and TypeClassDescriptionprivate static class
class
ModifierConstructorDescriptionMyBakedModel
(BakedModel base) TransformingModelWrapper
(BakedModel originalModel)
BlockModel.bake(ModelBaker, BlockModel, Function, ModelState, ResourceLocation, boolean)
.