aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/material
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2017-12-28 22:48:48 +1000
committerJordan Byrne <draknyte1@hotmail.com>2017-12-28 22:48:48 +1000
commitc197931b71219eb49c2ef637568e775a3a124ec0 (patch)
treefd24c5e52980d2f7fef36f089d7c517a58d0bc1e /src/Java/gtPlusPlus/core/material
parent38bb9a07d82a0161107084436b7390f877bfd353 (diff)
downloadGT5-Unofficial-c197931b71219eb49c2ef637568e775a3a124ec0.tar.gz
GT5-Unofficial-c197931b71219eb49c2ef637568e775a3a124ec0.tar.bz2
GT5-Unofficial-c197931b71219eb49c2ef637568e775a3a124ec0.zip
+ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/material')
-rw-r--r--src/Java/gtPlusPlus/core/material/Material.java32
1 files changed, 29 insertions, 3 deletions
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){