ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGeneric.java

22 lines
735 B
Java
Raw Normal View History

2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.blocks;
2015-06-28 03:12:32 +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;
import net.minecraftforge.common.ToolType;
2015-06-28 03:12:32 +02:00
public class BlockGeneric extends Block {
2015-06-28 03:12:32 +02:00
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));
2015-06-28 03:12:32 +02:00
}
}