-
Notifications
You must be signed in to change notification settings - Fork 229
Add Fabric 26.1+ class templates (Mojmap) #2639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Orlisan
wants to merge
17
commits into
minecraft-dev:dev
Choose a base branch
from
Orlisan:dev
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a2fbbec
Added freemarker templates for 26.1+ fabric mods and renamed old vers…
Orlisan 0a4dbce
Set FabricEnchantment (26.1+).java.ft content according to NeoForgeEn…
Orlisan 8191407
Added a Minecraft version parsing for fabric with method computeVersi…
Orlisan c96784b
Fixed typos
Orlisan c4788f9
Added gradle variables support and minecraft version for neoforge for…
Orlisan d4f3b51
Added new Json template for 1.21+ enchantments
Orlisan 38971d0
Improved resource modid detection
Orlisan e23b2cc
Update action text for Minecraft Json creation
Orlisan f4da1d6
Clean up commented code in MinecraftResourceCreateAction
Orlisan 284db37
Merge branch 'minecraft-dev:dev' into dev
Orlisan 81c9285
Merge branch 'minecraft-dev:dev' into dev
Orlisan 0e4738f
Merge branch 'minecraft-dev:dev' into dev
Orlisan 23c3a4e
Cleaned Code and Deleting Rendundant Version Detecting Code
Orlisan abe3727
Remove fabricMinecraftVersion from FabricModule
Orlisan 5a8024b
Removed Unused Imports and Deleted Json Template
Orlisan 6b72e34
Resolved unrelated formatting changes
Orlisan 64f153e
Fix formatting of constructor in ForgeEnchantment template
Orlisan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -20,6 +20,6 @@ | |
|
|
||
| <html> | ||
| <body> | ||
| A basic enchantment class for fabric. | ||
| A basic block class for fabric 1.21.11-. | ||
| </body> | ||
| </html> | ||
10 changes: 10 additions & 0 deletions
10
src/main/resources/fileTemplates/j2ee/skeleton/fabric/FabricBlock (26.1+).java.ft
This file contains hidden or 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,10 @@ | ||
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | ||
| #parse("File Header.java") | ||
|
|
||
| import net.minecraft.world.level.block.Block; | ||
|
|
||
| public class ${NAME} extends Block { | ||
| public ${NAME}(Properties properties) { | ||
| super(properties); | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -20,6 +20,6 @@ | |
|
|
||
| <html> | ||
| <body> | ||
| A basic block class for fabric. | ||
| A basic block class for fabric 26.1+. | ||
| </body> | ||
| </html> | ||
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
src/main/resources/fileTemplates/j2ee/skeleton/fabric/FabricEnchantment (1.21.11-).java.html
This file contains hidden or 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,25 @@ | ||
| <!-- | ||
| Minecraft Development for IntelliJ | ||
|
|
||
| https://mcdev.io/ | ||
|
|
||
| Copyright (C) 2025 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/>. | ||
| --> | ||
|
|
||
| <html> | ||
| <body> | ||
| A basic enchantment class for fabric 1.21.11-. | ||
| </body> | ||
| </html> |
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -20,6 +20,6 @@ | |
|
|
||
| <html> | ||
| <body> | ||
| An empty Fabric item class. | ||
| An empty Fabric item class for 1.21.11-. | ||
| </body> | ||
| </html> | ||
10 changes: 10 additions & 0 deletions
10
src/main/resources/fileTemplates/j2ee/skeleton/fabric/FabricItem (26.1+).java.ft
This file contains hidden or 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,10 @@ | ||
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | ||
| #parse("File Header.java") | ||
|
|
||
| import net.minecraft.world.item.Item; | ||
|
|
||
| public class ${NAME} extends Item { | ||
| public ${NAME}(Properties props) { | ||
| super(props); | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -20,6 +20,6 @@ | |
|
|
||
| <html> | ||
| <body> | ||
| An empty Fabric status effect class. | ||
| An empty Fabric item class for 1.21.11-. | ||
| </body> | ||
| </html> | ||
10 changes: 10 additions & 0 deletions
10
src/main/resources/fileTemplates/j2ee/skeleton/fabric/FabricMobEffect (26.1+).java.ft
This file contains hidden or 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,10 @@ | ||
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | ||
| #parse("File Header.java") | ||
|
|
||
| import net.minecraft.world.effect.MobEffect; | ||
| import net.minecraft.world.effect.MobEffectCategory; | ||
| public class ${NAME} extends MobEffect { | ||
| public ${NAME}(MobEffectCategory mobEffectCategory, int color) { | ||
| super(mobEffectCategory, color); | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
src/main/resources/fileTemplates/j2ee/skeleton/fabric/FabricMobEffect (26.1+).java.html
This file contains hidden or 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,25 @@ | ||
| <!-- | ||
| Minecraft Development for IntelliJ | ||
|
|
||
| https://mcdev.io/ | ||
|
|
||
| Copyright (C) 2025 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/>. | ||
| --> | ||
|
|
||
| <html> | ||
| <body> | ||
| An empty Fabric status effect class for 1.21.11- . | ||
| </body> | ||
| </html> |
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
...main/resources/fileTemplates/j2ee/skeleton/fabric/FabricStatusEffect (1.21.11-).java.html
This file contains hidden or 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,25 @@ | ||
| <!-- | ||
| Minecraft Development for IntelliJ | ||
|
|
||
| https://mcdev.io/ | ||
|
|
||
| Copyright (C) 2025 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/>. | ||
| --> | ||
|
|
||
| <html> | ||
| <body> | ||
| An empty Fabric status effect class for 1.21.11- . | ||
| </body> | ||
| </html> |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't delete this blank line