forked from TAIGA/TAIGA
Added several blocks, basicBlockOre renamed to basicBlock
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.sosnitzka.ztic_addon.generic;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
|
||||
public class BasicBlock extends Block {
|
||||
private String oreDictPrefix;
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest, float lightLevel, String oreDictPrefix) {
|
||||
super(material);
|
||||
setUnlocalizedName(name);
|
||||
setRegistryName(name);
|
||||
setHardness(hardness);
|
||||
setResistance(resistance);
|
||||
setHarvestLevel("pickaxe", harvest);
|
||||
setLightLevel(lightLevel);
|
||||
this.oreDictPrefix = oreDictPrefix;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest) {
|
||||
this(name, material, hardness, resistance, harvest, 0.0F, null);
|
||||
}
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest, float lightLevel) {
|
||||
this(name, material, hardness, resistance, harvest, lightLevel, null);
|
||||
}
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest, String oreDictPrefix) {
|
||||
this(name, material, hardness, resistance, harvest, 0.0F, oreDictPrefix);
|
||||
}
|
||||
|
||||
public boolean isOreDict() {
|
||||
return this.oreDictPrefix != null;
|
||||
}
|
||||
|
||||
public String getOreDictPrefix() {
|
||||
return this.oreDictPrefix;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user