Record Class HighlightRenderer.ShaderChain
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.client.highlight.HighlightRenderer.ShaderChain
- Enclosing class:
HighlightRenderer
public static record HighlightRenderer.ShaderChain(net.minecraft.client.renderer.PostChain postChain, com.mojang.blaze3d.pipeline.RenderTarget renderInput, com.mojang.blaze3d.pipeline.RenderTarget mcDepthInput, com.mojang.blaze3d.pipeline.RenderTarget renderOutput, org.apache.commons.lang3.mutable.MutableBoolean renderAnything)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionShaderChain(net.minecraft.client.renderer.PostChain postChain, com.mojang.blaze3d.pipeline.RenderTarget renderInput, com.mojang.blaze3d.pipeline.RenderTarget mcDepthInput, com.mojang.blaze3d.pipeline.RenderTarget renderOutput, org.apache.commons.lang3.mutable.MutableBoolean renderAnything) Creates an instance of aShaderChainrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearDepth(net.minecraft.client.Minecraft mc, boolean copy) voidclearInput(net.minecraft.client.Minecraft mc) voidclose()voiddraw(net.minecraft.client.Minecraft mc, float delta) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @Nullable HighlightRenderer.ShaderChainload(net.minecraft.client.Minecraft mc, net.minecraft.resources.ResourceLocation id) com.mojang.blaze3d.pipeline.RenderTargetReturns the value of themcDepthInputrecord component.net.minecraft.client.renderer.PostChainReturns the value of thepostChainrecord component.org.apache.commons.lang3.mutable.MutableBooleanReturns the value of therenderAnythingrecord component.com.mojang.blaze3d.pipeline.RenderTargetReturns the value of therenderInputrecord component.com.mojang.blaze3d.pipeline.RenderTargetReturns the value of therenderOutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShaderChain
public ShaderChain(net.minecraft.client.renderer.PostChain postChain, com.mojang.blaze3d.pipeline.RenderTarget renderInput, com.mojang.blaze3d.pipeline.RenderTarget mcDepthInput, com.mojang.blaze3d.pipeline.RenderTarget renderOutput, org.apache.commons.lang3.mutable.MutableBoolean renderAnything) Creates an instance of aShaderChainrecord class.- Parameters:
postChain- the value for thepostChainrecord componentrenderInput- the value for therenderInputrecord componentmcDepthInput- the value for themcDepthInputrecord componentrenderOutput- the value for therenderOutputrecord componentrenderAnything- the value for therenderAnythingrecord component
-
-
Method Details
-
load
@Nullable public static @Nullable HighlightRenderer.ShaderChain load(net.minecraft.client.Minecraft mc, net.minecraft.resources.ResourceLocation id) -
close
public void close() -
clearInput
public void clearInput(net.minecraft.client.Minecraft mc) -
clearDepth
public void clearDepth(net.minecraft.client.Minecraft mc, boolean copy) -
draw
public void draw(net.minecraft.client.Minecraft mc, float delta) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
postChain
public net.minecraft.client.renderer.PostChain postChain()Returns the value of thepostChainrecord component.- Returns:
- the value of the
postChainrecord component
-
renderInput
public com.mojang.blaze3d.pipeline.RenderTarget renderInput()Returns the value of therenderInputrecord component.- Returns:
- the value of the
renderInputrecord component
-
mcDepthInput
public com.mojang.blaze3d.pipeline.RenderTarget mcDepthInput()Returns the value of themcDepthInputrecord component.- Returns:
- the value of the
mcDepthInputrecord component
-
renderOutput
public com.mojang.blaze3d.pipeline.RenderTarget renderOutput()Returns the value of therenderOutputrecord component.- Returns:
- the value of the
renderOutputrecord component
-
renderAnything
public org.apache.commons.lang3.mutable.MutableBoolean renderAnything()Returns the value of therenderAnythingrecord component.- Returns:
- the value of the
renderAnythingrecord component
-