Record Class PalettedPermutationsAtlasSource

java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.PalettedPermutationsAtlasSource
Record Components:
textures -
paletteKey -
permutations -
separator -
All Implemented Interfaces:
AtlasSource

@Environment(CLIENT) public record PalettedPermutationsAtlasSource(List<Identifier> textures, Identifier paletteKey, Map<String,Identifier> permutations, String separator) extends Record implements AtlasSource
Mappings:
Namespace Name
named net/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource
intermediary net/minecraft/class_8066
official hlb
named textures
intermediary comp_3615
official d
named paletteKey
intermediary comp_3616
official e
named permutations
intermediary comp_3617
official f
named separator
intermediary comp_3618
official g
  • Field Details Link icon

    • textures Link icon

      private final List<Identifier> textures
      The field for the textures record component.
    • paletteKey Link icon

      private final Identifier paletteKey
      The field for the paletteKey record component.
    • permutations Link icon

      private final Map<String,Identifier> permutations
      The field for the permutations record component.
    • separator Link icon

      private final String separator
      The field for the separator record component.
    • LOGGER Link icon

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;LOGGER:Lorg/slf4j/Logger;
      intermediary field_42078 Lnet/minecraft/class_8066;field_42078:Lorg/slf4j/Logger;
      official h Lhlb;h:Lorg/slf4j/Logger;
    • DEFAULT_SEPARATOR Link icon

      public static final String DEFAULT_SEPARATOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SEPARATOR Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;DEFAULT_SEPARATOR:Ljava/lang/String;
      intermediary field_56378 Lnet/minecraft/class_8066;field_56378:Ljava/lang/String;
      official b Lhlb;b:Ljava/lang/String;
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<PalettedPermutationsAtlasSource> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_42077 Lnet/minecraft/class_8066;field_42077:Lcom/mojang/serialization/MapCodec;
      official c Lhlb;c:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • PalettedPermutationsAtlasSource Link icon

      public PalettedPermutationsAtlasSource(List<Identifier> textures, Identifier paletteKey, Map<String,Identifier> permutations)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;<init>(Ljava/util/List;Lnet/minecraft/util/Identifier;Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_8066;<init>(Ljava/util/List;Lnet/minecraft/class_2960;Ljava/util/Map;)V
      official <init> Lhlb;<init>(Ljava/util/List;Lalr;Ljava/util/Map;)V
    • PalettedPermutationsAtlasSource Link icon

      public PalettedPermutationsAtlasSource(List<Identifier> textures, Identifier identifier, Map<String,Identifier> permutations, String string)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;<init>(Ljava/util/List;Lnet/minecraft/util/Identifier;Ljava/util/Map;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8066;<init>(Ljava/util/List;Lnet/minecraft/class_2960;Ljava/util/Map;Ljava/lang/String;)V
      official <init> Lhlb;<init>(Ljava/util/List;Lalr;Ljava/util/Map;Ljava/lang/String;)V
  • Method Details Link icon

    • load Link icon

      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 Lhkv;a(Lavo;Lhkv$a;)V
    • toMapper Link icon

      private static IntUnaryOperator toMapper(int[] from, int[] to)
      Mappings:
      Namespace Name Mixin selector
      named toMapper Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;toMapper([I[I)Ljava/util/function/IntUnaryOperator;
      intermediary method_48492 Lnet/minecraft/class_8066;method_48492([I[I)Ljava/util/function/IntUnaryOperator;
      official a Lhlb;a([I[I)Ljava/util/function/IntUnaryOperator;
    • open Link icon

      private static int[] open(ResourceManager resourceManager, Identifier texture)
      Mappings:
      Namespace Name Mixin selector
      named open Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;open(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;)[I
      intermediary method_48486 Lnet/minecraft/class_8066;method_48486(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;)[I
      official a Lhlb;a(Lavo;Lalr;)[I
    • getCodec Link icon

      public com.mojang.serialization.MapCodec<PalettedPermutationsAtlasSource> 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 Lhkv;a()Lcom/mojang/serialization/MapCodec;
    • 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.
    • textures Link icon

      public List<Identifier> textures()
      Returns the value of the textures record component.
      Returns:
      the value of the textures record component
    • paletteKey Link icon

      public Identifier paletteKey()
      Returns the value of the paletteKey record component.
      Returns:
      the value of the paletteKey record component
    • permutations Link icon

      public Map<String,Identifier> permutations()
      Returns the value of the permutations record component.
      Returns:
      the value of the permutations record component
    • separator Link icon

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