Class ContraptionRenderDispatcher
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbeginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) static SuperByteBufferbuildStructureBuffer(PlacementSimulationWorld renderWorld, Contraption c, net.minecraft.client.renderer.RenderType layer) static voidgatherContext(com.jozufozu.flywheel.event.GatherContextEvent e) static intgetContraptionWorldLight(MovementContext context, PlacementSimulationWorld renderWorld) static intgetLight(net.minecraft.world.level.Level world, float lx, float ly, float lz) static booleaninvalidate(Contraption contraption) Reset a contraption's renderer.static voidonRendererReload(com.jozufozu.flywheel.event.ReloadRenderersEvent event) protected static voidrenderActors(net.minecraft.world.level.Level world, PlacementSimulationWorld renderWorld, Contraption c, ContraptionMatrices matrices, net.minecraft.client.renderer.MultiBufferSource buffer) static voidrenderFromEntity(AbstractContraptionEntity entity, Contraption contraption, net.minecraft.client.renderer.MultiBufferSource buffers) static voidrenderLayer(com.jozufozu.flywheel.event.RenderLayerEvent event) static voidrenderTileEntities(net.minecraft.world.level.Level world, PlacementSimulationWorld renderWorld, Contraption c, ContraptionMatrices matrices, net.minecraft.client.renderer.MultiBufferSource buffer) static voidreset()static PlacementSimulationWorldsetupRenderWorld(net.minecraft.world.level.Level world, Contraption c) static voidtick(net.minecraft.world.level.Level world)
-
Constructor Details
-
ContraptionRenderDispatcher
public ContraptionRenderDispatcher()
-
-
Method Details
-
invalidate
Reset a contraption's renderer.- Parameters:
contraption- The contraption to invalidate.- Returns:
- true if there was a renderer associated with the given contraption.
-
tick
public static void tick(net.minecraft.world.level.Level world) -
beginFrame
public static void beginFrame(com.jozufozu.flywheel.event.BeginFrameEvent event) -
renderLayer
public static void renderLayer(com.jozufozu.flywheel.event.RenderLayerEvent event) -
onRendererReload
public static void onRendererReload(com.jozufozu.flywheel.event.ReloadRenderersEvent event) -
gatherContext
public static void gatherContext(com.jozufozu.flywheel.event.GatherContextEvent e) -
renderFromEntity
public static void renderFromEntity(AbstractContraptionEntity entity, Contraption contraption, net.minecraft.client.renderer.MultiBufferSource buffers) -
setupRenderWorld
public static PlacementSimulationWorld setupRenderWorld(net.minecraft.world.level.Level world, Contraption c) -
renderTileEntities
public static void renderTileEntities(net.minecraft.world.level.Level world, PlacementSimulationWorld renderWorld, Contraption c, ContraptionMatrices matrices, net.minecraft.client.renderer.MultiBufferSource buffer) -
renderActors
protected static void renderActors(net.minecraft.world.level.Level world, PlacementSimulationWorld renderWorld, Contraption c, ContraptionMatrices matrices, net.minecraft.client.renderer.MultiBufferSource buffer) -
buildStructureBuffer
public static SuperByteBuffer buildStructureBuffer(PlacementSimulationWorld renderWorld, Contraption c, net.minecraft.client.renderer.RenderType layer) -
getLight
public static int getLight(net.minecraft.world.level.Level world, float lx, float ly, float lz) -
getContraptionWorldLight
public static int getContraptionWorldLight(MovementContext context, PlacementSimulationWorld renderWorld) -
reset
public static void reset()
-