forked from TAIGA/TAIGA
Connected generic classes ore and ore_glow
This commit is contained in:
@@ -6,6 +6,17 @@ import net.minecraft.block.material.Material;
|
||||
public class BasicBlockOre extends Block {
|
||||
public String oreDictName;
|
||||
|
||||
public BasicBlockOre(String name, Material material, float hardness, float resistance, int harvest, String oreDictName, float lightlevel) {
|
||||
super(material);
|
||||
setUnlocalizedName(name);
|
||||
setRegistryName(name);
|
||||
setHardness(hardness);
|
||||
setResistance(resistance);
|
||||
setHarvestLevel("pickaxe", harvest);
|
||||
setLightLevel(lightlevel);
|
||||
this.oreDictName = oreDictName;
|
||||
}
|
||||
|
||||
public BasicBlockOre(String name, Material material, float hardness, float resistance, int harvest, String oreDictName) {
|
||||
super(material);
|
||||
setUnlocalizedName(name);
|
||||
@@ -16,6 +27,7 @@ public class BasicBlockOre extends Block {
|
||||
this.oreDictName = oreDictName;
|
||||
}
|
||||
|
||||
|
||||
public boolean isOreDict() {
|
||||
return this.oreDictName != null;
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
package com.sosnitzka.ztic_addon.generic;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
|
||||
public class BasicBlockOreGlow extends BasicBlockOre {
|
||||
|
||||
public BasicBlockOreGlow(String name, Material material, float hardness, float resistance, int harvest, float glow, String oreDictName) {
|
||||
super(name, material, hardness, resistance, harvest, oreDictName);
|
||||
setLightLevel(glow);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user