-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from SpiritGameStudios/1.0.1-dev
Snapper 1.0.1: The Unbreakification Update
- Loading branch information
Showing
25 changed files
with
368 additions
and
218 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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
org.gradle.jvmargs=-Xmx2G | ||
org.gradle.parallel=true | ||
|
||
mod.version = 1.0.0 | ||
mod.version = 1.0.1 | ||
mod.group = dev.spiritstudios | ||
mod.id = snapper | ||
|
||
deps.minecraft=1.21 | ||
deps.loader=0.15.11 | ||
deps.loader=0.16.5 | ||
deps.yarn=1.21+build.9 | ||
|
||
deps.fabricapi=0.102.0+1.21 | ||
deps.specter=1.0.2 | ||
deps.fabricapi=0.110.0+1.21.1 | ||
deps.specter=1.0.6 |
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,38 @@ | ||
[versions] | ||
fabric_loom = "1.8-SNAPSHOT" | ||
minotaur = "2.+" | ||
|
||
minecraft = "1.21" | ||
yarn = "1.21+build.9" | ||
|
||
fabric_loader = "0.16.5" | ||
fabric_api = "0.110.0+1.21.1" | ||
|
||
specter = "1.0.6" | ||
objc_bridge = "1.0.0" | ||
|
||
[plugins] | ||
fabric_loom = { id = "fabric-loom", version.ref = "fabric_loom" } | ||
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" } | ||
|
||
[libraries] | ||
minecraft = { group = "mojang", name = "minecraft", version.ref = "minecraft" } | ||
yarn = { group = "net.fabricmc", name = "yarn", version.ref = "yarn" } | ||
|
||
fabric_loader = { group = "net.fabricmc", name = "fabric-loader", version.ref = "fabric_loader" } | ||
fabric_api = { group = "net.fabricmc.fabric-api", name = "fabric-api", version.ref = "fabric_api" } | ||
|
||
specter_config = { group = "dev.spiritstudios.specter", name = "specter-config", version.ref = "specter" } | ||
specter_core = { group = "dev.spiritstudios.specter", name = "specter-core", version.ref = "specter" } | ||
specter_serialization = { group = "dev.spiritstudios.specter", name = "specter-serialization", version.ref = "specter" } | ||
specter_gui = { group = "dev.spiritstudios.specter", name = "specter-gui", version.ref = "specter" } | ||
|
||
objc_bridge = { group = "ca.weblite", name = "java-objc-bridge", version.ref = "objc_bridge" } | ||
|
||
[bundles] | ||
specter = [ | ||
"specter_serialization", | ||
"specter_core", | ||
"specter_config", | ||
"specter_gui" | ||
] |
Binary file not shown.
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
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
23 changes: 16 additions & 7 deletions
23
src/client/java/dev/spiritstudios/snapper/SnapperConfig.java
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,15 +1,24 @@ | ||
package dev.spiritstudios.snapper; | ||
|
||
import dev.spiritstudios.specter.api.config.Config; | ||
import net.minecraft.util.Identifier; | ||
import dev.spiritstudios.specter.api.config.ConfigHolder; | ||
import dev.spiritstudios.specter.api.config.Value; | ||
|
||
public class SnapperConfig extends Config<SnapperConfig> { | ||
public static final SnapperConfig INSTANCE = create(SnapperConfig.class); | ||
public final class SnapperConfig extends Config<SnapperConfig> { | ||
public static final ConfigHolder<SnapperConfig, ?> HOLDER = ConfigHolder.builder( | ||
Snapper.id("snapper"), SnapperConfig.class | ||
).build(); | ||
public static final SnapperConfig INSTANCE = HOLDER.get(); | ||
|
||
@Override | ||
public Identifier getId() { return Identifier.of(Snapper.MODID, "snapper"); } | ||
|
||
public Value<Boolean> copyTakenScreenshot = booleanValue(false) | ||
public final Value<Boolean> copyTakenScreenshot = booleanValue(false) | ||
.comment("Whether to copy screenshots to clipboard when taken.") | ||
.build(); | ||
|
||
public final Value<Boolean> showSnapperTitleScreen = booleanValue(true) | ||
.comment("Whether to show Snapper button on title screen.") | ||
.build(); | ||
|
||
public final Value<Boolean> showSnapperGameMenu = booleanValue(true) | ||
.comment("Whether to show Snapper button in game menu.") | ||
.build(); | ||
} |
Oops, something went wrong.