net.minecraft.world.biome.BiomeColorHelper Java Examples
The following examples show how to use
net.minecraft.world.biome.BiomeColorHelper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TileInfestedLeaves.java From ExNihiloAdscensio with MIT License | 5 votes |
@SideOnly(Side.CLIENT) public int getColor() { if (world == null || pos == null) { return Util.whiteColor.toInt(); } else { Color green = new Color(BiomeColorHelper.getFoliageColorAtPos(world, pos)); return Color.average(green, Util.whiteColor, (float) Math.pow(progress, 2)).toInt(); } }
Example #2
Source File: ClientProxy.java From customstuff4 with GNU General Public License v3.0 | 4 votes |
@Override public BlockTint getFoliageTint() { return BiomeColorHelper::getFoliageColorAtPos; }
Example #3
Source File: ClientProxy.java From customstuff4 with GNU General Public License v3.0 | 4 votes |
@Override public BlockTint getGrassTint() { return BiomeColorHelper::getGrassColorAtPos; }
Example #4
Source File: ClientProxy.java From customstuff4 with GNU General Public License v3.0 | 4 votes |
@Override public BlockTint getWaterTint() { return BiomeColorHelper::getWaterColorAtPos; }
Example #5
Source File: BlockWisdomLeaves.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Nullable @Override public Function4<IBlockState, IBlockAccess, BlockPos, Integer, Integer> getBlockColorFunction() { return (iBlockState, iBlockAccess, blockPos, integer) -> iBlockAccess != null && blockPos != null ? BiomeColorHelper.getFoliageColorAtPos(iBlockAccess, blockPos) : ColorizerFoliage.getFoliageColorBasic(); }