Give conjured items a blue timer (durability) bar
This commit is contained in:
@@ -60,6 +60,11 @@ public class ItemFlamingAxe extends ItemAxe implements IConjuredItem {
|
||||
return this.getMaxDamageFromNBT(stack, Spells.flaming_axe);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRGBDurabilityForDisplay(ItemStack stack){
|
||||
return IConjuredItem.getTimerBarColour(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
// This method allows the code for the item's timer to be greatly simplified by damaging it directly from
|
||||
// onUpdate() and removing the workaround that involved WizardData and all sorts of crazy stuff.
|
||||
|
||||
Reference in New Issue
Block a user