aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/item
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-08-24 18:47:40 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-08-24 18:47:40 +1000
commit9532786295e39c639ae40fcdaa90e5b9faf1a73f (patch)
tree749497fd09aab181b17687737ebcc2a3717202ad /src/Java/gtPlusPlus/core/item
parent7573ee56c6d8ee08319ef17ca28b46efcc5c6ed1 (diff)
parent4928538ba331e835cbe640c36d1324f375282629 (diff)
downloadGT5-Unofficial-9532786295e39c639ae40fcdaa90e5b9faf1a73f.tar.gz
GT5-Unofficial-9532786295e39c639ae40fcdaa90e5b9faf1a73f.tar.bz2
GT5-Unofficial-9532786295e39c639ae40fcdaa90e5b9faf1a73f.zip
Merge branch 'master' of https://github.com/draknyte1/GTplusplus
Diffstat (limited to 'src/Java/gtPlusPlus/core/item')
-rw-r--r--src/Java/gtPlusPlus/core/item/ModItems.java15
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BaseItemBrain.java4
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java2
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BaseItemWithCharge.java1
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BasicSpawnEgg.java1
-rw-r--r--src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java2
-rw-r--r--src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java8
-rw-r--r--src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemCentidust.java1
-rw-r--r--src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemDecidust.java1
-rw-r--r--src/Java/gtPlusPlus/core/item/base/foods/BaseItemHotFood.java1
-rw-r--r--src/Java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java2
-rw-r--r--src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java2
-rw-r--r--src/Java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java2
13 files changed, 23 insertions, 19 deletions
diff --git a/src/Java/gtPlusPlus/core/item/ModItems.java b/src/Java/gtPlusPlus/core/item/ModItems.java
index ec32b0bb9f..30d85628b9 100644
--- a/src/Java/gtPlusPlus/core/item/ModItems.java
+++ b/src/Java/gtPlusPlus/core/item/ModItems.java
@@ -316,9 +316,6 @@ public final class ModItems {
MaterialGenerator.generateNuclearMaterial(ELEMENT.getInstance().CALIFORNIUM, false);
MaterialGenerator.generateNuclearMaterial(ELEMENT.getInstance().EINSTEINIUM, false);
MaterialGenerator.generateNuclearMaterial(ELEMENT.getInstance().FERMIUM, false);
-
-
-
//Nuclear Isotopes
@@ -354,6 +351,13 @@ public final class ModItems {
MaterialGenerator.generate(ALLOY.TANTALUM_CARBIDE);
MaterialGenerator.generate(ALLOY.NIOBIUM_CARBIDE);
+ //LFTR Fuel components
+ MaterialGenerator.generate(FLUORIDES.HYDROXIDE); //LFTR fuel component
+ MaterialGenerator.generate(FLUORIDES.AMMONIA); //LFTR fuel component
+ MaterialGenerator.generate(FLUORIDES.AMMONIUM); //LFTR fuel component
+ MaterialGenerator.generate(FLUORIDES.AMMONIUM_BIFLUORIDE); //LFTR fuel component
+ MaterialGenerator.generate(FLUORIDES.BERYLLIUM_HYDROXIDE); //LFTR fuel component
+ MaterialGenerator.generate(FLUORIDES.AMMONIUM_TETRAFLUOROBERYLLATE); //LFTR fuel component
//Generate Fluorides
MaterialGenerator.generateNuclearMaterial(FLUORIDES.FLUORITE);
@@ -368,7 +372,7 @@ public final class ModItems {
MaterialGenerator.generateNuclearMaterial(FLUORIDES.NEPTUNIUM_HEXAFLUORIDE);
MaterialGenerator.generateNuclearMaterial(FLUORIDES.TECHNETIUM_HEXAFLUORIDE);
MaterialGenerator.generateNuclearMaterial(FLUORIDES.SELENIUM_HEXAFLUORIDE);
-
+
//Generate Reactor Fuel Salts
MaterialGenerator.generateNuclearMaterial(NUCLIDE.LiFBeF2ZrF4U235);
MaterialGenerator.generateNuclearMaterial(NUCLIDE.LiFBeF2ZrF4UF4);
@@ -583,6 +587,7 @@ public final class ModItems {
CoalTar.run();
//Misc Items
+ @SuppressWarnings("unused")
Item tI;
tI = new BaseItemMisc("Chilly", new short[]{0,64,196}, 32, MiscTypes.POTION, new String[]{"It's Blue"});
tI = new BaseItemMisc("4000DC's", new short[]{180,100,30}, 1, MiscTypes.BIGKEY, new String[]{"It opens things."});
@@ -700,7 +705,7 @@ public final class ModItems {
RfEuBattery = new RF2EU_Battery();
//Baubles Mod Test
- try {final Class baublesTest = Class.forName("baubles.api.IBauble");
+ try {final Class<?> baublesTest = Class.forName("baubles.api.IBauble");
if (baublesTest != null){
COMPAT_Baubles.run();
}
diff --git a/src/Java/gtPlusPlus/core/item/base/BaseItemBrain.java b/src/Java/gtPlusPlus/core/item/base/BaseItemBrain.java
index 2521671223..815f3c49c0 100644
--- a/src/Java/gtPlusPlus/core/item/base/BaseItemBrain.java
+++ b/src/Java/gtPlusPlus/core/item/base/BaseItemBrain.java
@@ -56,7 +56,7 @@ public class BaseItemBrain extends Item{
// This is a fun method which allows us to run some code when our item is
// shown in a creative tab. I am going to use it to add all the brain
// types.
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(final Item item, final CreativeTabs tab, final List itemList)
@@ -84,7 +84,7 @@ public class BaseItemBrain extends Item{
}
// This code will allow us to tell the items apart in game. You can change
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({ "rawtypes", "unchecked" })
// texture based on nbt data, but I won't be covering that.
@Override
@SideOnly(Side.CLIENT)
diff --git a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
index 35f1942040..26860ebad3 100644
--- a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
+++ b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
@@ -189,7 +189,7 @@ public class BaseItemComponent extends Item{
if (this.componentMaterial != null){
if (entityHolding instanceof EntityPlayer){
if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode){
- EntityUtils.applyRadiationDamageToEntity(this.componentMaterial.vRadiationLevel, world, entityHolding);
+ EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.componentMaterial.vRadiationLevel, world, entityHolding);
}
}
}
diff --git a/src/Java/gtPlusPlus/core/item/base/BaseItemWithCharge.java b/src/Java/gtPlusPlus/core/item/base/BaseItemWithCharge.java
index 38c0ee567f..33d7602b4e 100644
--- a/src/Java/gtPlusPlus/core/item/base/BaseItemWithCharge.java
+++ b/src/Java/gtPlusPlus/core/item/base/BaseItemWithCharge.java
@@ -26,6 +26,7 @@ public class BaseItemWithCharge extends Item{
this.int_Max_Charge = constructor_Max_Charge;
}
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
int NBT_Charge = this.int_Charge;
diff --git a/src/Java/gtPlusPlus/core/item/base/BasicSpawnEgg.java b/src/Java/gtPlusPlus/core/item/base/BasicSpawnEgg.java
index f856185cdb..4bff33493e 100644
--- a/src/Java/gtPlusPlus/core/item/base/BasicSpawnEgg.java
+++ b/src/Java/gtPlusPlus/core/item/base/BasicSpawnEgg.java
@@ -185,6 +185,7 @@ public class BasicSpawnEgg extends ItemMonsterPlacer
/**
* returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
*/
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(final Item parItem, final CreativeTabs parTab, final List parList){
diff --git a/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java b/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java
index adc9f8a62a..d22e606e78 100644
--- a/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java
+++ b/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java
@@ -112,7 +112,7 @@ public class BaseItemDust extends Item{
protected final int sRadiation;
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_, final boolean p_77663_5_) {
- EntityUtils.applyRadiationDamageToEntity(this.sRadiation, world, entityHolding);
+ EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.sRadiation, world, entityHolding);
}
@SuppressWarnings({ "unchecked", "rawtypes" })
diff --git a/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java b/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java
index 5eae18f2b1..4771e15258 100644
--- a/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java
+++ b/src/Java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java
@@ -9,14 +9,11 @@ import gregtech.api.util.GT_OreDictUnificator;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.StringUtils;
import gtPlusPlus.core.util.Utils;
-import gtPlusPlus.core.util.entity.EntityUtils;
import gtPlusPlus.core.util.item.ItemUtils;
import gtPlusPlus.core.util.math.MathUtils;
-import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
public class BaseItemDustUnique extends Item{
@@ -97,11 +94,8 @@ public class BaseItemDustUnique extends Item{
}
protected final int sRadiation;
- @Override
- public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_, final boolean p_77663_5_) {
- EntityUtils.applyRadiationDamageToEntity(this.sRadiation, world, entityHolding);
- }
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
if (this.sRadiation > 0){
diff --git a/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemCentidust.java b/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemCentidust.java
index 981e78a563..aff5431e9d 100644
--- a/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemCentidust.java
+++ b/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemCentidust.java
@@ -35,6 +35,7 @@ public class BaseItemCentidust extends Item{
return (this.materialName+ " Centidust");
}
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
if ((this.materialName != null) && (this.materialName != "") && !this.materialName.equals("")){
diff --git a/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemDecidust.java b/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemDecidust.java
index 1db3520136..ce68c36d96 100644
--- a/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemDecidust.java
+++ b/src/Java/gtPlusPlus/core/item/base/dusts/decimal/BaseItemDecidust.java
@@ -35,6 +35,7 @@ public class BaseItemDecidust extends Item{
return (this.materialName+ " Decidust");
}
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
if ((this.materialName != null) && (this.materialName != "") && !this.materialName.equals("")){
diff --git a/src/Java/gtPlusPlus/core/item/base/foods/BaseItemHotFood.java b/src/Java/gtPlusPlus/core/item/base/foods/BaseItemHotFood.java
index 69be546843..0467d2647e 100644
--- a/src/Java/gtPlusPlus/core/item/base/foods/BaseItemHotFood.java
+++ b/src/Java/gtPlusPlus/core/item/base/foods/BaseItemHotFood.java
@@ -56,6 +56,7 @@ public class BaseItemHotFood extends BaseItemFood{
super.onUpdate(iStack, world, entityHolding, p_77663_4_, p_77663_5_);
}
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
if ((this.materialName != null) && (this.materialName != "") && !this.materialName.equals("")){
diff --git a/src/Java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java b/src/Java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java
index 5d14660190..ca887937df 100644
--- a/src/Java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java
+++ b/src/Java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java
@@ -95,6 +95,6 @@ public class BaseItemIngot_OLD extends Item{
protected final int sRadiation;
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_, final boolean p_77663_5_) {
- EntityUtils.applyRadiationDamageToEntity(this.sRadiation, world, entityHolding);
+ EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.sRadiation, world, entityHolding);
}
}
diff --git a/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java b/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java
index d7de10141f..b3478d33fe 100644
--- a/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java
+++ b/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java
@@ -63,7 +63,7 @@ public class ItemBlockGtBlock extends ItemBlock{
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_, final boolean p_77663_5_) {
- EntityUtils.applyRadiationDamageToEntity(this.sRadiation, world, entityHolding);
+ EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.sRadiation, world, entityHolding);
}
}
diff --git a/src/Java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java b/src/Java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java
index 0300a63848..326ecc7385 100644
--- a/src/Java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java
+++ b/src/Java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java
@@ -63,6 +63,6 @@ public class BaseItemPlate_OLD extends Item{
protected final int sRadiation;
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_, final boolean p_77663_5_) {
- EntityUtils.applyRadiationDamageToEntity(this.sRadiation, world, entityHolding);
+ EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.sRadiation, world, entityHolding);
}
}