-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Spotless Copied from Frontiers-PackForge/CosmicCore#34 Shoutout omergunr100 * Run spotless * Update README.md * Add MOOC to Readme
- Loading branch information
1 parent
d02faf3
commit 1147082
Showing
8 changed files
with
494 additions
and
23 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,11 +1,38 @@ | ||
# GregTech Addon Template | ||
Template for GregTech Modern addons on 1.20.1 | ||
## Template for GregTech Modern addons on 1.20.1 | ||
|
||
Original template by screret, updated by JuiceyBeans | ||
Original template by [screret](https://github.com/screret), updated by [JuiceyBeans](https://github.com/JuiceyBeans) | ||
|
||
Repositories you can use for additional reference: | ||
<hr> | ||
|
||
## How do I make an addon for GregTech Modern? | ||
Well for one, you WILL need to know Java to make an addon. There's no getting around this. A good starting point would be [MOOC](https://java-programming.mooc.fi/) or [W3Schools](https://www.w3schools.com/java/ | ||
) | ||
|
||
Unfortunately, there isn't any official documentation so far for making GregTech Modern addons. There are a couple of mods you can look at to reference though! | ||
|
||
Repositories for other addons: | ||
|
||
- [CosmicCore](https://github.com/Frontiers-PackForge/CosmicCore) | ||
- [Gregicality Rocketry](https://github.com/Argent-Matter/gcyr/) | ||
- [Gregtech: Extended Chemistry Extended](https://github.com/jmoiron/Gregtech-Extended-Chemistry) | ||
- [Juiceycality](https://github.com/JuiceyBeans/Juiceycality) | ||
- [Juiceycality](https://github.com/JuiceyBeans/Juiceycality) | ||
- [Gregicality Rocketry](https://github.com/Argent-Matter/gcyr/) | ||
|
||
Additionally, you may be able to find help on the [GregTech CEu Discord](https://discord.gg/bWSWuYvURP)! | ||
|
||
<hr> | ||
|
||
## This template comes packaged with [Spotless](https://github.com/diffplug/spotless)! | ||
|
||
### 1. What is Spotless? | ||
- Spotless keeps your code neatly formatted. It's essentially a grammar check for your code! | ||
### 2. Can I choose not to use Spotless? | ||
- Yes! Spotless is completely optional and will not affect your project by default | ||
### 3. How do I run Spotless? | ||
- You can run Spotless anytime by: | ||
- Running the `spotlessApply` task from the Gradle tab in IntelliJ | ||
- Installing the [Spotless Gradle plugin for IntelliJ](https://plugins.jetbrains.com/plugin/18321-spotless-gradle) | ||
- Typing in `gradlew.bat :spotlessApply` if you're on Windows | ||
- Typing in `bash gradlew :spotlessApply` if you're on Linux | ||
### 4. So how do I check if Spotless has been applied to my code? | ||
- Running `spotlessApply` will format all files for you automatically! If you want GitHub to check each commit for if Spotless has been run, you can add [this](https://github.com/Frontiers-PackForge/CosmicCore/blob/main-1.20.1-forge/.github/workflows/spotless.yml) and [this](https://github.com/Frontiers-PackForge/CosmicCore/blob/main-1.20.1-forge/.github/actions/build_setup/action.yml) to your project |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Spotless auto-formatter | ||
// See https://github.com/diffplug/spotless/tree/main/plugin-gradle | ||
// Can be locally toggled via spotless:off/spotless:on comments | ||
spotless { | ||
encoding 'UTF-8' | ||
|
||
format 'misc', { | ||
target '.gitignore' | ||
|
||
trimTrailingWhitespace() | ||
indentWithSpaces(4) | ||
endWithNewline() | ||
} | ||
java { | ||
target 'src/main/java/**/*.java', 'src/test/java/**/*.java' | ||
|
||
def orderFile = file("$rootDir/spotless/spotless.importorder") | ||
def formatFile = file("$rootDir/spotless/spotless.eclipseformat.xml") | ||
|
||
toggleOffOn() | ||
importOrderFile(orderFile) | ||
removeUnusedImports('cleanthat-javaparser-unnecessaryimport') | ||
endWithNewline() | ||
eclipse('4.31').configFile(formatFile) | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,8 @@ | ||
0=com.example | ||
1=com.gregtechceu | ||
2=com.lowdragmc | ||
3=net | ||
4= | ||
5=java | ||
6=javax | ||
7=\# |
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