2019-02-01 17:42:59 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
2019-02-02 14:23:16 +01:00
|
|
|
import de.ellpeck.naturesaura.api.render.IVisualizable;
|
2019-02-01 17:42:59 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityMossGenerator;
|
2019-02-02 14:23:16 +01:00
|
|
|
import net.minecraft.block.SoundType;
|
2019-02-01 17:42:59 +01:00
|
|
|
import net.minecraft.block.material.Material;
|
2019-02-02 14:23:16 +01:00
|
|
|
import net.minecraft.util.math.AxisAlignedBB;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
2019-02-01 17:42:59 +01:00
|
|
|
|
2019-02-02 14:23:16 +01:00
|
|
|
public class BlockMossGenerator extends BlockContainerImpl implements IVisualizable {
|
2019-02-01 17:42:59 +01:00
|
|
|
public BlockMossGenerator() {
|
|
|
|
super(Material.ROCK, "moss_generator", TileEntityMossGenerator.class, "moss_generator");
|
2019-02-02 14:23:16 +01:00
|
|
|
this.setSoundType(SoundType.STONE);
|
|
|
|
this.setHardness(2.5F);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) {
|
|
|
|
return new AxisAlignedBB(pos).grow(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public int getVisualizationColor(World world, BlockPos pos) {
|
|
|
|
return 0x15702d;
|
2019-02-01 17:42:59 +01:00
|
|
|
}
|
|
|
|
}
|