-
Notifications
You must be signed in to change notification settings - Fork 2
JamLib 2 #30
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
Merged
Merged
JamLib 2 #30
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c252872
feat: add platform methods
Jamalam360 1f7bb7c
feat: package reorganization and networking api
Jamalam360 54462a2
feat: foundations of an event system
Jamalam360 53b45f8
feat: javadocing
Jamalam360 ba06776
feat: interaction events
Jamalam360 6782e55
chore: update readme
Jamalam360 c101434
Bump version and resolve merge conflicts
Jamalam360 6c64448
feat: remove architectury api dependency
Jamalam360 1126d08
feat: re-add deprecated classes
Jamalam360 a45ca46
chore: comment out registration
Jamalam360 8259854
chore: changelog
Jamalam360 255f1d4
feat: fix jpms issues on neoforge
Jamalam360 9e667b9
fix: change modmenu compatibility entrypoint path
Jamalam360 392689e
chore: update changelog
Jamalam360 7522746
fix: remove duplicate class
Jamalam360 d6d6b0d
fix: neoforge typo
Jamalam360 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| - Remove redundant escape characters from string config field default comments. | ||
| - Add comments to lists of enums stating what values they can take (#23). | ||
| - Use system dependant line endings. | ||
| - Give each config its own Jankson instance to fix multithreading issues on Neoforge (#22). | ||
| Add more APIs in order to remove Architectury dependency. | ||
|
|
||
| This is a backwards compatible update. Mods which still use 1.x.x versions of JamLib are able to coexist with JamLib 2.x.x and mods using it. Please get in touch if you run into issues. |
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
28 changes: 28 additions & 0 deletions
28
.../client/java/io/github/jamalam360/jamlib/client/api/events/ClientPlayLifecycleEvents.java
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,28 @@ | ||
| package io.github.jamalam360.jamlib.client.api.events; | ||
|
|
||
| import io.github.jamalam360.jamlib.api.events.core.Event; | ||
| import net.minecraft.client.Minecraft; | ||
|
|
||
| /** | ||
| * Events for client-side player lifecycle events. | ||
| */ | ||
| public class ClientPlayLifecycleEvents { | ||
| /** | ||
| * Called when the local player has joined a logical server. | ||
| */ | ||
| public static final Event<Join> JOIN = new Event<>(); | ||
| /** | ||
| * Called when the local player leaves a logical server. | ||
| */ | ||
| public static final Event<Leave> DISCONNECT = new Event<>(); | ||
|
|
||
| @FunctionalInterface | ||
| public interface Join { | ||
| void onJoin(Minecraft client); | ||
| } | ||
|
|
||
| @FunctionalInterface | ||
| public interface Leave { | ||
| void onLeave(Minecraft client); | ||
| } | ||
| } |
2 changes: 1 addition & 1 deletion
2
...alam360/jamlib/client/gui/WidgetList.java → ...360/jamlib/client/api/gui/WidgetList.java
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
7 changes: 0 additions & 7 deletions
7
common/src/client/java/io/github/jamalam360/jamlib/client/config/gui/entry/package-info.java
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...mlib/client/config/gui/SelectionList.java → ...lib/client/impl/config/SelectionList.java
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
2 changes: 1 addition & 1 deletion
2
...client/config/gui/SelectionListEntry.java → ...lient/impl/config/SelectionListEntry.java
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
3 changes: 1 addition & 2 deletions
3
.../config/gui/entry/BooleanConfigEntry.java → ...impl/config/entry/BooleanConfigEntry.java
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
10 changes: 5 additions & 5 deletions
10
.../client/config/gui/entry/ConfigEntry.java → ...client/impl/config/entry/ConfigEntry.java
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
4 changes: 2 additions & 2 deletions
4
.../client/config/gui/entry/ConfigField.java → ...client/impl/config/entry/ConfigField.java
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
2 changes: 1 addition & 1 deletion
2
...b/client/config/gui/entry/EnumButton.java → .../client/impl/config/entry/EnumButton.java
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
4 changes: 2 additions & 2 deletions
4
...ent/config/gui/entry/EnumConfigEntry.java → ...nt/impl/config/entry/EnumConfigEntry.java
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
4 changes: 2 additions & 2 deletions
4
...nt/config/gui/entry/FieldConfigField.java → ...t/impl/config/entry/FieldConfigField.java
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
10 changes: 3 additions & 7 deletions
10
...ent/config/gui/entry/ListConfigEntry.java → ...nt/impl/config/entry/ListConfigEntry.java
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
4 changes: 2 additions & 2 deletions
4
...nfig/gui/entry/ListMemberConfigField.java → ...l/config/entry/ListMemberConfigField.java
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
6 changes: 3 additions & 3 deletions
6
...t/config/gui/entry/NumberConfigEntry.java → .../impl/config/entry/NumberConfigEntry.java
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
2 changes: 1 addition & 1 deletion
2
...client/config/gui/entry/SliderButton.java → ...lient/impl/config/entry/SliderButton.java
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
3 changes: 1 addition & 2 deletions
3
...t/config/gui/entry/StringConfigEntry.java → .../impl/config/entry/StringConfigEntry.java
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
6 changes: 3 additions & 3 deletions
6
...client/mixin/ImageWidget$SpriteMixin.java → ...t/impl/mixin/ImageWidget$SpriteMixin.java
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.