Reformatting with Vindex's magic
This commit is contained in:
parent
67a9d5c1e9
commit
e8d1ff4997
18 changed files with 421 additions and 414 deletions
|
@ -78,7 +78,8 @@ public class ItemBoundTool extends ItemBindable
|
|||
|
||||
// if (!world.isRemote)
|
||||
{
|
||||
if (player.isSneaking()) setActivated(stack, !getActivated(stack));
|
||||
if (player.isSneaking())
|
||||
setActivated(stack, !getActivated(stack));
|
||||
// if (getActivated(stack) && ItemBindable.syphonBatteries(stack,
|
||||
// player, getLPUsed()))
|
||||
// return stack;
|
||||
|
@ -88,7 +89,8 @@ public class ItemBoundTool extends ItemBindable
|
|||
if (!player.isSneaking() && getActivated(stack))
|
||||
{
|
||||
BoundToolEvent.Charge event = new BoundToolEvent.Charge(player, stack);
|
||||
if (MinecraftForge.EVENT_BUS.post(event)) return event.result;
|
||||
if (MinecraftForge.EVENT_BUS.post(event))
|
||||
return event.result;
|
||||
|
||||
player.setItemInUse(stack, this.getMaxItemUseDuration(stack));
|
||||
beingHeldDown = true;
|
||||
|
@ -122,7 +124,8 @@ public class ItemBoundTool extends ItemBindable
|
|||
{
|
||||
int i = this.getMaxItemUseDuration(stack) - timeLeft;
|
||||
BoundToolEvent.Release event = new BoundToolEvent.Release(playerIn, stack, i);
|
||||
if (MinecraftForge.EVENT_BUS.post(event)) return;
|
||||
if (MinecraftForge.EVENT_BUS.post(event))
|
||||
return;
|
||||
|
||||
i = event.charge;
|
||||
|
||||
|
@ -167,8 +170,10 @@ public class ItemBoundTool extends ItemBindable
|
|||
|
||||
if (StatCollector.canTranslate(tooltipBase + "desc"))
|
||||
tooltip.add(TextHelper.localizeEffect(tooltipBase + "desc"));
|
||||
if (getActivated(stack)) tooltip.add(TextHelper.localize("tooltip.BloodMagic.activated"));
|
||||
else tooltip.add(TextHelper.localize("tooltip.BloodMagic.deactivated"));
|
||||
if (getActivated(stack))
|
||||
tooltip.add(TextHelper.localize("tooltip.BloodMagic.activated"));
|
||||
else
|
||||
tooltip.add(TextHelper.localize("tooltip.BloodMagic.deactivated"));
|
||||
|
||||
super.addInformation(stack, player, tooltip, advanced);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue