Skip to content

Commit

Permalink
when you need to bump the version because you forgot shit
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Jun 2, 2024
1 parent 5cd0ed7 commit fef68d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pluginManagement {
***Why is the QuiltMC maven needed??? Do I need to be on QuiltMC to use this plugin???***
<br>
No, you do not need to use the QuiltMC Toolchain to use this plugin. However, this plugin uses the
[Quilt Parsers](https://github.com/QuiltMC/quilt-parsers) library to handle JSON writing, but it is only
a standalone Java Library, which is not even needed at runtime for Minecraft, since it is only used
for your gradle project management. You do not need to have it as a dependency when playing Minecraft.
[Quilt Parsers](https://github.com/QuiltMC/quilt-parsers) library to handle JSON writing, which is only
a standalone Java Library. That means it is not required at runtime for Minecraft (since it is only used
for your gradle project management), so you do not need to have it as a dependency when playing the game.

In your `libs.versions.toml`, inside the `plugins` category:

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.mmodding"
version = "0.0.2-alpha"
version = "0.0.3-alpha"
val javaVersion = 17

repositories {
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/com/mmodding/gradle/api/mod/json/ModJson.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public abstract class ModJson<R extends ModDependencies.ModDependency, D extends
protected String license;
protected String icon;
protected EnvironmentTarget environment = EnvironmentTarget.ANY;
protected final ModEntrypoints entrypoints = new ModEntrypoints(this instanceof QuiltModJson);
protected final ContactInformation contact = new ContactInformation();
protected final ModEntrypoints entrypoints = new ModEntrypoints(this instanceof QuiltModJson);
protected final List<MixinFile> mixins = new ArrayList<>();
protected String accessWidener;
protected final InjectedInterfaces injectedInterfaces = new InjectedInterfaces();
Expand Down Expand Up @@ -103,6 +103,14 @@ public void withContact(Action<ContactInformation> action) {
action.execute(this.contact);
}

public ModEntrypoints getEntrypoints() {
return this.entrypoints;
}

public void withEntrypoints(Action<ModEntrypoints> action) {
action.execute(this.entrypoints);
}

public abstract D getDependencies();

public abstract void withDependencies(Action<D> action);
Expand Down

0 comments on commit fef68d8

Please sign in to comment.