MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / CustomColors

Class CustomColors

src/main/java/net/optifine/CustomColors.java:54–1794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52import org.apache.commons.lang3.tuple.Pair;
53
54public class CustomColors
55{
56 private static String paletteFormatDefault = "vanilla";
57 private static CustomColormap waterColors = null;
58 private static CustomColormap foliagePineColors = null;
59 private static CustomColormap foliageBirchColors = null;
60 private static CustomColormap swampFoliageColors = null;
61 private static CustomColormap swampGrassColors = null;
62 private static CustomColormap[] colorsBlockColormaps = null;
63 private static CustomColormap[][] blockColormaps = (CustomColormap[][])null;
64 private static CustomColormap skyColors = null;
65 private static CustomColorFader skyColorFader = new CustomColorFader();
66 private static CustomColormap fogColors = null;
67 private static CustomColorFader fogColorFader = new CustomColorFader();
68 private static CustomColormap underwaterColors = null;
69 private static CustomColorFader underwaterColorFader = new CustomColorFader();
70 private static CustomColormap underlavaColors = null;
71 private static CustomColorFader underlavaColorFader = new CustomColorFader();
72 private static LightMapPack[] lightMapPacks = null;
73 private static int lightmapMinDimensionId = 0;
74 private static CustomColormap redstoneColors = null;
75 private static CustomColormap xpOrbColors = null;
76 private static int xpOrbTime = -1;
77 private static CustomColormap durabilityColors = null;
78 private static CustomColormap stemColors = null;
79 private static CustomColormap stemMelonColors = null;
80 private static CustomColormap stemPumpkinColors = null;
81 private static CustomColormap myceliumParticleColors = null;
82 private static boolean useDefaultGrassFoliageColors = true;
83 private static int particleWaterColor = -1;
84 private static int particlePortalColor = -1;
85 private static int lilyPadColor = -1;
86 private static int expBarTextColor = -1;
87 private static int bossTextColor = -1;
88 private static int signTextColor = -1;
89 private static Vec3 fogColorNether = null;
90 private static Vec3 fogColorEnd = null;
91 private static Vec3 skyColorEnd = null;
92 private static int[] spawnEggPrimaryColors = null;
93 private static int[] spawnEggSecondaryColors = null;
94 private static float[][] wolfCollarColors = (float[][])null;
95 private static float[][] sheepColors = (float[][])null;
96 private static int[] textColors = null;
97 private static int[] mapColorsOriginal = null;
98 private static int[] potionColors = null;
99 private static final IBlockState BLOCK_STATE_DIRT = Blocks.dirt.getDefaultState();
100 private static final IBlockState BLOCK_STATE_WATER = Blocks.water.getDefaultState();
101 public static Random random = new Random();
102 private static final CustomColors.IColorizer COLORIZER_GRASS = new CustomColors.IColorizer()
103 {
104 public int getColor(IBlockState blockState, IBlockAccess blockAccess, BlockPos blockPos)
105 {
106 BiomeGenBase biomegenbase = CustomColors.getColorBiome(blockAccess, blockPos);
107 return CustomColors.swampGrassColors != null && biomegenbase == BiomeGenBase.swampland ? CustomColors.swampGrassColors.getColor(biomegenbase, blockPos) : biomegenbase.getGrassColorAtPos(blockPos);
108 }
109 public boolean isColorConstant()
110 {
111 return false;

Callers

nothing calls this directly

Calls 1

getDefaultStateMethod · 0.80

Tested by

no test coverage detected