From c197931b71219eb49c2ef637568e775a3a124ec0 Mon Sep 17 00:00:00 2001 From: Jordan Byrne Date: Thu, 28 Dec 2017 22:48:48 +1000 Subject: + Added 3 new batteries. $ Fixed Circuits so that each one has a valid replacement type. $ Fixed a bug some materials had invalid radiation levels. $ Fixed crushed ore item type textures. + Added recipes for all crushed ore items. + Added processing recipes for all crushed ore items. --- src/Java/gtPlusPlus/core/material/Material.java | 32 ++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'src/Java/gtPlusPlus/core/material') diff --git a/src/Java/gtPlusPlus/core/material/Material.java b/src/Java/gtPlusPlus/core/material/Material.java index 1ebd335031..796d48b967 100644 --- a/src/Java/gtPlusPlus/core/material/Material.java +++ b/src/Java/gtPlusPlus/core/material/Material.java @@ -68,7 +68,7 @@ public class Material { this (materialName, defaultState, 0, rgba, -1, -1, -1, -1, false, "", radiationLevel, false, materialStacks); } - public Material(String materialName, MaterialState defaultState, short[] rgba, int radiationLevel, int j, int k, int l, int m, MaterialStack[] materialStacks){ + public Material(String materialName, MaterialState defaultState, short[] rgba, int j, int k, int l, int m, int radiationLevel, MaterialStack[] materialStacks){ this (materialName, defaultState, 0, rgba, j, k, l, m, false, "", radiationLevel, false, materialStacks); } @@ -219,13 +219,15 @@ public class Material { } //Sets the Rad level - if (radiationLevel != 0){ + if (radiationLevel > 0){ + Logger.MATERIALS(this.getLocalizedName()+" is radioactive. Level: "+radiationLevel+"."); this.isRadioactive = true; this.vRadiationLevel = (byte) radiationLevel; } else { + Logger.MATERIALS(this.getLocalizedName()+" is not radioactive."); this.isRadioactive = false; - this.vRadiationLevel = (byte) radiationLevel; + this.vRadiationLevel = 0; } //Sets the materials 'tier'. Will probably replace this logic. @@ -457,6 +459,30 @@ public class Material { public final ItemStack getNugget(final int stacksize){ return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("nugget"+this.unlocalizedName, stacksize); } + + /** + * Ore Components + * @return + */ + + public final ItemStack getOre(final int stacksize){ + return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("block"+this.unlocalizedName+"Ore", stacksize); + } + public final ItemStack getCrushed(final int stacksize){ + return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("crushed"+this.unlocalizedName, stacksize); + } + public final ItemStack getCrushedPurified(final int stacksize){ + return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("crushedPurified"+this.unlocalizedName, stacksize); + } + public final ItemStack getCrushedCentrifuged(final int stacksize){ + return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("crushedCentrifuged"+this.unlocalizedName, stacksize); + } + public final ItemStack getDustPurified(final int stacksize){ + return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustPure"+this.unlocalizedName, stacksize); + } + public final ItemStack getDustImpure(final int stacksize){ + return ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustImpure"+this.unlocalizedName, stacksize); + } final public ItemStack[] getMaterialComposites(){ if (this.vMaterialInput != null){ -- cgit