Package net.minecraft.text.object
Record Class AtlasTextObjectContents
java.lang.Object
java.lang.Record
net.minecraft.text.object.AtlasTextObjectContents
- Record Components:
atlas-sprite-
- All Implemented Interfaces:
TextObjectContents
public record AtlasTextObjectContents(Identifier atlas, Identifier sprite)
extends Record
implements TextObjectContents
- Mappings:
Namespace Name named net/minecraft/text/object/AtlasTextObjectContentsintermediary net/minecraft/class_11723official zonamed 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<AtlasTextObjectContents> 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.com.mojang.serialization.MapCodec<AtlasTextObjectContents> getCodec()private static Stringfinal inthashCode()Returns a hash code value for this object.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/object/AtlasTextObjectContents;DEFAULT_ATLAS:Lnet/minecraft/util/Identifier;intermediary field_61976Lnet/minecraft/class_11723;field_61976:Lnet/minecraft/class_2960;official aLzo;a:Lamj;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/object/AtlasTextObjectContents;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61977Lnet/minecraft/class_11723;field_61977:Lcom/mojang/serialization/MapCodec;official bLzo;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
AtlasTextObjectContents
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceTextObjectContents- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/text/object/TextObjectContents;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_74067Lnet/minecraft/class_11724;method_74067()Lcom/mojang/serialization/MapCodec;official aLzp;a()Lcom/mojang/serialization/MapCodec;
-
spriteSource
- Specified by:
spriteSourcein interfaceTextObjectContents- Mappings:
Namespace Name Mixin selector named spriteSourceLnet/minecraft/text/object/TextObjectContents;spriteSource()Lnet/minecraft/text/StyleSpriteSource;intermediary method_74068Lnet/minecraft/class_11724;method_74068()Lnet/minecraft/class_11719;official bLzp;b()Lyc;
-
getShortIdString
- Mappings:
Namespace Name Mixin selector named getShortIdStringLnet/minecraft/text/object/AtlasTextObjectContents;getShortIdString(Lnet/minecraft/util/Identifier;)Ljava/lang/String;intermediary method_73176Lnet/minecraft/class_11723;method_73176(Lnet/minecraft/class_2960;)Ljava/lang/String;official aLzo;a(Lamj;)Ljava/lang/String;
-
asText
- Specified by:
asTextin interfaceTextObjectContents- Mappings:
Namespace Name Mixin selector named asTextLnet/minecraft/text/object/TextObjectContents;asText()Ljava/lang/String;intermediary method_73178Lnet/minecraft/class_11724;method_73178()Ljava/lang/String;official cLzp;c()Ljava/lang/String;
-
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
-