mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-10 09:10:24 +02:00
22 lines
738 B
Java
22 lines
738 B
Java
package de.ellpeck.actuallyadditions.common.blocks;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.SoundType;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraftforge.common.ToolType;
|
|
|
|
public class BlockGeneric extends Block {
|
|
|
|
public BlockGeneric() {
|
|
this(Material.ROCK, SoundType.STONE, 1.5F, 10.0F, ToolType.PICKAXE, 0);
|
|
}
|
|
|
|
public BlockGeneric(Material material, SoundType sound, float hardness, float resistance, ToolType harvestTool, int harvestLevel) {
|
|
super(Properties.create(material)
|
|
.hardnessAndResistance(hardness, resistance)
|
|
.harvestTool(harvestTool)
|
|
.harvestLevel(harvestLevel)
|
|
.sound(sound));
|
|
}
|
|
}
|