Class CompositeRenderable
java.lang.Object
net.minecraftforge.client.model.renderable.CompositeRenderable
- All Implemented Interfaces:
IRenderable<CompositeRenderable.Transforms>
public class CompositeRenderable
extends Object
implements IRenderable<CompositeRenderable.Transforms>
A renderable object composed of a hierarchy of parts, each made up of a number of meshes.
Each mesh renders a set of quads using a different texture.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static class
private static class
static class
static class
A context value that providesMatrix4f
transforms for certain parts of the model. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeRenderable.Builder
builder()
void
render
(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, CompositeRenderable.Transforms context) Draws the renderable by adding the geometry to the providedMultiBufferSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.renderable.IRenderable
withContext
-
Field Details
-
components
-
-
Constructor Details
-
CompositeRenderable
private CompositeRenderable()
-
-
Method Details
-
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, CompositeRenderable.Transforms context) Description copied from interface:IRenderable
Draws the renderable by adding the geometry to the providedMultiBufferSource
- Specified by:
render
in interfaceIRenderable<CompositeRenderable.Transforms>
- Parameters:
poseStack
- The pose stackbufferSource
- The buffer source where the vertex data should be outputtextureRenderTypeLookup
- A function that provides a RenderType for the given texturelightmap
- The lightmap coordinates representing the current lighting conditions. SeeLightTexture
overlay
- The overlay coordinates representing the current overlay status. SeeOverlayTexture
partialTick
- The current time expressed in the fraction of a tick elapsed since the last client tickcontext
- The context used for rendering
-
builder
-