Record Class DirectoryAtlasSource

java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.DirectoryAtlasSource
Record Components:
sourcePath -
idPrefix -
All Implemented Interfaces:
AtlasSource

@Environment(CLIENT) public record DirectoryAtlasSource(String sourcePath, String idPrefix) extends Record implements AtlasSource
Mappings:
Namespace Name
named net/minecraft/client/texture/atlas/DirectoryAtlasSource
intermediary net/minecraft/class_7954
official hrz
named sourcePath
intermediary comp_3613
official c
named idPrefix
intermediary comp_3614
official d
  • Field Details

    • sourcePath

      private final String sourcePath
      The field for the sourcePath record component.
    • idPrefix

      private final String idPrefix
      The field for the idPrefix record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<DirectoryAtlasSource> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/texture/atlas/DirectoryAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_41399 Lnet/minecraft/class_7954;field_41399:Lcom/mojang/serialization/MapCodec;
      official b Lhrz;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • DirectoryAtlasSource

      public DirectoryAtlasSource(String source, String prefix)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/atlas/DirectoryAtlasSource;<init>(Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_7954;<init>(Ljava/lang/String;Ljava/lang/String;)V
      official <init> Lhrz;<init>(Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • load

      public void load(ResourceManager resourceManager, AtlasSource.SpriteRegions regions)
      Specified by:
      load in interface AtlasSource
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/texture/atlas/AtlasSource;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegions;)V
      intermediary method_47673 Lnet/minecraft/class_7948;method_47673(Lnet/minecraft/class_3300;Lnet/minecraft/class_7948$class_7949;)V
      official a Lhrv;a(Laxo;Lhrv$a;)V
    • getCodec

      public com.mojang.serialization.MapCodec<DirectoryAtlasSource> getCodec()
      Specified by:
      getCodec in interface AtlasSource
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/client/texture/atlas/AtlasSource;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_67288 Lnet/minecraft/class_7948;method_67288()Lcom/mojang/serialization/MapCodec;
      official a Lhrv;a()Lcom/mojang/serialization/MapCodec;
    • toString

      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

      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

      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.
    • sourcePath

      public String sourcePath()
      Returns the value of the sourcePath record component.
      Returns:
      the value of the sourcePath record component
    • idPrefix

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