Class CompositeRenderable
java.lang.Object
net.neoforged.neoforge.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
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static classprivate static classstatic classstatic classA context value that providesMatrix4ftransforms for certain parts of the model. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeRenderable.Builderbuilder()voidrender(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, CompositeRenderable.Transforms context) Draws the renderable by adding the geometry to the providedMultiBufferSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.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:IRenderableDraws the renderable by adding the geometry to the providedMultiBufferSource- Specified by:
renderin 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. SeeLightTextureoverlay- The overlay coordinates representing the current overlay status. SeeOverlayTexturepartialTick- The current time expressed in the fraction of a tick elapsed since the last client tickcontext- The context used for rendering
-
builder
-