net.minecraft.client.renderer

public class EffectInstance

implements Effect, AutoCloseable

gep
net.minecraft.client.renderer.EffectInstance
net.minecraft.class_280
net.minecraft.client.gl.JsonEffectShaderProgram
net.minecraft.src.C_4117_

Field summary

Modifier and TypeField
private static final String
a
EFFECT_SHADER_PATH
field_32682
PROGRAM_DIRECTORY
f_172564_
private static final org.slf4j.Logger
b
LOGGER
field_1514
LOGGER
f_108921_
private static final AbstractUniform
c
DUMMY_UNIFORM
field_1520
DEFAULT_UNIFORM
f_108922_
private static final boolean
d
ALWAYS_REAPPLY
field_32683
field_32683
f_172565_
private static EffectInstance
e
lastAppliedEffect
field_1512
activeProgram
f_108923_
private static int
f
lastProgramId
field_1505
activeProgramGlRef
f_108924_
private final Map<String, IntSupplier>
g
samplerMap
field_1516
samplerBinds
f_108925_
private final List<String>
h
samplerNames
field_1503
samplerNames
f_108926_
private final List<Integer>
i
samplerLocations
field_1506
samplerLocations
f_108927_
private final List<Uniform>
j
uniforms
field_1515
uniformData
f_108928_
private final List<Integer>
k
uniformLocations
field_1507
uniformLocations
f_108929_
private final Map<String, Uniform>
l
uniformMap
field_1510
uniformByName
f_108930_
private final int
m
programId
field_1521
glRef
f_108931_
private final String
n
name
field_1509
name
f_108932_
private boolean
o
dirty
field_1511
uniformStateDirty
f_108933_
private final BlendMode
p
blend
field_1517
blendState
f_108934_
private final List<Integer>
q
attributes
field_1518
attributeLocations
f_108935_
private final List<String>
r
attributeNames
field_1504
attributeNames
f_108936_
private final EffectProgram
s
vertexProgram
field_1508
vertexShader
f_108937_
private final EffectProgram
t
fragmentProgram
field_1519
fragmentShader
f_108938_

Constructor summary

ModifierConstructor
public (ResourceProvider factory, String name)

Method summary

Modifier and TypeMethod
public static EffectProgram
a(auh arg0, faw$a arg1, String arg2)
getOrCreate(ResourceProvider arg0, Program$Type arg1, String arg2)
method_16036(class_5912 arg0, class_281$class_282 arg1, String arg2)
loadEffect(ResourceFactory arg0, ShaderStage$Type type, String name)
m_172566_(C_140974_ p_331503_, C_3169_$C_3170_ p_172568_, String p_172569_)
public static BlendMode
a(com.google.gson.JsonObject arg0)
parseBlendNode(com.google.gson.JsonObject arg0)
method_16035(com.google.gson.JsonObject arg0)
deserializeBlendState(com.google.gson.JsonObject json)
m_108950_(com.google.gson.JsonObject p_108951_)
public void
close()
close()
close()
public void
f()
clear()
method_1273()
disable()
m_108965_()
public void
g()
apply()
method_1277()
enable()
m_108966_()
public void
b()
markDirty()
method_1279()
markUniformsDirty()
m_108957_()
public Uniform
a(String arg0)
getUniform(String arg0)
method_1271(String arg0)
getUniformByName(String name)
m_108952_(String arg0)
public AbstractUniform
b(String arg0)
safeGetUniform(String arg0)
method_1275(String arg0)
getUniformByNameOrDummy(String name)
m_108960_(String arg0)
private void
i()
updateLocations()
method_1268()
finalizeUniformsAndSamplers()
m_108967_()
private void
a(com.google.gson.JsonElement arg0)
parseSamplerNode(com.google.gson.JsonElement arg0)
method_1276(com.google.gson.JsonElement arg0)
addSampler(com.google.gson.JsonElement json)
m_108948_(com.google.gson.JsonElement arg0)
public void
a(String arg0, IntSupplier arg1)
setSampler(String arg0, IntSupplier arg1)
method_1269(String arg0, IntSupplier arg1)
bindSampler(String samplerName, IntSupplier arg1)
m_108954_(String p_108956_, IntSupplier arg1)
private void
b(com.google.gson.JsonElement arg0)
parseUniformNode(com.google.gson.JsonElement arg0)
method_1272(com.google.gson.JsonElement arg0)
addUniform(com.google.gson.JsonElement json)
m_108958_(com.google.gson.JsonElement arg0)
public Program
c()
getVertexProgram()
method_1274()
getVertexShader()
m_108962_()
public Program
d()
getFragmentProgram()
method_1278()
getFragmentShader()
m_108964_()
public void
e()
attachToProgram()
method_34418()
attachReferencedShaders()
m_142662_()
public String
h()
getName()
method_35763()
getName()
m_172571_()
public int
a()
getId()
method_1270()
getGlRef()
m_108943_()