Class RenderHandler

java.lang.Object
team.lodestar.lodestone.handlers.RenderHandler

public class RenderHandler extends Object
A handler responsible for all the backend rendering processes. To have additive transparency work in a minecraft environment, we need to buffer our rendering till after clouds and water have rendered. This happens for particles, as well as all of our custom RenderTypes
  • Field Details

    • BUFFERS

      public static HashMap<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.BufferBuilder> BUFFERS
    • PARTICLE_BUFFERS

      public static HashMap<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.BufferBuilder> PARTICLE_BUFFERS
    • LARGER_BUFFER_SOURCES

      public static boolean LARGER_BUFFER_SOURCES
    • UNIFORM_HANDLERS

      public static HashMap<net.minecraft.client.renderer.RenderType,ShaderUniformHandler> UNIFORM_HANDLERS
    • DELAYED_RENDER

      public static net.minecraft.client.renderer.MultiBufferSource.BufferSource DELAYED_RENDER
    • DELAYED_PARTICLE_RENDER

      public static net.minecraft.client.renderer.MultiBufferSource.BufferSource DELAYED_PARTICLE_RENDER
    • MAIN_POSE_STACK

      public static com.mojang.blaze3d.vertex.PoseStack MAIN_POSE_STACK
    • MATRIX4F

      public static com.mojang.math.Matrix4f MATRIX4F
    • FOG_NEAR

      public static float FOG_NEAR
    • FOG_FAR

      public static float FOG_FAR
    • FOG_SHAPE

      public static com.mojang.blaze3d.shaders.FogShape FOG_SHAPE
    • FOG_RED

      public static float FOG_RED
    • FOG_GREEN

      public static float FOG_GREEN
    • FOG_BLUE

      public static float FOG_BLUE
  • Constructor Details

    • RenderHandler

      public RenderHandler()
  • Method Details

    • onClientSetup

      public static void onClientSetup(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event)
    • cacheFogData

      public static void cacheFogData(net.minecraftforge.client.event.EntityViewRenderEvent.RenderFogEvent event)
    • cacheFogData

      public static void cacheFogData(net.minecraftforge.client.event.EntityViewRenderEvent.FogColors event)
    • beginBufferedRendering

      public static void beginBufferedRendering(com.mojang.blaze3d.vertex.PoseStack poseStack)
    • renderBufferedParticles

      public static void renderBufferedParticles(boolean transparentOnly)
    • renderBufferedBatches

      public static void renderBufferedBatches(boolean transparentOnly)
    • endBufferedRendering

      public static void endBufferedRendering(com.mojang.blaze3d.vertex.PoseStack poseStack)
    • endBatches

      public static void endBatches(net.minecraft.client.renderer.MultiBufferSource.BufferSource source, Collection<net.minecraft.client.renderer.RenderType> renderTypes)
    • addRenderType

      public static void addRenderType(net.minecraft.client.renderer.RenderType type)