Connected generic classes ore and ore_glow
@@ -4,7 +4,6 @@ import com.sosnitzka.ztic_addon.blocks.BlockLigniteOre;
|
|||||||
import com.sosnitzka.ztic_addon.blocks.BlockTiberiumOre;
|
import com.sosnitzka.ztic_addon.blocks.BlockTiberiumOre;
|
||||||
import com.sosnitzka.ztic_addon.generic.BasicBlockGround;
|
import com.sosnitzka.ztic_addon.generic.BasicBlockGround;
|
||||||
import com.sosnitzka.ztic_addon.generic.BasicBlockOre;
|
import com.sosnitzka.ztic_addon.generic.BasicBlockOre;
|
||||||
import com.sosnitzka.ztic_addon.generic.BasicBlockOreGlow;
|
|
||||||
import com.sosnitzka.ztic_addon.util.Utils;
|
import com.sosnitzka.ztic_addon.util.Utils;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
@@ -29,7 +28,7 @@ public class Blocks {
|
|||||||
public static Block mindoriteOre = new BasicBlockOre("mindorite_ore", Material.ROCK, 12.0f, 12.0f, 2, "oreMindorite");
|
public static Block mindoriteOre = new BasicBlockOre("mindorite_ore", Material.ROCK, 12.0f, 12.0f, 2, "oreMindorite");
|
||||||
public static Block mythrilOre = new BasicBlockOre("mythril_ore", Material.ROCK, 25.0f, 25.0f, 4, "oreMythril");
|
public static Block mythrilOre = new BasicBlockOre("mythril_ore", Material.ROCK, 25.0f, 25.0f, 4, "oreMythril");
|
||||||
public static Block palladiumOre = new BasicBlockOre("palladium_ore", Material.ROCK, 25.0f, 25.0f, 3, "orePalladium");
|
public static Block palladiumOre = new BasicBlockOre("palladium_ore", Material.ROCK, 25.0f, 25.0f, 3, "orePalladium");
|
||||||
public static Block prometheumOre = new BasicBlockOreGlow("prometheum_ore", Material.ROCK, 35.0f, 35.0f, 4, 0.25f, null);
|
public static Block prometheumOre = new BasicBlockOre("prometheum_ore", Material.ROCK, 35.0f, 35.0f, 4, "orePrometheum", 0.8F);
|
||||||
public static Block slagironOre = new BasicBlockOre("slagiron_ore", Material.ROCK, 3.0f, 5.0f, 1, "orePrometheum");
|
public static Block slagironOre = new BasicBlockOre("slagiron_ore", Material.ROCK, 3.0f, 5.0f, 1, "orePrometheum");
|
||||||
public static Block slaggoldOre = new BasicBlockOre("slaggold_ore", Material.ROCK, 3.0f, 5.0f, 1, null);
|
public static Block slaggoldOre = new BasicBlockOre("slaggold_ore", Material.ROCK, 3.0f, 5.0f, 1, null);
|
||||||
public static Block tiberiumOre = new BlockTiberiumOre();
|
public static Block tiberiumOre = new BlockTiberiumOre();
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
package com.sosnitzka.ztic_addon.blocks;
|
package com.sosnitzka.ztic_addon.blocks;
|
||||||
|
|
||||||
import com.sosnitzka.ztic_addon.Items;
|
import com.sosnitzka.ztic_addon.Items;
|
||||||
import com.sosnitzka.ztic_addon.generic.BasicBlockOreGlow;
|
import com.sosnitzka.ztic_addon.generic.BasicBlockOre;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
@@ -12,10 +12,10 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class BlockTiberiumOre extends BasicBlockOreGlow {
|
public class BlockTiberiumOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockTiberiumOre() {
|
public BlockTiberiumOre() {
|
||||||
super("tiberium_ore", Material.ROCK, 30.0f, 30.0f, 3, 0.8f, "oreTiberium");
|
super("tiberium_ore", Material.ROCK, 30.0f, 30.0f, 3, "oreTiberium", 1.0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -6,6 +6,17 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BasicBlockOre extends Block {
|
public class BasicBlockOre extends Block {
|
||||||
public String oreDictName;
|
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) {
|
public BasicBlockOre(String name, Material material, float hardness, float resistance, int harvest, String oreDictName) {
|
||||||
super(material);
|
super(material);
|
||||||
setUnlocalizedName(name);
|
setUnlocalizedName(name);
|
||||||
@@ -16,6 +27,7 @@ public class BasicBlockOre extends Block {
|
|||||||
this.oreDictName = oreDictName;
|
this.oreDictName = oreDictName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public boolean isOreDict() {
|
public boolean isOreDict() {
|
||||||
return this.oreDictName != null;
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/aardium_ingot"
|
"layer0": "ztic_addon:items/tic/aardium_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/adamantite_ingot"
|
"layer0": "ztic_addon:items/tic/adamantite_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/arcanite_ingot"
|
"layer0": "ztic_addon:items/tic/arcanite_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/astrium_ingot"
|
"layer0": "ztic_addon:items/tic/astrium_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/axiidian_ingot"
|
"layer0": "ztic_addon:items/tic/axiidian_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/bismuth_ingot"
|
"layer0": "ztic_addon:items/tic/bismuth_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/eternite_ingot"
|
"layer0": "ztic_addon:items/tic/eternite_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/ignitite_ingot"
|
"layer0": "ztic_addon:items/tic/ignitite_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/karmesine_ingot"
|
"layer0": "ztic_addon:items/tic/karmesine_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/meteorite_ingot"
|
"layer0": "ztic_addon:items/tic/meteorite_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/mindorite_ingot"
|
"layer0": "ztic_addon:items/tic/mindorite_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/mythril_ingot"
|
"layer0": "ztic_addon:items/tic/mythril_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/palladium_ingot"
|
"layer0": "ztic_addon:items/tic/palladium_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/prometheum_ingot"
|
"layer0": "ztic_addon:items/tic/prometheum_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/tiberium_ingot"
|
"layer0": "ztic_addon:items/tic/tiberium_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/vibranium_ingot"
|
"layer0": "ztic_addon:items/tic/vibranium_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "ztic_addon:items/ingots/yrdean_ingot"
|
"layer0": "ztic_addon:items/tic/yrdean_ingot"
|
||||||
}
|
}
|
||||||
}
|
}
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |