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, Identifier targetId, boolean depthBuffer, boolean bilinear)
extends Record
implements PostPass.Input
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thebilinearrecord component.private final booleanThe field for thedepthBufferrecord component.private final StringThe field for thesamplerNamerecord component.private final IdentifierThe field for thetargetIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTargetInput(String samplerName, Identifier targetId, boolean depthBuffer, boolean bilinear) Creates an instance of aTargetInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToPass(FramePass pass, Map<Identifier, ResourceHandle<RenderTarget>> targets) booleanbilinear()Returns the value of thebilinearrecord component.booleanReturns the value of thedepthBufferrecord component.final booleanIndicates whether some other object is "equal to" this one.private ResourceHandle<RenderTarget> getHandle(Map<Identifier, ResourceHandle<RenderTarget>> targets) final inthashCode()Returns a hash code value for this object.Returns the value of thesamplerNamerecord component.targetId()Returns the value of thetargetIdrecord component.texture(Map<Identifier, ResourceHandle<RenderTarget>> targets) final StringtoString()Returns a string representation of this record class.Methods inherited from interface PostPass.Input
cleanup
-
Field Details
-
samplerName
The field for thesamplerNamerecord component. -
targetId
The field for thetargetIdrecord component. -
depthBuffer
private final boolean depthBufferThe field for thedepthBufferrecord component. -
bilinear
private final boolean bilinearThe field for thebilinearrecord component.
-
-
Constructor Details
-
TargetInput
Creates an instance of aTargetInputrecord class.- Parameters:
samplerName- the value for thesamplerNamerecord componenttargetId- the value for thetargetIdrecord componentdepthBuffer- the value for thedepthBufferrecord componentbilinear- the value for thebilinearrecord component
-
-
Method Details
-
getHandle
private ResourceHandle<RenderTarget> getHandle(Map<Identifier, ResourceHandle<RenderTarget>> targets) -
addToPass
- Specified by:
addToPassin interfacePostPass.Input
-
texture
- Specified by:
texturein interfacePostPass.Input
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
samplerName
Returns the value of thesamplerNamerecord component.- Specified by:
samplerNamein interfacePostPass.Input- Returns:
- the value of the
samplerNamerecord component
-
targetId
Returns the value of thetargetIdrecord component.- Returns:
- the value of the
targetIdrecord component
-
depthBuffer
public boolean depthBuffer()Returns the value of thedepthBufferrecord component.- Returns:
- the value of the
depthBufferrecord component
-
bilinear
public boolean bilinear()Returns the value of thebilinearrecord component.- Specified by:
bilinearin interfacePostPass.Input- Returns:
- the value of the
bilinearrecord component
-