Package net.minecraft.client.renderer
Record Class PostPass.TextureInput
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.PostPass.TextureInput
- All Implemented Interfaces:
PostPass.Input
- Enclosing class:
PostPass
public static record PostPass.TextureInput(String samplerName, AbstractTexture texture, int width, int height)
extends Record
implements PostPass.Input
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for theheight
record component.private final String
The field for thesamplerName
record component.private final AbstractTexture
The field for thetexture
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureInput
(String samplerName, AbstractTexture texture, int width, int height) Creates an instance of aTextureInput
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToPass
(FramePass p_361843_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_362022_) void
bindTo
(RenderPass p_410527_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_363141_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.Returns the value of thesamplerName
record component.texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.PostPass.Input
cleanup
-
Field Details
-
samplerName
The field for thesamplerName
record component. -
texture
The field for thetexture
record component. -
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component.
-
-
Constructor Details
-
TextureInput
Creates an instance of aTextureInput
record class.- Parameters:
samplerName
- the value for thesamplerName
record componenttexture
- the value for thetexture
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record component
-
-
Method Details
-
addToPass
public void addToPass(FramePass p_361843_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_362022_) - Specified by:
addToPass
in interfacePostPass.Input
-
bindTo
public void bindTo(RenderPass p_410527_, Map<ResourceLocation, ResourceHandle<RenderTarget>> p_363141_) - Specified by:
bindTo
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
-
texture
Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-