private Color getMaterialColor( Material material, ChunkSnapshot chunkSnapshot, int x, int y, int z) { MaterialColor materialColor = colorPalette.getMaterialColor(material); if (materialColor != null) { Color color = materialColor.getColor( chunkSnapshot.getBlockData(x, y, z), x + (chunkSnapshot.getX() * 16), z + (chunkSnapshot.getZ() * 16), chunkSnapshot.getRawBiomeRainfall(x, z), chunkSnapshot.getRawBiomeTemperature(x, z), chunkSnapshot.getBiome(x, z)); if (color != null) { if (material.equals(Material.STATIONARY_WATER) && isUnderWater(chunkSnapshot, x, y, z)) { color = setAlpha(color, 32); } return color; } } // RealtimeRender.getLogger().warning(String.format("RealtimeRender: missing color for material // '%s'!", material.toString())); return new Color(0xFF00FF); }
public final double getRawBiomeTemperature(int x, int z) { return chunk.getRawBiomeTemperature(x, z); }
public final double getRawBiomeTemperature() { return snap.getRawBiomeTemperature(bx, bz); }