public class RenderedContraption extends ContraptionRenderInfo
| Modifier and Type | Field and Description |
|---|---|
ContraptionInstanceManager |
kinetics |
com.jozufozu.flywheel.backend.material.MaterialManager<ContraptionProgram> |
materialManager |
contraption, renderWorld| Constructor and Description |
|---|
RenderedContraption(Contraption contraption,
PlacementSimulationWorld renderWorld) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) |
void |
doRenderLayer(net.minecraft.client.renderer.RenderType layer,
ContraptionProgram shader) |
ContraptionLighter<?> |
getLighter() |
void |
invalidate() |
void |
setupMatrices(com.mojang.blaze3d.matrix.MatrixStack viewProjection,
double camX,
double camY,
double camZ)
Need to call this during RenderLayerEvent.
|
static void |
setupModelViewPartial(net.minecraft.util.math.vector.Matrix4f matrix,
net.minecraft.util.math.vector.Matrix4f modelMatrix,
AbstractContraptionEntity entity,
double camX,
double camY,
double camZ,
float pt) |
getEntityId, getMatrices, isDead, isVisiblepublic final com.jozufozu.flywheel.backend.material.MaterialManager<ContraptionProgram> materialManager
public final ContraptionInstanceManager kinetics
public RenderedContraption(Contraption contraption, PlacementSimulationWorld renderWorld)
public ContraptionLighter<?> getLighter()
public void doRenderLayer(net.minecraft.client.renderer.RenderType layer,
ContraptionProgram shader)
public void beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event)
beginFrame in class ContraptionRenderInfopublic void setupMatrices(com.mojang.blaze3d.matrix.MatrixStack viewProjection,
double camX,
double camY,
double camZ)
ContraptionRenderInfosetupMatrices in class ContraptionRenderInfopublic void invalidate()
invalidate in class ContraptionRenderInfopublic static void setupModelViewPartial(net.minecraft.util.math.vector.Matrix4f matrix,
net.minecraft.util.math.vector.Matrix4f modelMatrix,
AbstractContraptionEntity entity,
double camX,
double camY,
double camZ,
float pt)