Connected generic classes ore and ore_glow

This commit is contained in:
Robert Sosnitzka
2016-05-13 16:35:55 +02:00
parent 67f9682703
commit a5a0805f32
86 changed files with 33 additions and 33 deletions

View File

@@ -4,7 +4,6 @@ import com.sosnitzka.ztic_addon.blocks.BlockLigniteOre;
import com.sosnitzka.ztic_addon.blocks.BlockTiberiumOre;
import com.sosnitzka.ztic_addon.generic.BasicBlockGround;
import com.sosnitzka.ztic_addon.generic.BasicBlockOre;
import com.sosnitzka.ztic_addon.generic.BasicBlockOreGlow;
import com.sosnitzka.ztic_addon.util.Utils;
import net.minecraft.block.Block;
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 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 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 slaggoldOre = new BasicBlockOre("slaggold_ore", Material.ROCK, 3.0f, 5.0f, 1, null);
public static Block tiberiumOre = new BlockTiberiumOre();

View File

@@ -1,7 +1,7 @@
package com.sosnitzka.ztic_addon.blocks;
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.state.IBlockState;
import net.minecraft.item.Item;
@@ -12,10 +12,10 @@ import net.minecraft.world.World;
import java.util.Random;
public class BlockTiberiumOre extends BasicBlockOreGlow {
public class BlockTiberiumOre extends BasicBlockOre {
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

View File

@@ -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;
}

View File

@@ -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);
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/aardium_ingot"
"layer0": "ztic_addon:items/tic/aardium_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/adamantite_ingot"
"layer0": "ztic_addon:items/tic/adamantite_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/arcanite_ingot"
"layer0": "ztic_addon:items/tic/arcanite_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/astrium_ingot"
"layer0": "ztic_addon:items/tic/astrium_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/axiidian_ingot"
"layer0": "ztic_addon:items/tic/axiidian_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/bismuth_ingot"
"layer0": "ztic_addon:items/tic/bismuth_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/eternite_ingot"
"layer0": "ztic_addon:items/tic/eternite_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/ignitite_ingot"
"layer0": "ztic_addon:items/tic/ignitite_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/karmesine_ingot"
"layer0": "ztic_addon:items/tic/karmesine_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/meteorite_ingot"
"layer0": "ztic_addon:items/tic/meteorite_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/mindorite_ingot"
"layer0": "ztic_addon:items/tic/mindorite_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/mythril_ingot"
"layer0": "ztic_addon:items/tic/mythril_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/palladium_ingot"
"layer0": "ztic_addon:items/tic/palladium_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/prometheum_ingot"
"layer0": "ztic_addon:items/tic/prometheum_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/tiberium_ingot"
"layer0": "ztic_addon:items/tic/tiberium_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/vibranium_ingot"
"layer0": "ztic_addon:items/tic/vibranium_ingot"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ztic_addon:items/ingots/yrdean_ingot"
"layer0": "ztic_addon:items/tic/yrdean_ingot"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB