Record Class TextureResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.TextureResourceMetadata
- Record Components:
blur-clamp-mipmapStrategy-alphaCutoffBias-
@Environment(CLIENT)
public record TextureResourceMetadata(boolean blur, boolean clamp, MipmapStrategy mipmapStrategy, float alphaCutoffBias)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/resource/metadata/TextureResourceMetadataintermediary net/minecraft/class_1084official injnamed blurintermediary comp_3459official fnamed clampintermediary comp_3460official gnamed mipmapStrategyintermediary comp_5160official hnamed alphaCutoffBiasintermediary comp_5264official i
-
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<TextureResourceMetadata> static final booleanstatic final booleanstatic final floatprivate final MipmapStrategyThe field for themipmapStrategyrecord component.static final ResourceMetadataSerializer<TextureResourceMetadata> -
Constructor Summary
ConstructorsConstructorDescriptionTextureResourceMetadata(boolean blur, boolean clamp, MipmapStrategy mipmapStrategy, float alphaCutoffBias) Creates an instance of aTextureResourceMetadatarecord 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. -
field_32980
public static final boolean field_32980- See Also:
- Mappings:
Namespace Name Mixin selector named field_32980Lnet/minecraft/client/resource/metadata/TextureResourceMetadata;field_32980:Zintermediary field_32980Lnet/minecraft/class_1084;field_32980:Zofficial aLinj;a:Z
-
field_32981
public static final boolean field_32981- See Also:
- Mappings:
Namespace Name Mixin selector named field_32981Lnet/minecraft/client/resource/metadata/TextureResourceMetadata;field_32981:Zintermediary field_32981Lnet/minecraft/class_1084;field_32981:Zofficial bLinj;b:Z
-
field_64678
public static final float field_64678- See Also:
- Mappings:
Namespace Name Mixin selector named field_64678Lnet/minecraft/client/resource/metadata/TextureResourceMetadata;field_64678:Fintermediary field_64678Lnet/minecraft/class_1084;field_64678:Fofficial cLinj;c:F
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/resource/metadata/TextureResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;intermediary field_55541Lnet/minecraft/class_1084;field_55541:Lcom/mojang/serialization/Codec;official dLinj;d:Lcom/mojang/serialization/Codec;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZERLnet/minecraft/client/resource/metadata/TextureResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_55542Lnet/minecraft/class_1084;field_55542:Lnet/minecraft/class_7677;official eLinj;e:Lazy;
-
-
Constructor Details
-
TextureResourceMetadata
public TextureResourceMetadata(boolean blur, boolean clamp, MipmapStrategy mipmapStrategy, float alphaCutoffBias) Creates an instance of aTextureResourceMetadatarecord 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
-