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