Class ShaderRegistry

java.lang.Object
io.github.vampirestudios.vampirelib.api.ShaderRegistry

public class ShaderRegistry extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<Map.Entry<net.minecraft.resources.ResourceLocation,com.mojang.blaze3d.vertex.VertexFormat>>
     
    static Supplier<net.minecraft.client.renderer.ShaderInstance>
    getShader(net.minecraft.resources.ResourceLocation shader)
     
    static void
    loadShader(net.minecraft.resources.ResourceLocation shader, net.minecraft.client.renderer.ShaderInstance instance)
     
    static void
    register(net.minecraft.resources.ResourceLocation shader, com.mojang.blaze3d.vertex.VertexFormat format)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShaderRegistry

      public ShaderRegistry()
  • Method Details

    • loadShader

      @Internal public static void loadShader(net.minecraft.resources.ResourceLocation shader, net.minecraft.client.renderer.ShaderInstance instance)
    • register

      public static void register(net.minecraft.resources.ResourceLocation shader, com.mojang.blaze3d.vertex.VertexFormat format)
    • getShader

      public static Supplier<net.minecraft.client.renderer.ShaderInstance> getShader(net.minecraft.resources.ResourceLocation shader)
    • getRegisteredShaders

      public static Set<Map.Entry<net.minecraft.resources.ResourceLocation,com.mojang.blaze3d.vertex.VertexFormat>> getRegisteredShaders()