-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some classes got renamed apparently.
- Loading branch information
Showing
4 changed files
with
15 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
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,14 +1,14 @@ | ||
package yalter.mousetweaks.forge; | ||
|
||
import net.minecraftforge.client.ConfigGuiHandler; | ||
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory; | ||
import yalter.mousetweaks.ConfigScreen; | ||
|
||
/** | ||
* Functions accessing client-only classes, extracted so that they can be called from MouseTweaksForge | ||
* without causing class-loading errors on the server. | ||
*/ | ||
public class ClientHelper { | ||
public static ConfigGuiHandler.ConfigGuiFactory createConfigGuiFactory() { | ||
return new ConfigGuiHandler.ConfigGuiFactory((minecraft, screen) -> new ConfigScreen(screen)); | ||
public static ConfigScreenFactory createConfigScreenFactory() { | ||
return new ConfigScreenFactory((minecraft, screen) -> new ConfigScreen(screen)); | ||
} | ||
} |
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