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