mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-18 19:29:29 +00:00
Cleanup and some changes...
This commit is contained in:
1 parent
a39ac3bd74
commit
7b6ec78cd7
125 files changed
+971
-955
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user