Package net.minecraft.text
Record Class SpriteContents
java.lang.Object
java.lang.Record
net.minecraft.text.SpriteContents
- Record Components:
atlas-sprite-
- All Implemented Interfaces:
Contents
public record SpriteContents(Identifier atlas, Identifier sprite)
extends Record
implements Contents
- Mappings:
Namespace Name named net/minecraft/text/SpriteContentsintermediary net/minecraft/class_11723official zmnamed atlasintermediary comp_4592official cnamed spriteintermediary comp_4593official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theatlasrecord component.static final com.mojang.serialization.MapCodec<SpriteContents> static final Identifierprivate final IdentifierThe field for thespriterecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasText()atlas()Returns the value of theatlasrecord component.final booleanIndicates whether some other object is "equal to" this one.private static Stringfinal inthashCode()Returns a hash code value for this object.com.mojang.serialization.MapCodec<SpriteContents> sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
atlas
The field for theatlasrecord component. -
sprite
The field for thespriterecord component. -
DEFAULT_ATLAS
- Mappings:
Namespace Name Mixin selector named DEFAULT_ATLASLnet/minecraft/text/SpriteContents;DEFAULT_ATLAS:Lnet/minecraft/util/Identifier;intermediary field_61976Lnet/minecraft/class_11723;field_61976:Lnet/minecraft/class_2960;official aLzm;a:Lamw;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/SpriteContents;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61977Lnet/minecraft/class_11723;field_61977:Lcom/mojang/serialization/MapCodec;official bLzm;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SpriteContents
-
-
Method Details
-
method_74067
- Specified by:
method_74067in interfaceContents- Mappings:
Namespace Name Mixin selector named method_74067Lnet/minecraft/text/Contents;method_74067()Lcom/mojang/serialization/MapCodec;intermediary method_74067Lnet/minecraft/class_11724;method_74067()Lcom/mojang/serialization/MapCodec;official aLzn;a()Lcom/mojang/serialization/MapCodec;
-
method_74068
- Specified by:
method_74068in interfaceContents- Mappings:
Namespace Name Mixin selector named method_74068Lnet/minecraft/text/Contents;method_74068()Lnet/minecraft/text/StyleSpriteSource;intermediary method_74068Lnet/minecraft/class_11724;method_74068()Lnet/minecraft/class_11719;official bLzn;b()Lya;
-
getShortIdString
- Mappings:
Namespace Name Mixin selector named getShortIdStringLnet/minecraft/text/SpriteContents;getShortIdString(Lnet/minecraft/util/Identifier;)Ljava/lang/String;intermediary method_73176Lnet/minecraft/class_11723;method_73176(Lnet/minecraft/class_2960;)Ljava/lang/String;official aLzm;a(Lamw;)Ljava/lang/String;
-
asText
-
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). -
atlas
Returns the value of theatlasrecord component.- Returns:
- the value of the
atlasrecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-