mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-07 21:53:36 +02:00
32 lines
1.1 KiB
Java
32 lines
1.1 KiB
Java
package de.ellpeck.naturesaura.blocks;
|
|
|
|
import de.ellpeck.naturesaura.api.render.IVisualizable;
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityFireworkGenerator;
|
|
import net.minecraft.block.SoundType;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.util.math.AxisAlignedBB;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
|
|
public class BlockFireworkGenerator extends BlockContainerImpl implements IVisualizable {
|
|
public BlockFireworkGenerator() {
|
|
super(Material.ROCK, "firework_generator", TileEntityFireworkGenerator.class, "firework_generator");
|
|
this.setSoundType(SoundType.STONE);
|
|
this.setHardness(3F);
|
|
}
|
|
|
|
@Override
|
|
@OnlyIn(Dist.CLIENT)
|
|
public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) {
|
|
return new AxisAlignedBB(pos).grow(4);
|
|
}
|
|
|
|
@Override
|
|
@OnlyIn(Dist.CLIENT)
|
|
public int getVisualizationColor(World world, BlockPos pos) {
|
|
return 0xa442f4;
|
|
}
|
|
}
|