parent
c1f51414c5
commit
aeb50268c7
1 changed files with 5 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
||||||
package gregtech.api.items;
|
package gregtech.api.items;
|
||||||
|
|
||||||
import ic2.core.util.StackUtil;
|
import ic2.core.util.StackUtil;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
|
||||||
|
@ -39,12 +38,9 @@ public class GT_RadioactiveCell_Item
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static int triangularNumber(int x)
|
protected static int triangularNumber(int x)
|
||||||
|
{
|
||||||
{
|
return (x * x + x) / 2;
|
||||||
return (x * x + x) / 2;
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean outputPulseForStack(ItemStack aStack) {
|
protected boolean outputPulseForStack(ItemStack aStack) {
|
||||||
NBTTagCompound tNBT = aStack.getTagCompound();
|
NBTTagCompound tNBT = aStack.getTagCompound();
|
||||||
if (tNBT == null) {
|
if (tNBT == null) {
|
||||||
|
@ -137,8 +133,8 @@ public class GT_RadioactiveCell_Item
|
||||||
setDamageForStack(stack, getDamageOfStack(stack) + Dmg);
|
setDamageForStack(stack, getDamageOfStack(stack) + Dmg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) {
|
public void addAdditionalToolTips(List aList, ItemStack aStack) {
|
||||||
super.addAdditionalToolTips(aList, aStack, aPlayer);
|
super.addAdditionalToolTips(aList, aStack);
|
||||||
//aList.add("Time left: " + (this.maxDelay - getDurabilityOfStack(aStack)) + " secs");
|
//aList.add("Time left: " + (this.maxDelay - getDurabilityOfStack(aStack)) + " secs");
|
||||||
aList.add("Durability: " + (this.maxDmg - getDurabilityOfStack(aStack)) + "/" + this.maxDmg);
|
aList.add("Durability: " + (this.maxDmg - getDurabilityOfStack(aStack)) + "/" + this.maxDmg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue