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/TextureContents
intermediary net/minecraft/class_10539
official heu
named image
intermediary comp_3447
official a
named metadata
intermediary comp_3448
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NativeImage
The field for theimage
record component.private final @Nullable TextureResourceMetadata
The field for themetadata
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureContents
(NativeImage nativeImage, @Nullable TextureResourceMetadata textureResourceMetadata) -
Method Summary
Modifier and TypeMethodDescriptionboolean
blur()
boolean
clamp()
void
close()
static TextureContents
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.image()
Returns the value of theimage
record component.static TextureContents
load
(ResourceManager resourceManager, Identifier textureId) metadata()
Returns the value of themetadata
record component.final String
toString()
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 load
Lnet/minecraft/client/texture/TextureContents;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/TextureContents;
intermediary method_65871
Lnet/minecraft/class_10539;method_65871(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;)Lnet/minecraft/class_10539;
official a
Lheu;a(Laup;Lakv;)Lheu;
-
createMissing
- Mappings:
Namespace Name Mixin selector named createMissing
Lnet/minecraft/client/texture/TextureContents;createMissing()Lnet/minecraft/client/texture/TextureContents;
intermediary method_65870
Lnet/minecraft/class_10539;method_65870()Lnet/minecraft/class_10539;
official a
Lheu;a()Lheu;
-
blur
public boolean blur()- Mappings:
Namespace Name Mixin selector named blur
Lnet/minecraft/client/texture/TextureContents;blur()Z
intermediary method_65872
Lnet/minecraft/class_10539;method_65872()Z
official b
Lheu;b()Z
-
clamp
public boolean clamp()- Mappings:
Namespace Name Mixin selector named clamp
Lnet/minecraft/client/texture/TextureContents;clamp()Z
intermediary method_65873
Lnet/minecraft/class_10539;method_65873()Z
official c
Lheu;c()Z
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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 theimage
record component.- Returns:
- the value of the
image
record component
-
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-