Package net.minecraft.client.renderer
Record Class PostPass.TargetInput
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.PostPass.TargetInput
- All Implemented Interfaces:
PostPass.Input
- Enclosing class:
PostPass
public static record PostPass.TargetInput(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear)
extends Record
implements PostPass.Input
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thebilinear
record component.private final boolean
The field for thedepthBuffer
record component.private final String
The field for thesamplerName
record component.private final ResourceLocation
The field for thetargetId
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTargetInput
(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear) Creates an instance of aTargetInput
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToPass
(FramePass p_364579_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_360589_) boolean
bilinear()
Returns the value of thebilinear
record component.void
bindTo
(RenderPass p_409676_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_361239_) void
cleanup
(Map<ResourceLocation, ResourceHandle<RenderTarget>> p_363172_) boolean
Returns the value of thedepthBuffer
record component.final boolean
Indicates whether some other object is "equal to" this one.private ResourceHandle
<RenderTarget> getHandle
(Map<ResourceLocation, ResourceHandle<RenderTarget>> p_364534_) final int
hashCode()
Returns a hash code value for this object.Returns the value of thesamplerName
record component.targetId()
Returns the value of thetargetId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
samplerName
The field for thesamplerName
record component. -
targetId
The field for thetargetId
record component. -
depthBuffer
private final boolean depthBufferThe field for thedepthBuffer
record component. -
bilinear
private final boolean bilinearThe field for thebilinear
record component.
-
-
Constructor Details
-
TargetInput
public TargetInput(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear) Creates an instance of aTargetInput
record class.- Parameters:
samplerName
- the value for thesamplerName
record componenttargetId
- the value for thetargetId
record componentdepthBuffer
- the value for thedepthBuffer
record componentbilinear
- the value for thebilinear
record component
-
-
Method Details
-
getHandle
private ResourceHandle<RenderTarget> getHandle(Map<ResourceLocation, ResourceHandle<RenderTarget>> p_364534_) -
addToPass
public void addToPass(FramePass p_364579_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_360589_) - Specified by:
addToPass
in interfacePostPass.Input
-
bindTo
public void bindTo(RenderPass p_409676_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_361239_) - Specified by:
bindTo
in interfacePostPass.Input
-
cleanup
- Specified by:
cleanup
in interfacePostPass.Input
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
samplerName
Returns the value of thesamplerName
record component.- Returns:
- the value of the
samplerName
record component
-
targetId
Returns the value of thetargetId
record component.- Returns:
- the value of the
targetId
record component
-
depthBuffer
public boolean depthBuffer()Returns the value of thedepthBuffer
record component.- Returns:
- the value of the
depthBuffer
record component
-
bilinear
public boolean bilinear()Returns the value of thebilinear
record component.- Returns:
- the value of the
bilinear
record component
-