Skip to content

Commit

Permalink
Added annotations for 1.16.5 mcp mappings (#2197)
Browse files Browse the repository at this point in the history
* added annotations for 1.16.5 mcp mappings

* license fixes

---------

Co-authored-by: phoenix <[email protected]>
  • Loading branch information
2 people authored and Earthcomputer committed Jan 15, 2024
1 parent 8b003af commit 595d2bf
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
31 changes: 31 additions & 0 deletions externalAnnotations/net/minecraft/client/resources/annotations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
Minecraft Development for IntelliJ
https://mcdev.io/
Copyright (C) 2023 minecraft-dev
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, version 3.0 only.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<root>
<item name="net.minecraft.client.resources.I18n java.lang.String format(java.lang.String, java.lang.Object...) 0">
<annotation name="com.demonwav.mcdev.annotations.Translatable">
<val name="foldMethod" val="true"/>
<val name="allowArbitraryArgs" val="true"/>
</annotation>
</item>
<item name="net.minecraft.client.resources.I18n boolean hasKey(java.lang.String) 0">
<annotation name="com.demonwav.mcdev.annotations.Translatable"/>
</item>
</root>
33 changes: 33 additions & 0 deletions externalAnnotations/net/minecraft/util/text/annotations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--
Minecraft Development for IntelliJ
https://mcdev.io/
Copyright (C) 2023 minecraft-dev
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, version 3.0 only.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<!-- Yarn mappings -->

<root>
<item name="net.minecraft.util.text.TranslationTextComponent TranslationTextComponent(java.lang.String) 0">
<annotation name="com.demonwav.mcdev.annotations.Translatable"/>
</item>
<item name="net.minecraft.util.text.TranslationTextComponent TranslationTextComponent(java.lang.String, java.lang.Object...) 0">
<annotation name="com.demonwav.mcdev.annotations.Translatable">
<val name="foldMethod" val="true"/>
<val name="allowArbitraryArgs" val="true"/>
</annotation>
</item>
</root>

0 comments on commit 595d2bf

Please sign in to comment.