Record Class TextureMetadataSection
java.lang.Object
java.lang.Record
net.minecraft.client.resources.metadata.texture.TextureMetadataSection
public record TextureMetadataSection(boolean blur, boolean clamp, MipmapStrategy mipmapStrategy, float alphaCutoffBias)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thealphaCutoffBiasrecord component.private final booleanThe field for theblurrecord component.private final booleanThe field for theclamprecord component.static final com.mojang.serialization.Codec<TextureMetadataSection> static final floatstatic final booleanstatic final booleanprivate final MipmapStrategyThe field for themipmapStrategyrecord component.static final MetadataSectionType<TextureMetadataSection> -
Constructor Summary
ConstructorsConstructorDescriptionTextureMetadataSection(boolean blur, boolean clamp, MipmapStrategy mipmapStrategy, float alphaCutoffBias) Creates an instance of aTextureMetadataSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thealphaCutoffBiasrecord component.booleanblur()Returns the value of theblurrecord component.booleanclamp()Returns the value of theclamprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themipmapStrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blur
private final boolean blurThe field for theblurrecord component. -
clamp
private final boolean clampThe field for theclamprecord component. -
mipmapStrategy
The field for themipmapStrategyrecord component. -
alphaCutoffBias
private final float alphaCutoffBiasThe field for thealphaCutoffBiasrecord component. -
DEFAULT_BLUR
public static final boolean DEFAULT_BLUR- See Also:
-
DEFAULT_CLAMP
public static final boolean DEFAULT_CLAMP- See Also:
-
DEFAULT_ALPHA_CUTOFF_BIAS
public static final float DEFAULT_ALPHA_CUTOFF_BIAS- See Also:
-
CODEC
-
TYPE
-
-
Constructor Details
-
TextureMetadataSection
public TextureMetadataSection(boolean blur, boolean clamp, MipmapStrategy mipmapStrategy, float alphaCutoffBias) Creates an instance of aTextureMetadataSectionrecord class.- Parameters:
blur- the value for theblurrecord componentclamp- the value for theclamprecord componentmipmapStrategy- the value for themipmapStrategyrecord componentalphaCutoffBias- the value for thealphaCutoffBiasrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
blur
public boolean blur()Returns the value of theblurrecord component.- Returns:
- the value of the
blurrecord component
-
clamp
public boolean clamp()Returns the value of theclamprecord component.- Returns:
- the value of the
clamprecord component
-
mipmapStrategy
Returns the value of themipmapStrategyrecord component.- Returns:
- the value of the
mipmapStrategyrecord component
-
alphaCutoffBias
public float alphaCutoffBias()Returns the value of thealphaCutoffBiasrecord component.- Returns:
- the value of the
alphaCutoffBiasrecord component
-