changed the map color of ancient and gold leaves

Fixes #14
This commit is contained in:
Ellpeck 2018-11-28 11:40:36 +01:00
parent 7ea9fa1416
commit d2e5efb6a9
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import de.ellpeck.naturesaura.reg.*;
import net.minecraft.block.BlockLeaves;
import net.minecraft.block.BlockPlanks;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.color.IBlockColor;
@ -38,6 +39,11 @@ public class BlockAncientLeaves extends BlockLeaves implements
ModRegistry.addItemOrBlock(this);
}
@Override
public MapColor getMapColor(IBlockState state, IBlockAccess worldIn, BlockPos pos) {
return MapColor.PINK;
}
@Override
public String getBaseName() {
return "ancient_leaves";

View file

@ -6,6 +6,7 @@ import de.ellpeck.naturesaura.items.ModItems;
import de.ellpeck.naturesaura.reg.*;
import net.minecraft.block.BlockLeaves;
import net.minecraft.block.BlockPlanks;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
@ -38,6 +39,11 @@ public class BlockGoldenLeaves extends BlockLeaves implements
ModRegistry.addItemOrBlock(this);
}
@Override
public MapColor getMapColor(IBlockState state, IBlockAccess worldIn, BlockPos pos) {
return MapColor.GOLD;
}
@Override
public String getBaseName() {
return "golden_leaves";