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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record
Nested 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 Logger
private final Identifier
The field for thepaletteKey
record component.private final Map
<String, Identifier> The field for thepermutations
record component.private final String
The field for theseparator
record component.private final List
<Identifier> The field for thetextures
record 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 boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<PalettedPermutationsAtlasSource> getCodec()
final int
hashCode()
Returns a hash code value for this object.void
load
(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) private static int[]
open
(ResourceManager resourceManager, Identifier texture) Returns the value of thepaletteKey
record component.Returns the value of thepermutations
record component.Returns the value of theseparator
record component.textures()
Returns the value of thetextures
record component.private static IntUnaryOperator
toMapper
(int[] from, int[] to) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
textures
The field for thetextures
record component. -
paletteKey
The field for thepaletteKey
record component. -
permutations
The field for thepermutations
record component. -
separator
The field for theseparator
record component. -
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
- 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
- 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
-
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;)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
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
-
load
- Specified by:
load
in interfaceAtlasSource
- 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
- 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
- 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
- Specified by:
getCodec
in interfaceAtlasSource
- 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
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 thetextures
record component.- Returns:
- the value of the
textures
record component
-
paletteKey
Returns the value of thepaletteKey
record component.- Returns:
- the value of the
paletteKey
record component
-
permutations
Returns the value of thepermutations
record component.- Returns:
- the value of the
permutations
record component
-
separator
Returns the value of theseparator
record component.- Returns:
- the value of the
separator
record component
-