public class ContraptionRenderInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Contraption |
contraption |
PlacementSimulationWorld |
renderWorld |
| Constructor and Description |
|---|
ContraptionRenderInfo(Contraption contraption,
PlacementSimulationWorld renderWorld) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) |
int |
getEntityId() |
ContraptionMatrices |
getMatrices()
If #setupMatrices is called correctly, the returned matrices will be ready
|
void |
invalidate() |
boolean |
isDead() |
boolean |
isVisible() |
void |
setupMatrices(com.mojang.blaze3d.matrix.MatrixStack viewProjection,
double camX,
double camY,
double camZ)
Need to call this during RenderLayerEvent.
|
public final Contraption contraption
public final PlacementSimulationWorld renderWorld
public ContraptionRenderInfo(Contraption contraption, PlacementSimulationWorld renderWorld)
public int getEntityId()
public boolean isDead()
public void beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event)
public boolean isVisible()
public void setupMatrices(com.mojang.blaze3d.matrix.MatrixStack viewProjection,
double camX,
double camY,
double camZ)
public ContraptionMatrices getMatrices()
public void invalidate()