Package net.minecraft.text
Record Class ObjectTextContent.SpriteContents
java.lang.Object
java.lang.Record
net.minecraft.text.ObjectTextContent.SpriteContents
- Record Components:
atlas-sprite-
- All Implemented Interfaces:
ObjectTextContent.Contents
- Enclosing class:
ObjectTextContent
public static record ObjectTextContent.SpriteContents(Identifier atlas, Identifier sprite)
extends Record
implements ObjectTextContent.Contents
- Mappings:
Namespace Name named net/minecraft/text/ObjectTextContent$SpriteContentsintermediary net/minecraft/class_11722$class_11723official zb$anamed atlasintermediary comp_4592official dnamed spriteintermediary comp_4593official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theatlasrecord component.static final com.mojang.serialization.MapCodec<ObjectTextContent.SpriteContents> static final Identifierprivate final IdentifierThe field for thespriterecord component.Fields inherited from interface net.minecraft.text.ObjectTextContent.Contents
SPRITE_CODEC -
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.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/ObjectTextContent$SpriteContents;DEFAULT_ATLAS:Lnet/minecraft/util/Identifier;intermediary field_61976Lnet/minecraft/class_11722$class_11723;field_61976:Lnet/minecraft/class_2960;official aLzb$a;a:Laml;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/ObjectTextContent$SpriteContents;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61977Lnet/minecraft/class_11722$class_11723;field_61977:Lcom/mojang/serialization/MapCodec;official bLzb$a;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SpriteContents
-
-
Method Details
-
spriteSource
- Specified by:
spriteSourcein interfaceObjectTextContent.Contents- Mappings:
Namespace Name Mixin selector named spriteSourceLnet/minecraft/text/ObjectTextContent$Contents;spriteSource()Lnet/minecraft/text/StyleSpriteSource;intermediary method_73175Lnet/minecraft/class_11722$class_11724;method_73175()Lnet/minecraft/class_11719;official aLzb$b;a()Lxy;
-
getShortIdString
- Mappings:
Namespace Name Mixin selector named getShortIdStringLnet/minecraft/text/ObjectTextContent$SpriteContents;getShortIdString(Lnet/minecraft/util/Identifier;)Ljava/lang/String;intermediary method_73176Lnet/minecraft/class_11722$class_11723;method_73176(Lnet/minecraft/class_2960;)Ljava/lang/String;official aLzb$a;a(Laml;)Ljava/lang/String;
-
asText
- Specified by:
asTextin interfaceObjectTextContent.Contents- Mappings:
Namespace Name Mixin selector named asTextLnet/minecraft/text/ObjectTextContent$Contents;asText()Ljava/lang/String;intermediary method_73178Lnet/minecraft/class_11722$class_11724;method_73178()Ljava/lang/String;official bLzb$b;b()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
-