2018-11-04 16:38:09 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
2019-02-06 14:42:43 +01:00
|
|
|
import de.ellpeck.naturesaura.api.render.IVisualizable;
|
2018-11-04 16:38:09 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityFlowerGenerator;
|
|
|
|
import net.minecraft.block.SoundType;
|
|
|
|
import net.minecraft.block.material.Material;
|
2019-02-06 14:42:43 +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;
|
2018-11-04 16:38:09 +01:00
|
|
|
|
2019-02-06 14:42:43 +01:00
|
|
|
public class BlockFlowerGenerator extends BlockContainerImpl implements IVisualizable {
|
2018-11-20 19:59:18 +01:00
|
|
|
|
2018-11-04 16:38:09 +01:00
|
|
|
public BlockFlowerGenerator() {
|
|
|
|
super(Material.WOOD, "flower_generator", TileEntityFlowerGenerator.class, "flower_generator");
|
|
|
|
this.setSoundType(SoundType.WOOD);
|
|
|
|
this.setHardness(2F);
|
|
|
|
}
|
2019-02-06 14:42:43 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) {
|
|
|
|
return new AxisAlignedBB(pos).grow(3);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public int getVisualizationColor(World world, BlockPos pos) {
|
|
|
|
return 0xffed2b;
|
|
|
|
}
|
2018-11-04 16:38:09 +01:00
|
|
|
}
|