NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/BlockFireworkGenerator.java

32 lines
1.1 KiB
Java
Raw Normal View History

2019-02-24 17:44:53 +01:00
package de.ellpeck.naturesaura.blocks;
2019-02-25 12:28:41 +01:00
import de.ellpeck.naturesaura.api.render.IVisualizable;
2019-02-24 17:44:53 +01:00
import de.ellpeck.naturesaura.blocks.tiles.TileEntityFireworkGenerator;
2019-02-25 12:28:41 +01:00
import net.minecraft.block.SoundType;
2019-02-24 17:44:53 +01:00
import net.minecraft.block.material.Material;
2019-02-25 12:28:41 +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-24 17:44:53 +01:00
2019-02-25 12:28:41 +01:00
public class BlockFireworkGenerator extends BlockContainerImpl implements IVisualizable {
2019-02-24 17:44:53 +01:00
public BlockFireworkGenerator() {
super(Material.ROCK, "firework_generator", TileEntityFireworkGenerator.class, "firework_generator");
2019-02-25 12:28:41 +01:00
this.setSoundType(SoundType.STONE);
this.setHardness(3F);
}
@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) {
return new AxisAlignedBB(pos).grow(4);
}
@Override
@SideOnly(Side.CLIENT)
public int getVisualizationColor(World world, BlockPos pos) {
return 0xa442f4;
2019-02-24 17:44:53 +01:00
}
}