|
17 | 17 | public interface ModernFixPlatformHooks { |
18 | 18 | ModernFixPlatformHooks INSTANCE = PlatformHookLoader.findInstance(); |
19 | 19 |
|
20 | | - default boolean isClient() { |
21 | | - throw new AssertionError(); |
22 | | - } |
23 | | - |
| 20 | + boolean isClient(); |
24 | 21 |
|
25 | | - default boolean isDedicatedServer() { |
26 | | - throw new AssertionError(); |
27 | | - } |
28 | | - |
| 22 | + boolean isDedicatedServer(); |
29 | 23 |
|
30 | | - default String getVersionString() { |
31 | | - throw new AssertionError(); |
32 | | - } |
| 24 | + String getVersionString(); |
33 | 25 |
|
| 26 | + boolean modPresent(String modId); |
34 | 27 |
|
35 | | - default boolean modPresent(String modId) { |
36 | | - throw new AssertionError(); |
37 | | - } |
| 28 | + boolean isDevEnv(); |
38 | 29 |
|
39 | | - |
40 | | - default boolean isDevEnv() { |
41 | | - throw new AssertionError(); |
42 | | - } |
| 30 | + void injectPlatformSpecificHacks(); |
43 | 31 |
|
44 | | - |
45 | | - default void injectPlatformSpecificHacks() { |
46 | | - throw new AssertionError(); |
47 | | - } |
| 32 | + void applyASMTransformers(String mixinClassName, ClassNode targetClass); |
48 | 33 |
|
49 | | - |
50 | | - default void applyASMTransformers(String mixinClassName, ClassNode targetClass) { |
51 | | - throw new AssertionError(); |
52 | | - } |
| 34 | + MinecraftServer getCurrentServer(); |
53 | 35 |
|
54 | | - |
55 | | - default MinecraftServer getCurrentServer() { |
56 | | - throw new AssertionError(); |
57 | | - } |
| 36 | + boolean isEarlyLoadingNormally(); |
58 | 37 |
|
59 | | - |
60 | | - default boolean isEarlyLoadingNormally() { |
61 | | - throw new AssertionError(); |
62 | | - } |
| 38 | + boolean isLoadingNormally(); |
63 | 39 |
|
64 | | - |
65 | | - default boolean isLoadingNormally() { |
66 | | - throw new AssertionError(); |
67 | | - } |
| 40 | + Path getGameDirectory(); |
68 | 41 |
|
69 | | - default Path getGameDirectory() { |
70 | | - throw new AssertionError(); |
71 | | - } |
| 42 | + void sendPacket(ServerPlayer player, Object packet); |
72 | 43 |
|
73 | | - |
74 | | - default void sendPacket(ServerPlayer player, Object packet) { |
75 | | - throw new AssertionError(); |
76 | | - } |
| 44 | + Multimap<String, String> getCustomModOptions(); |
77 | 45 |
|
78 | | - |
79 | | - default void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler) { |
80 | | - throw new AssertionError(); |
81 | | - } |
| 46 | + void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler); |
82 | 47 |
|
83 | | - |
84 | | - default Multimap<String, String> getCustomModOptions() { |
85 | | - throw new AssertionError(); |
86 | | - } |
| 48 | + void onLaunchComplete(); |
87 | 49 |
|
88 | | - default void registerCreativeSearchTrees(SearchRegistry registry, SearchRegistry.TreeBuilderSupplier<ItemStack> nameSupplier, SearchRegistry.TreeBuilderSupplier<ItemStack> tagSupplier, BiConsumer<SearchRegistry.Key<ItemStack>, List<ItemStack>> populator) { |
89 | | - throw new AssertionError(); |
90 | | - } |
91 | | - |
92 | | - default void onLaunchComplete() { |
93 | | - throw new AssertionError(); |
94 | | - } |
| 50 | + void registerCreativeSearchTrees(SearchRegistry registry, SearchRegistry.TreeBuilderSupplier<ItemStack> nameSupplier, SearchRegistry.TreeBuilderSupplier<ItemStack> tagSupplier, BiConsumer<SearchRegistry.Key<ItemStack>, List<ItemStack>> populator); |
95 | 51 |
|
96 | | - default String getPlatformName() { |
97 | | - throw new AssertionError(); |
98 | | - } |
| 52 | + String getPlatformName(); |
99 | 53 | } |
0 commit comments