/*
    The MIT License (MIT)

    Copyright (c) 2016

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
 */
package aeronicamc.mods.mxtune.render;

import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.client.renderer.vertex.VertexFormat;
import org.lwjgl.opengl.GL12;

import java.util.OptionalDouble;

public class ModRenderType extends RenderType
{
    private ModRenderType(String p_i225992_1_, VertexFormat p_i225992_2_, int p_i225992_3_, int p_i225992_4_, boolean p_i225992_5_, boolean p_i225992_6_, Runnable p_i225992_7_, Runnable p_i225992_8_)
    {
        super(p_i225992_1_, p_i225992_2_, p_i225992_3_, p_i225992_4_, p_i225992_5_, p_i225992_6_, p_i225992_7_, p_i225992_8_);
    }

    private static final LineState  THICK_LINES = new LineState(OptionalDouble.of(4.0D));

    public static final RenderType OVERLAY_LINES = create("overlay_lines",
                                                          DefaultVertexFormats.POSITION_COLOR, GL12.GL_LINES, 256,
                                                          State.builder().setLineState(THICK_LINES)
                                                                  .setLayeringState(VIEW_OFFSET_Z_LAYERING)
                                                                  .setTransparencyState(TRANSLUCENT_TRANSPARENCY)
                                                                  .setTextureState(NO_TEXTURE)
                                                                  .setDepthTestState(NO_DEPTH_TEST)
                                                                  .setCullState(NO_CULL)
                                                                  .setLightmapState(NO_LIGHTMAP)
                                                                  .setWriteMaskState(COLOR_WRITE)
                                                                  .createCompositeState(false));
}

@@ -2978,11 +2978,1253 @@
 false));
+%0A%0A    public static final RenderType TRANSPARENT_QUADS_NO_TEXTURE = create(%22transparent_quads_no_texture%22,%0A                                                                         DefaultVertexFormats.POSITION_COLOR, GL12.GL_QUADS, 256,%0A                                                                         State.builder()%0A                                                                                 .setLayeringState(VIEW_OFFSET_Z_LAYERING)%0A                                                                                 .setTransparencyState(TRANSLUCENT_TRANSPARENCY)%0A                                                                                 .setTextureState(NO_TEXTURE)%0A                                                                                 .setDepthTestState(NO_DEPTH_TEST)%0A                                                                                 .setCullState(NO_CULL)%0A                                                                                 .setLightmapState(NO_LIGHTMAP)%0A                                                                                 .setWriteMaskState(COLOR_WRITE)%0A                                                                                 .createCompositeState(true));
 %0A%7D%0A

Add ModRenderType.TRANSPARENT_QUADS_NO_TEXTURE for in-world stage areas. Works in all vanilla graphics modes.