forked from LambdAurora/SpruceUI
-
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.
- Loading branch information
Showing
14 changed files
with
130 additions
and
160 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,2 +1,3 @@ | ||
# Changelog | ||
- re-added `architectury-api` dependency | ||
- fix version number | ||
- use LexForge Events, not use `architectury-api` |
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
41 changes: 0 additions & 41 deletions
41
src/main/java/dev/lambdaurora/spruceui/event/EventUtil.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/main/java/dev/lambdaurora/spruceui/event/OpenScreenCallback.java
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
src/main/java/dev/lambdaurora/spruceui/event/OpenScreenEvent.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package dev.lambdaurora.spruceui.event; | ||
|
||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.gui.screen.Screen; | ||
import net.minecraftforge.eventbus.api.Cancelable; | ||
import net.minecraftforge.eventbus.api.Event; | ||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public abstract class OpenScreenEvent extends Event { | ||
private final MinecraftClient client; | ||
private final Screen screen; | ||
|
||
@ApiStatus.Internal | ||
public OpenScreenEvent(MinecraftClient client, @Nullable Screen screen) { | ||
this.client = client; | ||
this.screen = screen; | ||
} | ||
|
||
public MinecraftClient getClient() { | ||
return client; | ||
} | ||
|
||
public Screen getScreen() { | ||
return screen; | ||
} | ||
|
||
@Cancelable | ||
public static class Pre extends OpenScreenEvent { | ||
@ApiStatus.Internal | ||
public Pre(MinecraftClient client, @Nullable Screen screen) { | ||
super(client, screen); | ||
} | ||
} | ||
|
||
public static class Post extends OpenScreenEvent { | ||
@ApiStatus.Internal | ||
public Post(MinecraftClient client, @Nullable Screen screen) { | ||
super(client, screen); | ||
} | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
src/main/java/dev/lambdaurora/spruceui/event/ResolutionChangeCallback.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
src/main/java/dev/lambdaurora/spruceui/event/ResolutionChangeEvent.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package dev.lambdaurora.spruceui.event; | ||
|
||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraftforge.eventbus.api.Event; | ||
|
||
public class ResolutionChangeEvent extends Event { | ||
private final MinecraftClient client; | ||
public ResolutionChangeEvent(MinecraftClient client) { | ||
this.client = client; | ||
} | ||
public MinecraftClient getClient() { | ||
return client; | ||
} | ||
} |
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
Oops, something went wrong.