diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-27 11:53:57 -0500 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-27 11:53:57 -0500 |
| commit | b09f774d422263ce15b97d6d0804beddf856176d (patch) | |
| tree | e542258481d7496b15679f3c329ef9e087c7d8fc /src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java | |
| parent | 22cb02adbeb24b7ec98f843bcaba99cebe3e4f03 (diff) | |
| download | notenoughupdates-b09f774d422263ce15b97d6d0804beddf856176d.tar.gz notenoughupdates-b09f774d422263ce15b97d6d0804beddf856176d.tar.bz2 notenoughupdates-b09f774d422263ce15b97d6d0804beddf856176d.zip | |
feat: improve formating :)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java index 95318ed7..6bce4f5a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/CustomizeCommand.java @@ -15,33 +15,33 @@ import java.util.List; public class CustomizeCommand extends ClientCommandBase { - public CustomizeCommand() { - super("neucustomize"); - } + public CustomizeCommand() { + super("neucustomize"); + } - @Override - public List<String> getCommandAliases() { - return Collections.singletonList("neurename"); - } + @Override + public List<String> getCommandAliases() { + return Collections.singletonList("neurename"); + } - @Override - public void processCommand(ICommandSender sender, String[] args) throws CommandException { - ItemStack held = Minecraft.getMinecraft().thePlayer.getHeldItem(); + @Override + public void processCommand(ICommandSender sender, String[] args) throws CommandException { + ItemStack held = Minecraft.getMinecraft().thePlayer.getHeldItem(); - if (held == null) { - sender.addChatMessage(new ChatComponentText("\u00a7cYou can't customize your hand...")); - return; - } + if (held == null) { + sender.addChatMessage(new ChatComponentText("\u00a7cYou can't customize your hand...")); + return; + } - String heldUUID = NotEnoughUpdates.INSTANCE.manager.getUUIDForItem(held); + String heldUUID = NotEnoughUpdates.INSTANCE.manager.getUUIDForItem(held); - if (heldUUID == null) { - sender.addChatMessage(new ChatComponentText("\u00a7cHeld item does not have UUID, cannot be customized")); - return; - } + if (heldUUID == null) { + sender.addChatMessage(new ChatComponentText("\u00a7cHeld item does not have UUID, cannot be customized")); + return; + } - NotEnoughUpdates.INSTANCE.openGui = new GuiItemCustomize(held, heldUUID); - } + NotEnoughUpdates.INSTANCE.openGui = new GuiItemCustomize(held, heldUUID); + } /*SimpleCommand itemRenameCommand = new SimpleCommand("neurename", new SimpleCommand.ProcessCommandRunnable() { public void processCommand(ICommandSender sender, String[] args) { |
