Class PalettedPermutations
java.lang.Object
net.minecraft.client.renderer.texture.atlas.sources.PalettedPermutations
- All Implemented Interfaces:
SpriteSource
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
Nested classes/interfaces inherited from interface net.minecraft.client.renderer.texture.atlas.SpriteSource
SpriteSource.Output, SpriteSource.SpriteSupplier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PalettedPermutations>
(package private) static final org.slf4j.Logger
private final ResourceLocation
private final Map<String,
ResourceLocation> private final List<ResourceLocation>
Fields inherited from interface net.minecraft.client.renderer.texture.atlas.SpriteSource
TEXTURE_ID_CONVERTER
-
Constructor Summary
ModifierConstructorDescriptionprivate
PalettedPermutations
(List<ResourceLocation> p_267282_, ResourceLocation p_266681_, Map<String, ResourceLocation> p_266741_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static IntUnaryOperator
createPaletteMapping
(int[] p_266839_, int[] p_266776_) static int[]
loadPaletteEntryFromImage
(ResourceManager p_267184_, ResourceLocation p_267059_) void
run
(ResourceManager p_267219_, SpriteSource.Output p_267250_) type()
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
CODEC
-
textures
-
permutations
-
paletteKey
-
-
Constructor Details
-
PalettedPermutations
private PalettedPermutations(List<ResourceLocation> p_267282_, ResourceLocation p_266681_, Map<String, ResourceLocation> p_266741_)
-
-
Method Details
-
run
- Specified by:
run
in interfaceSpriteSource
-
createPaletteMapping
-
loadPaletteEntryFromImage
public static int[] loadPaletteEntryFromImage(ResourceManager p_267184_, ResourceLocation p_267059_) -
type
- Specified by:
type
in interfaceSpriteSource
-