diff --git a/common/src/main/java/org/embeddedt/modernfix/platform/ModernFixPlatformHooks.java b/common/src/main/java/org/embeddedt/modernfix/platform/ModernFixPlatformHooks.java index e3f090bc..0a805814 100644 --- a/common/src/main/java/org/embeddedt/modernfix/platform/ModernFixPlatformHooks.java +++ b/common/src/main/java/org/embeddedt/modernfix/platform/ModernFixPlatformHooks.java @@ -17,83 +17,37 @@ import java.util.function.Consumer; public interface ModernFixPlatformHooks { ModernFixPlatformHooks INSTANCE = PlatformHookLoader.findInstance(); - default boolean isClient() { - throw new AssertionError(); - } - + boolean isClient(); - default boolean isDedicatedServer() { - throw new AssertionError(); - } - + boolean isDedicatedServer(); - default String getVersionString() { - throw new AssertionError(); - } + String getVersionString(); + boolean modPresent(String modId); - default boolean modPresent(String modId) { - throw new AssertionError(); - } + boolean isDevEnv(); - - default boolean isDevEnv() { - throw new AssertionError(); - } + void injectPlatformSpecificHacks(); - - default void injectPlatformSpecificHacks() { - throw new AssertionError(); - } + void applyASMTransformers(String mixinClassName, ClassNode targetClass); - - default void applyASMTransformers(String mixinClassName, ClassNode targetClass) { - throw new AssertionError(); - } + MinecraftServer getCurrentServer(); - - default MinecraftServer getCurrentServer() { - throw new AssertionError(); - } + boolean isEarlyLoadingNormally(); - - default boolean isEarlyLoadingNormally() { - throw new AssertionError(); - } + boolean isLoadingNormally(); - - default boolean isLoadingNormally() { - throw new AssertionError(); - } + Path getGameDirectory(); - default Path getGameDirectory() { - throw new AssertionError(); - } + void sendPacket(ServerPlayer player, Object packet); - - default void sendPacket(ServerPlayer player, Object packet) { - throw new AssertionError(); - } + Multimap getCustomModOptions(); - - default void onServerCommandRegister(Consumer> handler) { - throw new AssertionError(); - } + void onServerCommandRegister(Consumer> handler); - - default Multimap getCustomModOptions() { - throw new AssertionError(); - } + void onLaunchComplete(); - default void registerCreativeSearchTrees(SearchRegistry registry, SearchRegistry.TreeBuilderSupplier nameSupplier, SearchRegistry.TreeBuilderSupplier tagSupplier, BiConsumer, List> populator) { - throw new AssertionError(); - } - - default void onLaunchComplete() { - throw new AssertionError(); - } + void registerCreativeSearchTrees(SearchRegistry registry, SearchRegistry.TreeBuilderSupplier nameSupplier, SearchRegistry.TreeBuilderSupplier tagSupplier, BiConsumer, List> populator); - default String getPlatformName() { - throw new AssertionError(); - } + String getPlatformName(); }