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 final 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) -
Uses of BakedModel in net.minecraft.client.renderer.block.model
Modifier and TypeFieldDescription(package private) final BakedModel
ItemOverrides.BakedOverride.model
Modifier and TypeMethodDescriptionBlockModel.bake
(ModelBakery p_111457_, Function<Material, TextureAtlasSprite> p_111458_, ModelState p_111459_, ResourceLocation p_111460_) Deprecated.BlockModel.bake
(ModelBakery p_111450_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_) MultiVariant.bake
(ModelBakery p_111850_, Function<Material, TextureAtlasSprite> p_111851_, ModelState p_111852_, ResourceLocation p_111853_) private BakedModel
ItemOverrides.bakeModel
(ModelBakery p_173471_, UnbakedModel p_173472_, Function<ResourceLocation, UnbakedModel> p_173473_, Function<Material, TextureAtlasSprite> textureGetter, ItemOverride p_173474_) BlockModel.bakeVanilla
(ModelBakery p_111450_, 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.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
(ModelBakery p_111971_, 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
WeightedBakedModel.wrapped
Modifier and TypeFieldDescriptionprivate final Map<org.apache.commons.lang3.tuple.Triple<ResourceLocation,
Transformation, Boolean>, 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 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) ModelBakery.bake
(ResourceLocation p_119350_, ModelState p_119351_) Deprecated.ModelBakery.bake
(ResourceLocation p_119350_, ModelState p_119351_, Function<Material, TextureAtlasSprite> sprites) UnbakedModel.bake
(ModelBakery p_119534_, 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) Modifier and TypeMethodDescriptionvoid
MultiPartBakedModel.Builder.add
(Predicate<BlockState> p_119478_, BakedModel p_119479_) WeightedBakedModel.Builder.add
(BakedModel p_119560_, int p_119561_) ModifierConstructorDescriptionMultiPartBakedModel
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> p_119462_) 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) -
Uses of BakedModel in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
BakedModel> ModelEvent.BakingCompleted.models
ModifierConstructorDescriptionBakingCompleted
(ModelManager modelManager, 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.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, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) DynamicFluidContainerModel.bake
(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) EmptyModel.bake
(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) ItemLayerModel.bake
(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) SeparateTransformsModel.bake
(IGeometryBakingContext context, ModelBakery bakery, 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
(ModelBakery bakery, Function<Material, TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) IUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) SimpleUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) static BakedModel
UnbakedGeometryHelper.bake
(BlockModel blockModel, ModelBakery modelBakery, BlockModel owner, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ResourceLocation modelLocation, boolean guiLight3d) Helper for bakingBlockModel
instances.static BakedModel
UnbakedGeometryHelper.bakeVanilla
(BlockModel blockModel, ModelBakery modelBakery, 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, ModelBakery bakery, 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)