-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Mod Menu API & Update to pre release 5
- Loading branch information
1 parent
cebccce
commit 69b488c
Showing
5 changed files
with
31 additions
and
15 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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/misterpemodder/shulkerboxtooltip/ModMenuCompat.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,18 @@ | ||
package com.misterpemodder.shulkerboxtooltip; | ||
|
||
import java.util.Optional; | ||
import java.util.function.Supplier; | ||
import io.github.prospector.modmenu.api.ModMenuApi; | ||
import net.minecraft.client.gui.Screen; | ||
|
||
public class ModMenuCompat implements ModMenuApi { | ||
@Override | ||
public String getModId() { | ||
return "shulkerboxtooltip"; | ||
} | ||
|
||
@Override | ||
public Optional<Supplier<Screen>> getConfigScreen(Screen screen) { | ||
return Optional.of(Configuration::buildConfigScreen); | ||
} | ||
} |
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