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/PalettedPermutationsAtlasSourceintermediary net/minecraft/class_8066official hlbnamed texturesintermediary comp_3615official dnamed paletteKeyintermediary comp_3616official enamed permutationsintermediary comp_3617official fnamed separatorintermediary comp_3618official g
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordNested classes/interfaces inherited from interface net.minecraft.client.texture.atlas.AtlasSource
AtlasSource.SpriteRegion, AtlasSource.SpriteRegions -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<PalettedPermutationsAtlasSource> static final String(package private) static final Loggerprivate final IdentifierThe field for thepaletteKeyrecord component.private final Map<String, Identifier> The field for thepermutationsrecord component.private final StringThe field for theseparatorrecord component.private final List<Identifier> The field for thetexturesrecord component.Fields inherited from interface net.minecraft.client.texture.atlas.AtlasSource
RESOURCE_FINDER -
Constructor Summary
ConstructorsConstructorDescriptionPalettedPermutationsAtlasSource(List<Identifier> textures, Identifier paletteKey, Map<String, Identifier> permutations) PalettedPermutationsAtlasSource(List<Identifier> textures, Identifier identifier, Map<String, Identifier> permutations, String string) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<PalettedPermutationsAtlasSource> getCodec()final inthashCode()Returns a hash code value for this object.voidload(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) private static int[]open(ResourceManager resourceManager, Identifier texture) Returns the value of thepaletteKeyrecord component.Returns the value of thepermutationsrecord component.Returns the value of theseparatorrecord component.textures()Returns the value of thetexturesrecord component.private static IntUnaryOperatortoMapper(int[] from, int[] to) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
textures
The field for thetexturesrecord component. -
paletteKey
The field for thepaletteKeyrecord component. -
permutations
The field for thepermutationsrecord component. -
separator
The field for theseparatorrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;LOGGER:Lorg/slf4j/Logger;intermediary field_42078Lnet/minecraft/class_8066;field_42078:Lorg/slf4j/Logger;official hLhlb;h:Lorg/slf4j/Logger;
-
DEFAULT_SEPARATOR
- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SEPARATORLnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;DEFAULT_SEPARATOR:Ljava/lang/String;intermediary field_56378Lnet/minecraft/class_8066;field_56378:Ljava/lang/String;official bLhlb;b:Ljava/lang/String;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_42077Lnet/minecraft/class_8066;field_42077:Lcom/mojang/serialization/MapCodec;official cLhlb;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
PalettedPermutationsAtlasSource
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;)Vintermediary <init>Lnet/minecraft/class_8066;<init>(Ljava/util/List;Lnet/minecraft/class_2960;Ljava/util/Map;)Vofficial <init>Lhlb;<init>(Ljava/util/List;Lalr;Ljava/util/Map;)V
-
PalettedPermutationsAtlasSource
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;)Vintermediary <init>Lnet/minecraft/class_8066;<init>(Ljava/util/List;Lnet/minecraft/class_2960;Ljava/util/Map;Ljava/lang/String;)Vofficial <init>Lhlb;<init>(Ljava/util/List;Lalr;Ljava/util/Map;Ljava/lang/String;)V
-
-
Method Details
-
load
- Specified by:
loadin interfaceAtlasSource- Mappings:
Namespace Name Mixin selector named loadLnet/minecraft/client/texture/atlas/AtlasSource;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegions;)Vintermediary method_47673Lnet/minecraft/class_7948;method_47673(Lnet/minecraft/class_3300;Lnet/minecraft/class_7948$class_7949;)Vofficial aLhkv;a(Lavo;Lhkv$a;)V
-
toMapper
- Mappings:
Namespace Name Mixin selector named toMapperLnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;toMapper([I[I)Ljava/util/function/IntUnaryOperator;intermediary method_48492Lnet/minecraft/class_8066;method_48492([I[I)Ljava/util/function/IntUnaryOperator;official aLhlb;a([I[I)Ljava/util/function/IntUnaryOperator;
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource;open(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;)[Iintermediary method_48486Lnet/minecraft/class_8066;method_48486(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;)[Iofficial aLhlb;a(Lavo;Lalr;)[I
-
getCodec
- Specified by:
getCodecin interfaceAtlasSource- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/client/texture/atlas/AtlasSource;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_67288Lnet/minecraft/class_7948;method_67288()Lcom/mojang/serialization/MapCodec;official aLhkv;a()Lcom/mojang/serialization/MapCodec;
-
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). -
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
paletteKey
Returns the value of thepaletteKeyrecord component.- Returns:
- the value of the
paletteKeyrecord component
-
permutations
Returns the value of thepermutationsrecord component.- Returns:
- the value of the
permutationsrecord component
-
separator
Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-