-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
438 additions
and
50 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
versions/snapshot/1.21/25w02a/patches/client/net/minecraft/client/Minecraft.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
versions/snapshot/1.21/25w02a/patches/client/net/minecraft/client/gui/GuiGraphics.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- a/net/minecraft/client/gui/GuiGraphics.java | ||
+++ b/net/minecraft/client/gui/GuiGraphics.java | ||
@@ -1020,57 +1020,21 @@ | ||
Object object = hoverevent; | ||
Throwable throwable4; | ||
switch (object) { | ||
- case HoverEvent.ShowItem hoverevent$showitem: | ||
- HoverEvent.ShowItem hoverevent$showitem1 = hoverevent$showitem; | ||
- | ||
- try { | ||
- itemstack1 = hoverevent$showitem1.item(); | ||
- } catch (Throwable throwable2) { | ||
- throwable4 = throwable2; | ||
- boolean flag1 = false; | ||
- break; | ||
- } | ||
- | ||
- ItemStack itemstack = itemstack1; | ||
+ case HoverEvent.ShowItem(ItemStack itemstack): | ||
this.renderTooltip(p_282584_, itemstack, p_283623_, p_282114_); | ||
return; | ||
- case HoverEvent.ShowEntity hoverevent$showentity: | ||
- HoverEvent.ShowEntity hoverevent$showentity1 = hoverevent$showentity; | ||
- | ||
- try { | ||
- hoverevent$entitytooltipinfo1 = hoverevent$showentity1.entity(); | ||
- } catch (Throwable throwable1) { | ||
- throwable4 = throwable1; | ||
- boolean flag = false; | ||
- break; | ||
- } | ||
- | ||
- HoverEvent.EntityTooltipInfo hoverevent$entitytooltipinfo = hoverevent$entitytooltipinfo1; | ||
+ case HoverEvent.ShowEntity(HoverEvent.EntityTooltipInfo hoverevent$entitytooltipinfo): | ||
if (this.minecraft.options.advancedItemTooltips) { | ||
this.renderComponentTooltip(p_282584_, hoverevent$entitytooltipinfo.getTooltipLines(), p_283623_, p_282114_); | ||
} | ||
|
||
return; | ||
- case HoverEvent.ShowText hoverevent$showtext: | ||
- HoverEvent.ShowText hoverevent$showtext1 = hoverevent$showtext; | ||
- | ||
- try { | ||
- component1 = hoverevent$showtext1.text(); | ||
- } catch (Throwable throwable) { | ||
- throwable4 = throwable; | ||
- boolean flag2 = false; | ||
- break; | ||
- } | ||
- | ||
- Component component = component1; | ||
+ case HoverEvent.ShowText(Component component): | ||
this.renderTooltip(p_282584_, p_282584_.split(component, Math.max(this.guiWidth() / 2, 200)), p_283623_, p_282114_); | ||
return; | ||
default: | ||
return; | ||
} | ||
- | ||
- Throwable throwable3 = throwable4; | ||
- throw new MatchException(throwable3.toString(), throwable3); | ||
} | ||
} | ||
|
86 changes: 86 additions & 0 deletions
86
...ns/snapshot/1.21/25w02a/patches/client/net/minecraft/client/gui/screens/Screen.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- a/net/minecraft/client/gui/screens/Screen.java | ||
+++ b/net/minecraft/client/gui/screens/Screen.java | ||
@@ -257,18 +257,7 @@ | ||
Objects.requireNonNull(clickevent); | ||
Throwable throwable5; | ||
switch (clickevent) { | ||
- case ClickEvent.OpenUrl clickevent$openurl: | ||
- ClickEvent.OpenUrl clickevent$openurl1 = clickevent$openurl; | ||
- | ||
- try { | ||
- uri1 = clickevent$openurl1.uri(); | ||
- } catch (Throwable throwable4) { | ||
- throwable5 = throwable4; | ||
- boolean flag2 = false; | ||
- break; | ||
- } | ||
- | ||
- URI uri = uri1; | ||
+ case ClickEvent.OpenUrl(URI uri): | ||
if (!this.minecraft.options.chatLinks().get()) { | ||
return false; | ||
} | ||
@@ -289,32 +278,10 @@ | ||
case ClickEvent.OpenFile clickevent$openfile: | ||
Util.getPlatform().openFile(clickevent$openfile.file()); | ||
return true; | ||
- case ClickEvent.SuggestCommand clickevent$suggestcommand: | ||
- ClickEvent.SuggestCommand clickevent$suggestcommand1 = clickevent$suggestcommand; | ||
- | ||
- try { | ||
- s6 = clickevent$suggestcommand1.command(); | ||
- } catch (Throwable throwable3) { | ||
- throwable5 = throwable3; | ||
- boolean flag1 = false; | ||
- break; | ||
- } | ||
- | ||
- String s2 = s6; | ||
+ case ClickEvent.SuggestCommand(String s2): | ||
this.insertText(s2, true); | ||
return true; | ||
- case ClickEvent.RunCommand clickevent$runcommand: | ||
- ClickEvent.RunCommand clickevent$runcommand1 = clickevent$runcommand; | ||
- | ||
- try { | ||
- s5 = clickevent$runcommand1.command(); | ||
- } catch (Throwable throwable2) { | ||
- throwable5 = throwable2; | ||
- boolean flag = false; | ||
- break; | ||
- } | ||
- | ||
- String s3 = s5; | ||
+ case ClickEvent.RunCommand(String s3): | ||
String s = s3; | ||
if (s3.startsWith("/")) { | ||
s = s3.substring(1); | ||
@@ -325,27 +292,13 @@ | ||
} | ||
|
||
return true; | ||
- case ClickEvent.CopyToClipboard clickevent$copytoclipboard: | ||
- ClickEvent.CopyToClipboard clickevent$copytoclipboard1 = clickevent$copytoclipboard; | ||
- | ||
- try { | ||
- s4 = clickevent$copytoclipboard1.value(); | ||
- } catch (Throwable throwable1) { | ||
- throwable5 = throwable1; | ||
- boolean flag3 = false; | ||
- break; | ||
- } | ||
- | ||
- String s1 = s4; | ||
+ case ClickEvent.CopyToClipboard(String s1): | ||
this.minecraft.keyboardHandler.setClipboard(s1); | ||
return true; | ||
default: | ||
LOGGER.error("Don't know how to handle {}", clickevent); | ||
return true; | ||
} | ||
- | ||
- Throwable throwable = throwable5; | ||
- throw new MatchException(throwable.toString(), throwable); | ||
} | ||
|
||
return false; |
20 changes: 19 additions & 1 deletion
20
...5w02a/patches/client/net/minecraft/client/gui/screens/inventory/BookViewScreen.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...apshot/1.21/25w02a/patches/client/net/minecraft/client/multiplayer/ClientLevel.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
versions/snapshot/1.21/25w02a/patches/joined/net/minecraft/client/Minecraft.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
versions/snapshot/1.21/25w02a/patches/joined/net/minecraft/client/gui/GuiGraphics.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- a/net/minecraft/client/gui/GuiGraphics.java | ||
+++ b/net/minecraft/client/gui/GuiGraphics.java | ||
@@ -1023,57 +1023,21 @@ | ||
Object object = hoverevent; | ||
Throwable throwable4; | ||
switch (object) { | ||
- case HoverEvent.ShowItem hoverevent$showitem: | ||
- HoverEvent.ShowItem hoverevent$showitem1 = hoverevent$showitem; | ||
- | ||
- try { | ||
- itemstack1 = hoverevent$showitem1.item(); | ||
- } catch (Throwable throwable2) { | ||
- throwable4 = throwable2; | ||
- boolean flag1 = false; | ||
- break; | ||
- } | ||
- | ||
- ItemStack itemstack = itemstack1; | ||
+ case HoverEvent.ShowItem(ItemStack itemstack): | ||
this.renderTooltip(p_282584_, itemstack, p_283623_, p_282114_); | ||
return; | ||
- case HoverEvent.ShowEntity hoverevent$showentity: | ||
- HoverEvent.ShowEntity hoverevent$showentity1 = hoverevent$showentity; | ||
- | ||
- try { | ||
- hoverevent$entitytooltipinfo1 = hoverevent$showentity1.entity(); | ||
- } catch (Throwable throwable1) { | ||
- throwable4 = throwable1; | ||
- boolean flag = false; | ||
- break; | ||
- } | ||
- | ||
- HoverEvent.EntityTooltipInfo hoverevent$entitytooltipinfo = hoverevent$entitytooltipinfo1; | ||
+ case HoverEvent.ShowEntity(HoverEvent.EntityTooltipInfo hoverevent$entitytooltipinfo): | ||
if (this.minecraft.options.advancedItemTooltips) { | ||
this.renderComponentTooltip(p_282584_, hoverevent$entitytooltipinfo.getTooltipLines(), p_283623_, p_282114_); | ||
} | ||
|
||
return; | ||
- case HoverEvent.ShowText hoverevent$showtext: | ||
- HoverEvent.ShowText hoverevent$showtext1 = hoverevent$showtext; | ||
- | ||
- try { | ||
- component1 = hoverevent$showtext1.text(); | ||
- } catch (Throwable throwable) { | ||
- throwable4 = throwable; | ||
- boolean flag2 = false; | ||
- break; | ||
- } | ||
- | ||
- Component component = component1; | ||
+ case HoverEvent.ShowText(Component component): | ||
this.renderTooltip(p_282584_, p_282584_.split(component, Math.max(this.guiWidth() / 2, 200)), p_283623_, p_282114_); | ||
return; | ||
default: | ||
return; | ||
} | ||
- | ||
- Throwable throwable3 = throwable4; | ||
- throw new MatchException(throwable3.toString(), throwable3); | ||
} | ||
} | ||
|
Oops, something went wrong.