Package net.minecraft.client.texture
Record Class TextureContents
java.lang.Object
java.lang.Record
net.minecraft.client.texture.TextureContents
- Record Components:
image-metadata-
- All Implemented Interfaces:
Closeable,AutoCloseable
@Environment(CLIENT)
public record TextureContents(NativeImage image, @Nullable TextureResourceMetadata metadata)
extends Record
implements Closeable
- Mappings:
Namespace Name named net/minecraft/client/texture/TextureContentsintermediary net/minecraft/class_10539official hkrnamed imageintermediary comp_3447official anamed metadataintermediary comp_3448official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NativeImageThe field for theimagerecord component.private final @Nullable TextureResourceMetadataThe field for themetadatarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureContents(NativeImage nativeImage, @Nullable TextureResourceMetadata textureResourceMetadata) -
Method Summary
Modifier and TypeMethodDescriptionbooleanblur()booleanclamp()voidclose()static TextureContentsfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.static TextureContentsload(ResourceManager resourceManager, Identifier textureId) metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
TextureContents
public TextureContents(NativeImage nativeImage, @Nullable @Nullable TextureResourceMetadata textureResourceMetadata)
-
-
Method Details
-
load
public static TextureContents load(ResourceManager resourceManager, Identifier textureId) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named loadLnet/minecraft/client/texture/TextureContents;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/TextureContents;intermediary method_65871Lnet/minecraft/class_10539;method_65871(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;)Lnet/minecraft/class_10539;official aLhkr;a(Lavo;Lalr;)Lhkr;
-
createMissing
- Mappings:
Namespace Name Mixin selector named createMissingLnet/minecraft/client/texture/TextureContents;createMissing()Lnet/minecraft/client/texture/TextureContents;intermediary method_65870Lnet/minecraft/class_10539;method_65870()Lnet/minecraft/class_10539;official aLhkr;a()Lhkr;
-
blur
public boolean blur()- Mappings:
Namespace Name Mixin selector named blurLnet/minecraft/client/texture/TextureContents;blur()Zintermediary method_65872Lnet/minecraft/class_10539;method_65872()Zofficial bLhkr;b()Z
-
clamp
public boolean clamp()- Mappings:
Namespace Name Mixin selector named clampLnet/minecraft/client/texture/TextureContents;clamp()Zintermediary method_65873Lnet/minecraft/class_10539;method_65873()Zofficial cLhkr;c()Z
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
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 withObjects::equals(Object,Object). -
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-