Cleanup and some changes...

This commit is contained in:
fewizz committed 2016-03-16 17:49:28 +03:00
1 parent a39ac3bd74
commit 7b6ec78cd7
125 files changed
+971 -955

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
package emt.block;
import emt.ElectroMagicTools;
import emt.ModInformation;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public abstract class BlockBase extends Block {
public final String name;
public BlockBase(String unlocName, Material material, String textureName, SoundType soundType, float hardness) {
super(material);
name = unlocName;
setBlockName(ModInformation.modid + ".block." + unlocName);
if (textureName != null) {
setBlockTextureName(ModInformation.texturePath + ":" + textureName);
}
setCreativeTab(ElectroMagicTools.tabEMT);
setStepSound(soundType);
setHardness(hardness);
}
public BlockBase(String unlocName, Material material, SoundType soundType, float hardness) {
this(unlocName, material, null, soundType, hardness);
}
}