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 booleanThe field for thebilinearrecord component.private final booleanThe field for thedepthBufferrecord component.private final StringThe field for thesamplerNamerecord component.private final ResourceLocationThe field for thetargetIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTargetInput(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear) Creates an instance of aTargetInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToPass(FramePass p_364579_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_360589_) booleanbilinear()Returns the value of thebilinearrecord component.voidcleanup(Map<ResourceLocation, ResourceHandle<RenderTarget>> p_363172_) booleanReturns the value of thedepthBufferrecord component.final booleanIndicates whether some other object is "equal to" this one.private ResourceHandle<RenderTarget> getHandle(Map<ResourceLocation, ResourceHandle<RenderTarget>> pTargets) 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<ResourceLocation, ResourceHandle<RenderTarget>> p_361239_) final StringtoString()Returns a string representation of this record class.
-
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
public TargetInput(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear) 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<ResourceLocation, ResourceHandle<RenderTarget>> pTargets) -
addToPass
public void addToPass(FramePass p_364579_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_360589_) - Specified by:
addToPassin interfacePostPass.Input
-
cleanup
- Specified by:
cleanupin interfacePostPass.Input
-
texture
- Specified by:
texturein 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 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.- Returns:
- the value of the
bilinearrecord component
-