Class ShaderParameters
java.lang.Object
com.pixelmonmod.pixelmon.client.render.shader.ShaderParameters
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.network.syncher.EntityDataSerializer<Optional<ShaderParameters>>
static final net.minecraft.network.syncher.EntityDataSerializer<ShaderParameters>
-
Constructor Summary
ConstructorDescriptionShaderParameters
(net.minecraft.resources.ResourceLocation id, Map<String, ShaderParameters.Value<?>> parameters, Color renderColor, boolean onlyShader, boolean withTexture, boolean wireframe, boolean vertex, boolean fullbright) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply()
static ShaderParameters.Builder
builder()
full()
net.minecraft.resources.ResourceLocation
getId()
<T> T
getParameter
(String key) net.minecraft.client.renderer.ShaderInstance
boolean
boolean
isVertex()
boolean
boolean
<T> ShaderParameters
setParameter
(String key, com.mojang.serialization.Codec<T> codec, T value) setRenderColor
(Color color) vertex()
boolean
-
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
-
onlyShader
public boolean onlyShader() -
withTexture
public boolean withTexture() -
isWireframe
public boolean isWireframe() -
isVertex
public boolean isVertex() -
isFullbright
public boolean isFullbright() -
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
-
markOnlyShader
-
markModelAndShader
-
useTexture
-
noTexture
-
wireframe
-
vertex
-
full
-
fullbright
-
apply
public void apply() -
builder
-