Class ShaderParameters

java.lang.Object
com.pixelmonmod.pixelmon.client.render.shader.ShaderParameters

@Immutable public class ShaderParameters extends Object
  • Field Details

    • SHADER_DATA_SERIALIZER

      public static final net.minecraft.network.syncher.EntityDataSerializer<ShaderParameters> SHADER_DATA_SERIALIZER
    • OPTIONAL_SHADER_DATA_SERIALIZER

      public static final net.minecraft.network.syncher.EntityDataSerializer<Optional<ShaderParameters>> OPTIONAL_SHADER_DATA_SERIALIZER
  • Constructor Details

    • ShaderParameters

      public ShaderParameters(net.minecraft.resources.ResourceLocation id, Map<String,ShaderParameters.Value<?>> parameters, Color renderColor, boolean onlyShader, boolean withTexture, boolean wireframe, boolean vertex, boolean fullbright)
  • Method Details

    • getParameter

      @Nullable public <T> T getParameter(String key)
    • onlyShader

      public boolean onlyShader()
    • withTexture

      public boolean withTexture()
    • isWireframe

      public boolean isWireframe()
    • isVertex

      public boolean isVertex()
    • isFullbright

      public boolean isFullbright()
    • getRenderColor

      public Color getRenderColor()
    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • getShaderState

      public net.minecraft.client.renderer.ShaderInstance getShaderState()
    • setParameter

      public <T> ShaderParameters setParameter(String key, com.mojang.serialization.Codec<T> codec, T value)
    • setRenderColor

      public ShaderParameters setRenderColor(Color color)
    • markOnlyShader

      public ShaderParameters markOnlyShader()
    • markModelAndShader

      public ShaderParameters markModelAndShader()
    • useTexture

      public ShaderParameters useTexture()
    • noTexture

      public ShaderParameters noTexture()
    • wireframe

      public ShaderParameters wireframe()
    • vertex

      public ShaderParameters vertex()
    • full

      public ShaderParameters full()
    • fullbright

      public ShaderParameters fullbright()
    • apply

      public void apply()
    • builder

      public static ShaderParameters.Builder builder()