-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
1 parent
ae4a7b1
commit 2d37889
Showing
26 changed files
with
127 additions
and
71 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
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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/sammy/malum/client/screen/codex/objects/ScreenOpenerObject.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,22 @@ | ||
package com.sammy.malum.client.screen.codex.objects; | ||
|
||
import com.sammy.malum.client.screen.codex.*; | ||
import net.minecraft.resources.*; | ||
|
||
public class ScreenOpenerObject extends IconObject{ | ||
private final Runnable screenOpener; | ||
public ScreenOpenerObject(AbstractProgressionCodexScreen screen, BookEntry entry, int posX, int posY, Runnable screenOpener, ResourceLocation textureLocation) { | ||
super(screen, entry, posX, posY, textureLocation); | ||
this.screenOpener = screenOpener; | ||
} | ||
|
||
public ScreenOpenerObject(AbstractProgressionCodexScreen screen, BookEntry entry, int posX, int posY, Runnable screenOpener, ResourceLocation textureLocation, int textureWidth, int textureHeight) { | ||
super(screen, entry, posX, posY, textureLocation, textureWidth, textureHeight); | ||
this.screenOpener = screenOpener; | ||
} | ||
|
||
@Override | ||
public void click(float xOffset, float yOffset, double mouseX, double mouseY) { | ||
screenOpener.run(); | ||
} | ||
} |
Oops, something went wrong.