mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-22 04:52:18 +00:00
+added Solar Factory -removed unnessecary solar and essentia generator classes +started gtnh researches +added tooltip clearance on solars (maximal output) Signed-off-by: bartimaeusnek <[email protected]>
25 lines
808 B
Java
25 lines
808 B
Java
package emt.block;
|
|
|
|
import emt.EMT;
|
|
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(EMT.MOD_ID + ".block." + unlocName);
|
|
if (textureName != null) {
|
|
setBlockTextureName(EMT.TEXTURE_PATH + ":" + textureName);
|
|
}
|
|
setCreativeTab(EMT.TAB);
|
|
setStepSound(soundType);
|
|
setHardness(hardness);
|
|
}
|
|
|
|
public BlockBase(String unlocName, Material material, SoundType soundType, float hardness) {
|
|
this(unlocName, material, null, soundType, hardness);
|
|
}
|
|
} |