diff options
| author | Roman / Nea <roman.graef@gmail.com> | 2022-05-06 16:13:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-06 16:13:36 +0200 |
| commit | 1ca41f88d7729d9279df71cd186ff86f22e7d515 (patch) | |
| tree | 1809b7d4719c9e91d441be6fcffded012d03f3d1 /src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java | |
| parent | ead065aa1303acc3f6834bcfceb77242702b5622 (diff) | |
| download | notenoughupdates-1ca41f88d7729d9279df71cd186ff86f22e7d515.tar.gz notenoughupdates-1ca41f88d7729d9279df71cd186ff86f22e7d515.tar.bz2 notenoughupdates-1ca41f88d7729d9279df71cd186ff86f22e7d515.zip | |
Item Shop Recipes (#118)
* first draft of item shop PR
* add teleporter navigation because i can
* fix teleporter navigation because apparently i cant
* navigation gui basics
* :pushpin: and removed some unused shit and added myself to devtest command
* track / untrack + ery texture
Co-Authored-By: RayDeeUx <51521765+RayDeeUx@users.noreply.github.com>
* consoom the event
* fix crash in ItemShopRecipe.java + fetch repository
* i am so sorry jani
* on second thought, this entire thing was a bit untested
* more recipe stuff
* make navigation actually good
* make pins dissapear if you not a waypoint
* npc parsing
* save file
* different file saving
* remove message
* Warping... (to deez nuts)
* move shit around
Co-authored-by: jani270 <jani270@gmx.de>
Co-authored-by: RayDeeUx <51521765+RayDeeUx@users.noreply.github.com>
Co-authored-by: Lulonaut <lulonaut@tutanota.de>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java index a8f53460..46156a47 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/repo/RepoModeCommand.java @@ -5,7 +5,9 @@ import io.github.moulberry.notenoughupdates.commands.ClientCommandBase; import net.minecraft.client.Minecraft; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; +import net.minecraft.event.ClickEvent; import net.minecraft.util.ChatComponentText; +import net.minecraft.util.ChatStyle; public class RepoModeCommand extends ClientCommandBase { @@ -33,10 +35,17 @@ public class RepoModeCommand extends ClientCommandBase { githubBranch = args[3]; } } - NotEnoughUpdates.INSTANCE.config.hidden.repoURL = "https://github.com/" + githubUser + "/" + githubRepo + "/archive/" + githubBranch + ".zip"; - NotEnoughUpdates.INSTANCE.config.hidden.repoCommitsURL = "https://api.github.com/repos/" + githubUser + "/" + githubRepo + "/commits/" + githubBranch; - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("\u00a75Set NEU repo URL to " + NotEnoughUpdates.INSTANCE.config.hidden.repoURL + - "\n\u00a75Set NEU repo commits URL to " + NotEnoughUpdates.INSTANCE.config.hidden.repoCommitsURL)); + NotEnoughUpdates.INSTANCE.config.hidden.repoURL = + "https://github.com/" + githubUser + "/" + githubRepo + "/archive/" + githubBranch + ".zip"; + NotEnoughUpdates.INSTANCE.config.hidden.repoCommitsURL = + "https://api.github.com/repos/" + githubUser + "/" + githubRepo + "/commits/" + githubBranch; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText( + "\u00a75Set NEU repo URL to " + NotEnoughUpdates.INSTANCE.config.hidden.repoURL + + "\n\u00a75Set NEU repo commits URL to " + NotEnoughUpdates.INSTANCE.config.hidden.repoCommitsURL)); + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("\u00a75Run <") + .appendSibling(new ChatComponentText("/neureloadrepo fetch").setChatStyle(new ChatStyle().setChatClickEvent(new ClickEvent( + ClickEvent.Action.SUGGEST_COMMAND, "/neureloadrepo fetch")))) + .appendSibling(new ChatComponentText("\u00a75> to redownload your repo."))); } else { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("\u00a7cUsage:" + |
