public class ContraptionRenderDispatcher
extends java.lang.Object
| Constructor and Description |
|---|
ContraptionRenderDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) |
static SuperByteBuffer |
buildStructureBuffer(PlacementSimulationWorld renderWorld,
Contraption c,
net.minecraft.client.renderer.RenderType layer) |
static void |
gatherContext(com.jozufozu.flywheel.event.GatherContextEvent e) |
static int |
getContraptionWorldLight(MovementContext context,
PlacementSimulationWorld renderWorld) |
static int |
getLight(net.minecraft.world.World world,
float lx,
float ly,
float lz) |
static boolean |
invalidate(Contraption contraption)
Reset a contraption's renderer.
|
static void |
onRendererReload(com.jozufozu.flywheel.event.ReloadRenderersEvent event) |
protected static void |
renderActors(net.minecraft.world.World world,
PlacementSimulationWorld renderWorld,
Contraption c,
ContraptionMatrices matrices,
net.minecraft.client.renderer.IRenderTypeBuffer buffer) |
static void |
renderFromEntity(AbstractContraptionEntity entity,
Contraption contraption,
net.minecraft.client.renderer.IRenderTypeBuffer buffers) |
static void |
renderLayer(com.jozufozu.flywheel.event.RenderLayerEvent event) |
static void |
renderTileEntities(net.minecraft.world.World world,
PlacementSimulationWorld renderWorld,
Contraption c,
ContraptionMatrices matrices,
net.minecraft.client.renderer.IRenderTypeBuffer buffer) |
static void |
reset() |
static PlacementSimulationWorld |
setupRenderWorld(net.minecraft.world.World world,
Contraption c) |
static void |
tick(net.minecraft.world.World world) |
public static boolean invalidate(Contraption contraption)
contraption - The contraption to invalidate.public static void tick(net.minecraft.world.World world)
public static void beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event)
public static void renderLayer(com.jozufozu.flywheel.event.RenderLayerEvent event)
public static void onRendererReload(com.jozufozu.flywheel.event.ReloadRenderersEvent event)
public static void gatherContext(com.jozufozu.flywheel.event.GatherContextEvent e)
public static void renderFromEntity(AbstractContraptionEntity entity, Contraption contraption, net.minecraft.client.renderer.IRenderTypeBuffer buffers)
public static PlacementSimulationWorld setupRenderWorld(net.minecraft.world.World world, Contraption c)
public static void renderTileEntities(net.minecraft.world.World world,
PlacementSimulationWorld renderWorld,
Contraption c,
ContraptionMatrices matrices,
net.minecraft.client.renderer.IRenderTypeBuffer buffer)
protected static void renderActors(net.minecraft.world.World world,
PlacementSimulationWorld renderWorld,
Contraption c,
ContraptionMatrices matrices,
net.minecraft.client.renderer.IRenderTypeBuffer buffer)
public static SuperByteBuffer buildStructureBuffer(PlacementSimulationWorld renderWorld, Contraption c, net.minecraft.client.renderer.RenderType layer)
public static int getLight(net.minecraft.world.World world,
float lx,
float ly,
float lz)
public static int getContraptionWorldLight(MovementContext context, PlacementSimulationWorld renderWorld)
public static void reset()