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
Modifier and TypeClassDescriptionstatic class
private static class
private static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleRenderable.Builder
builder()
void
render
(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 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
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:IRenderable
Draws the renderable by adding the geometry to the providedMultiBufferSource
- Specified by:
render
in 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. SeeLightTexture
overlayCoord
- the overlay coordinates representing the current overlay status. SeeOverlayTexture
partialTicks
- the current time expressed in the fraction of a tick elapsed since the last client tick.renderValues
- the context data used for rendering
-