Package net.minecraft.client.renderer
Record Class PostChainConfig.TextureInput
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.PostChainConfig.TextureInput
- All Implemented Interfaces:
PostChainConfig.Input
- Enclosing class:
PostChainConfig
public static record PostChainConfig.TextureInput(String samplerName, ResourceLocation location, int width, int height, boolean bilinear)
extends Record
implements PostChainConfig.Input
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thebilinear
record component.static final com.mojang.serialization.Codec
<PostChainConfig.TextureInput> private final int
The field for theheight
record component.private final ResourceLocation
The field for thelocation
record component.private final String
The field for thesamplerName
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureInput
(String samplerName, ResourceLocation location, int width, int height, boolean bilinear) Creates an instance of aTextureInput
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
bilinear()
Returns the value of thebilinear
record component.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.location()
Returns the value of thelocation
record component.Returns the value of thesamplerName
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
samplerName
The field for thesamplerName
record component. -
location
The field for thelocation
record component. -
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
bilinear
private final boolean bilinearThe field for thebilinear
record component. -
CODEC
-
-
Constructor Details
-
TextureInput
public TextureInput(String samplerName, ResourceLocation location, int width, int height, boolean bilinear) Creates an instance of aTextureInput
record class.- Parameters:
samplerName
- the value for thesamplerName
record componentlocation
- the value for thelocation
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record componentbilinear
- the value for thebilinear
record component
-
-
Method Details
-
referencedTargets
- Specified by:
referencedTargets
in interfacePostChainConfig.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.- Specified by:
samplerName
in interfacePostChainConfig.Input
- Returns:
- the value of the
samplerName
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
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
-
bilinear
public boolean bilinear()Returns the value of thebilinear
record component.- Returns:
- the value of the
bilinear
record component
-