Record Class TextureMetadataSection
java.lang.Object
java.lang.Record
net.minecraft.client.resources.metadata.texture.TextureMetadataSection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for theblur
record component.private final boolean
The field for theclamp
record component.static final com.mojang.serialization.Codec
<TextureMetadataSection> static final boolean
static final boolean
static final MetadataSectionType
<TextureMetadataSection> -
Constructor Summary
ConstructorsConstructorDescriptionTextureMetadataSection
(boolean blur, boolean clamp) Creates an instance of aTextureMetadataSection
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
blur()
Returns the value of theblur
record component.boolean
clamp()
Returns the value of theclamp
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.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
blur
private final boolean blurThe field for theblur
record component. -
clamp
private final boolean clampThe field for theclamp
record component. -
DEFAULT_BLUR
public static final boolean DEFAULT_BLUR- See Also:
-
DEFAULT_CLAMP
public static final boolean DEFAULT_CLAMP- See Also:
-
CODEC
-
TYPE
-
-
Constructor Details
-
TextureMetadataSection
public TextureMetadataSection(boolean blur, boolean clamp) Creates an instance of aTextureMetadataSection
record class.- Parameters:
blur
- the value for theblur
record componentclamp
- the value for theclamp
record component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
blur
public boolean blur()Returns the value of theblur
record component.- Returns:
- the value of the
blur
record component
-
clamp
public boolean clamp()Returns the value of theclamp
record component.- Returns:
- the value of the
clamp
record component
-