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_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_, ModelData modelData, RenderType renderType) 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_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_, 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_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_, 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_) BlockModel.bake
(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, boolean p_111455_) MultiVariant.bake
(ModelBaker p_249016_, Function<Material, TextureAtlasSprite> p_111851_, ModelState p_111852_) 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_, boolean p_111455_) 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_) -
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_, ItemDisplayContext p_270188_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) void
ItemRenderer.renderModelLists
(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) static void
ItemEntityRenderer.renderMultipleFromCount
(ItemRenderer p_324541_, PoseStack p_323733_, MultiBufferSource p_324107_, int p_323740_, ItemStack p_323718_, BakedModel p_324183_, boolean p_324462_, RandomSource p_324565_) -
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
<ModelResourceLocation, BakedModel> ModelManager.bakedRegistry
private final Map
<ModelResourceLocation, 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
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) WeightedBakedModel.applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) ModelBaker.bake
(ResourceLocation p_250776_, ModelState p_251280_) Deprecated.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_) (package private) BakedModel
ModelBakery.ModelBakerImpl.bakeUncached
(UnbakedModel p_352386_, ModelState p_352194_) ModelBakery.ModelBakerImpl.bakeUncached
(UnbakedModel p_352386_, ModelState p_352194_, Function<Material, TextureAtlasSprite> sprites) 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.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.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic BakedModel
ClientHooks.handleCameraTransforms
(PoseStack poseStack, BakedModel model, ItemDisplayContext cameraTransformType, boolean applyLeftHandTransform) Modifier and TypeMethodDescriptionstatic 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
ClientHooks.handleCameraTransforms
(PoseStack poseStack, BakedModel model, ItemDisplayContext cameraTransformType, boolean applyLeftHandTransform) Modifier and TypeMethodDescriptionstatic void
ClientHooks.onModelBake
(ModelManager modelManager, Map<ModelResourceLocation, BakedModel> models, ModelBakery modelBakery) static void
ClientHooks.onModifyBakingResult
(Map<ModelResourceLocation, BakedModel> models, Map<ResourceLocation, AtlasSet.StitchResult> stitchResults, ModelBakery modelBakery) -
Uses of BakedModel in net.neoforged.neoforge.client.event
Modifier and TypeFieldDescriptionprivate final Map
<ModelResourceLocation, BakedModel> ModelEvent.BakingCompleted.models
private final Map
<ModelResourceLocation, BakedModel> ModelEvent.ModifyBakingResult.models
Modifier and TypeMethodDescriptionModelEvent.BakingCompleted.getModels()
ModelEvent.ModifyBakingResult.getModels()
ModifierConstructorDescriptionBakingCompleted
(ModelManager modelManager, Map<ModelResourceLocation, BakedModel> models, ModelBakery modelBakery) ModifyBakingResult
(Map<ModelResourceLocation, BakedModel> models, Function<Material, TextureAtlasSprite> textureGetter, ModelBakery modelBakery) -
Uses of BakedModel in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescriptiondefault BakedModel
IBakedModelExtension.applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the giveninvalid reference
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered.@Nullable BakedModel
IModelBakerExtension.bake
(ResourceLocation location, ModelState state, Function<Material, TextureAtlasSprite> sprites) @Nullable BakedModel
IModelBakerExtension.bakeUncached
(UnbakedModel model, ModelState state, Function<Material, TextureAtlasSprite> sprites) private BakedModel
IBakedModelExtension.self()
Modifier and TypeMethodDescriptiondefault List
<BakedModel> IBakedModelExtension.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.neoforged.neoforge.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 ofIBakedModelExtension.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
<Item, BakedModel> RegistryAwareItemModelShaper.models
private final com.google.common.collect.ImmutableMap
<ItemDisplayContext, BakedModel> SeparateTransformsModel.Baked.perspectives
Modifier and TypeMethodDescriptionBakedModelWrapper.applyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) SeparateTransformsModel.Baked.applyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) CompositeModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) DynamicFluidContainerModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) EmptyModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) ItemLayerModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) SeparateTransformsModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) CompositeModel.Baked.Builder.build()
IModelBuilder.build()
IModelBuilder.Collecting.build()
IModelBuilder.Simple.build()
Deprecated.@Nullable BakedModel
RegistryAwareItemModelShaper.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<ItemDisplayContext, 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<ItemDisplayContext, BakedModel> perspectives) -
Uses of BakedModel in net.neoforged.neoforge.client.model.data
Modifier and TypeFieldDescriptionprivate static final ModelProperty
<Map<BakedModel, ModelData>> MultipartModelData.PROPERTY
Modifier and TypeMethodDescriptionstatic ModelData
MultipartModelData.resolve
(ModelData modelData, BakedModel model) Helper to get the data from aModelData
instance.Modifier and TypeMethodDescriptionstatic ModelData
MultipartModelData.create
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BitSet bitset, BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData tileModelData) -
Uses of BakedModel in net.neoforged.neoforge.client.model.geometry
Modifier and TypeMethodDescriptionBlockGeometryBakingContext.bake
(ModelBaker baker, Function<Material, TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides) IUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) SimpleUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) static BakedModel
UnbakedGeometryHelper.bake
(BlockModel blockModel, ModelBaker modelBaker, BlockModel owner, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, boolean guiLight3d) Helper for bakingBlockModel
instances. -
Uses of BakedModel in net.neoforged.neoforge.client.model.lighting
Modifier and TypeMethodDescriptionstatic boolean
LightPipelineAwareModelBlockRenderer.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
LightPipelineAwareModelBlockRenderer.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
LightPipelineAwareModelBlockRenderer.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.neoforged.neoforge.client.model.renderable
Modifier and TypeMethodDescriptionstatic BakedModelRenderable
BakedModelRenderable.of
(BakedModel model) Constructs aBakedModelRenderable
from the given baked model. -
Uses of BakedModel in net.neoforged.neoforge.oldtest.block
Modifier and TypeClassDescriptionprivate static class
Modifier and TypeMethodDescriptionFullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) -
Uses of BakedModel in net.neoforged.neoforge.oldtest.client.model
Modifier and TypeClassDescriptionprivate static class
class
ModifierConstructorDescriptionMyBakedModel
(BakedModel base) TransformingModelWrapper
(BakedModel originalModel)
IModelBakerExtension.bake(ResourceLocation, ModelState, java.util.function.Function)
instead.