Skip to content

Commit 23ffdab

Browse files
committed
Merge remote-tracking branch 'origin/1.19.2' into 1.19.4
2 parents 942b7cb + 200cf00 commit 23ffdab

File tree

1 file changed

+17
-63
lines changed

1 file changed

+17
-63
lines changed

common/src/main/java/org/embeddedt/modernfix/platform/ModernFixPlatformHooks.java

Lines changed: 17 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -17,83 +17,37 @@
1717
public interface ModernFixPlatformHooks {
1818
ModernFixPlatformHooks INSTANCE = PlatformHookLoader.findInstance();
1919

20-
default boolean isClient() {
21-
throw new AssertionError();
22-
}
23-
20+
boolean isClient();
2421

25-
default boolean isDedicatedServer() {
26-
throw new AssertionError();
27-
}
28-
22+
boolean isDedicatedServer();
2923

30-
default String getVersionString() {
31-
throw new AssertionError();
32-
}
24+
String getVersionString();
3325

26+
boolean modPresent(String modId);
3427

35-
default boolean modPresent(String modId) {
36-
throw new AssertionError();
37-
}
28+
boolean isDevEnv();
3829

39-
40-
default boolean isDevEnv() {
41-
throw new AssertionError();
42-
}
30+
void injectPlatformSpecificHacks();
4331

44-
45-
default void injectPlatformSpecificHacks() {
46-
throw new AssertionError();
47-
}
32+
void applyASMTransformers(String mixinClassName, ClassNode targetClass);
4833

49-
50-
default void applyASMTransformers(String mixinClassName, ClassNode targetClass) {
51-
throw new AssertionError();
52-
}
34+
MinecraftServer getCurrentServer();
5335

54-
55-
default MinecraftServer getCurrentServer() {
56-
throw new AssertionError();
57-
}
36+
boolean isEarlyLoadingNormally();
5837

59-
60-
default boolean isEarlyLoadingNormally() {
61-
throw new AssertionError();
62-
}
38+
boolean isLoadingNormally();
6339

64-
65-
default boolean isLoadingNormally() {
66-
throw new AssertionError();
67-
}
40+
Path getGameDirectory();
6841

69-
default Path getGameDirectory() {
70-
throw new AssertionError();
71-
}
42+
void sendPacket(ServerPlayer player, Object packet);
7243

73-
74-
default void sendPacket(ServerPlayer player, Object packet) {
75-
throw new AssertionError();
76-
}
44+
Multimap<String, String> getCustomModOptions();
7745

78-
79-
default void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler) {
80-
throw new AssertionError();
81-
}
46+
void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler);
8247

83-
84-
default Multimap<String, String> getCustomModOptions() {
85-
throw new AssertionError();
86-
}
48+
void onLaunchComplete();
8749

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);
9551

96-
default String getPlatformName() {
97-
throw new AssertionError();
98-
}
52+
String getPlatformName();
9953
}

0 commit comments

Comments
 (0)