Skip to content

Commit

Permalink
clarify debug wizard use ingame
Browse files Browse the repository at this point in the history
  • Loading branch information
parzivail committed Dec 30, 2018
1 parent 336ed54 commit b6d280b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/java/com/parzivail/swg/item/ItemDebugWizard.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
package com.parzivail.swg.item;

import com.parzivail.swg.Resources;
import com.parzivail.swg.force.Cron;
import com.parzivail.swg.player.PswgExtProp;
import com.parzivail.swg.proxy.Client;
import com.parzivail.swg.registry.ForceRegistry;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

import java.util.List;

public class ItemDebugWizard extends PItem
{
public ItemDebugWizard()
{
super("debugWizard");
}

@Override
public void addInformation(ItemStack stack, EntityPlayer player, List info, boolean advancedTooltips)
{
info.add("Currently debugging: Force Powers (jump)");
info.add(String.format("%s: §r[§e%s§r]", I18n.format(Resources.guiDot("use")), Resources.getKeyName(Client.mc.gameSettings.keyBindUseItem)));
}

@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
{
Expand All @@ -28,7 +40,7 @@ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer pla
}
}

Cron.usePower(player, ForceRegistry.fpLightning);
Cron.usePower(player, ForceRegistry.fpJump);

return stack;
}
Expand Down

0 comments on commit b6d280b

Please sign in to comment.