Record Class SpriteMapper

java.lang.Object
java.lang.Record
net.minecraft.client.util.SpriteMapper
Record Components:
sheet -
prefix -

@Environment(CLIENT) public record SpriteMapper(Identifier sheet, String prefix) extends Record
Mappings:
Namespace Name
named net/minecraft/client/util/SpriteMapper
intermediary net/minecraft/class_10721
official grm
named sheet
intermediary comp_3608
official a
named prefix
intermediary comp_3609
official b
  • Field Details Link icon

    • sheet Link icon

      private final Identifier sheet
      The field for the sheet record component.
    • prefix Link icon

      private final String prefix
      The field for the prefix record component.
  • Constructor Details Link icon

  • Method Details Link icon

    • map Link icon

      public SpriteIdentifier map(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/client/util/SpriteMapper;map(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary method_67273 Lnet/minecraft/class_10721;method_67273(Lnet/minecraft/class_2960;)Lnet/minecraft/class_4730;
      official a Lgrm;a(Lalr;)Lhmx;
    • mapVanilla Link icon

      public SpriteIdentifier mapVanilla(String id)
      Mappings:
      Namespace Name Mixin selector
      named mapVanilla Lnet/minecraft/client/util/SpriteMapper;mapVanilla(Ljava/lang/String;)Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary method_67274 Lnet/minecraft/class_10721;method_67274(Ljava/lang/String;)Lnet/minecraft/class_4730;
      official a Lgrm;a(Ljava/lang/String;)Lhmx;
    • toString Link icon

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sheet Link icon

      public Identifier sheet()
      Returns the value of the sheet record component.
      Returns:
      the value of the sheet record component
    • prefix Link icon

      public String prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component