Class SimpleRenderable
java.lang.Object
net.minecraftforge.client.model.renderable.SimpleRenderable
- All Implemented Interfaces:
IRenderable<MultipartTransforms>
Implements a simple renderable consisting of a hierarchy of parts, where each part can contain a number of meshes.
Each mesh pairs a texture, with a set of quads.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static classprivate static classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleRenderable.Builderbuilder()voidrender(PoseStack poseStack, MultiBufferSource bufferSource, Function<ResourceLocation, RenderType> renderTypeFunction, int lightmapCoord, int overlayCoord, float partialTicks, MultipartTransforms renderValues) 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.minecraftforge.client.model.renderable.IRenderable
withValues
-
Field Details
-
parts
-
-
Constructor Details
-
SimpleRenderable
private SimpleRenderable()
-
-
Method Details
-
builder
-
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, Function<ResourceLocation, RenderType> renderTypeFunction, int lightmapCoord, int overlayCoord, float partialTicks, MultipartTransforms renderValues) Description copied from interface:IRenderableDraws the renderable by adding the geometry to the providedMultiBufferSource- Specified by:
renderin interfaceIRenderable<MultipartTransforms>- Parameters:
poseStack- the pose stackbufferSource- the target buffer source to dump the data intorenderTypeFunction- a function that provides a RenderType for the given texturelightmapCoord- the lightmap coordinates representing the current lighting conditions. SeeLightTextureoverlayCoord- the overlay coordinates representing the current overlay status. SeeOverlayTexturepartialTicks- the current time expressed in the fraction of a tick elapsed since the last client tick.renderValues- the context data used for rendering
-