Class BakedModelRenderable
java.lang.Object
net.minecraftforge.client.model.renderable.BakedModelRenderable
- All Implemented Interfaces:
- IRenderable<BakedModelRenderable.Context>
public class BakedModelRenderable
extends Object
implements IRenderable<BakedModelRenderable.Context>
Renderable wrapper for baked models.
 
 The context can provide the BlockState, faces to be rendered, a RandomSource and seed,
 a ModelData instance, and a tint.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BakedModelRenderableof(BakedModel model) Constructs aBakedModelRenderablefrom the given baked model.static BakedModelRenderableof(ResourceLocation model) Constructs aBakedModelRenderablefrom the given model location.voidrender(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, BakedModelRenderable.Context context) Draws the renderable by adding the geometry to the providedMultiBufferSourcewithContext(ModelData modelData) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.client.model.renderable.IRenderablewithContext
- 
Field Details- 
model
 
- 
- 
Constructor Details- 
BakedModelRenderable
 
- 
- 
Method Details- 
ofConstructs aBakedModelRenderablefrom the given model location. The model is expected to have been baked ahead of time.- See Also:
 
- 
ofConstructs aBakedModelRenderablefrom the given baked model.
- 
renderpublic void render(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, BakedModelRenderable.Context context) Description copied from interface:IRenderableDraws the renderable by adding the geometry to the providedMultiBufferSource- Specified by:
- renderin interface- IRenderable<BakedModelRenderable.Context>
- Parameters:
- poseStack- The pose stack
- bufferSource- The buffer source where the vertex data should be output
- textureRenderTypeLookup- A function that provides a RenderType for the given texture
- lightmap- The lightmap coordinates representing the current lighting conditions. See- LightTexture
- overlay- The overlay coordinates representing the current overlay status. See- OverlayTexture
- partialTick- The current time expressed in the fraction of a tick elapsed since the last client tick
- context- The context used for rendering
 
- 
withContext
- 
withModelDataContext
 
-