2020-09-09 16:49:01 +02:00
|
|
|
package de.ellpeck.actuallyadditions.common.blocks;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2020-09-08 00:46:45 +02:00
|
|
|
import net.minecraft.block.Block;
|
2016-03-18 23:47:22 +01:00
|
|
|
import net.minecraft.block.SoundType;
|
2015-06-28 03:12:32 +02:00
|
|
|
import net.minecraft.block.material.Material;
|
2020-09-08 00:46:45 +02:00
|
|
|
import net.minecraftforge.common.ToolType;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2020-09-08 00:46:45 +02:00
|
|
|
public class BlockGeneric extends Block {
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2020-09-08 00:46:45 +02:00
|
|
|
public BlockGeneric() {
|
|
|
|
this(Material.ROCK, SoundType.STONE, 1.5F, 10.0F, ToolType.PICKAXE, 0);
|
2016-05-18 19:34:57 +02:00
|
|
|
}
|
|
|
|
|
2020-09-08 00:46:45 +02:00
|
|
|
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));
|
2015-06-28 03:12:32 +02:00
|
|
|
}
|
|
|
|
}
|