Interface PartRenderer<T extends IPart, S extends PartDynamicRenderState>
- Type Parameters:
T- The type of part that this renderer supports.
public interface PartRenderer<T extends IPart, S extends PartDynamicRenderState>
Allows dynamic rendering of geometry for parts to attached to a cable bus.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new uninitialized instance of the state used by this renderer..voidExtracts the state needed to later render the dynamic parts of the part.voidsubmit(S state, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector nodes, net.minecraft.client.renderer.state.level.CameraRenderState cameraRenderState) Render dynamic portions of a part attached to a cable bus.
-
Method Details
-
createState
S createState()Returns a new uninitialized instance of the state used by this renderer..- Returns:
- a new uninitialized instance of the state used by this renderer.
-
stateClass
-
extract
-
submit
void submit(S state, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector nodes, net.minecraft.client.renderer.state.level.CameraRenderState cameraRenderState) Render dynamic portions of a part attached to a cable bus.- See Also:
-