Skip to content

Commit 200cf00

Browse files
committed
Merge 1.18 into 1.19.2
2 parents 88e0016 + 12c2214 commit 200cf00

File tree

1 file changed

+18
-68
lines changed

1 file changed

+18
-68
lines changed

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

Lines changed: 18 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -19,92 +19,42 @@
1919
public interface ModernFixPlatformHooks {
2020
ModernFixPlatformHooks INSTANCE = PlatformHookLoader.findInstance();
2121

22-
default boolean isClient() {
23-
throw new AssertionError();
24-
}
25-
22+
boolean isClient();
2623

27-
default boolean isDedicatedServer() {
28-
throw new AssertionError();
29-
}
30-
24+
boolean isDedicatedServer();
3125

32-
default String getVersionString() {
33-
throw new AssertionError();
34-
}
26+
String getVersionString();
3527

28+
boolean modPresent(String modId);
3629

37-
default boolean modPresent(String modId) {
38-
throw new AssertionError();
39-
}
30+
boolean isDevEnv();
4031

41-
42-
default boolean isDevEnv() {
43-
throw new AssertionError();
44-
}
32+
void injectPlatformSpecificHacks();
4533

46-
47-
default void injectPlatformSpecificHacks() {
48-
throw new AssertionError();
49-
}
34+
void applyASMTransformers(String mixinClassName, ClassNode targetClass);
5035

51-
52-
default void applyASMTransformers(String mixinClassName, ClassNode targetClass) {
53-
throw new AssertionError();
54-
}
36+
MinecraftServer getCurrentServer();
5537

56-
57-
default MinecraftServer getCurrentServer() {
58-
throw new AssertionError();
59-
}
60-
61-
62-
default boolean isEarlyLoadingNormally() {
63-
throw new AssertionError();
64-
}
38+
boolean isEarlyLoadingNormally();
6539

66-
67-
default boolean isLoadingNormally() {
68-
throw new AssertionError();
69-
}
40+
boolean isLoadingNormally();
7041

71-
72-
default TextureAtlasSprite loadTextureAtlasSprite(TextureAtlas atlasTexture,
42+
TextureAtlasSprite loadTextureAtlasSprite(TextureAtlas atlasTexture,
7343
ResourceManager resourceManager, TextureAtlasSprite.Info textureInfo,
7444
Resource resource,
7545
int atlasWidth, int atlasHeight,
7646
int spriteX, int spriteY, int mipmapLevel,
77-
NativeImage image) throws IOException {
78-
throw new AssertionError();
79-
}
80-
81-
82-
default Path getGameDirectory() {
83-
throw new AssertionError();
84-
}
85-
86-
87-
default void sendPacket(ServerPlayer player, Object packet) {
88-
throw new AssertionError();
89-
}
47+
NativeImage image) throws IOException;
9048

91-
92-
default void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler) {
93-
throw new AssertionError();
94-
}
49+
Path getGameDirectory();
9550

51+
void sendPacket(ServerPlayer player, Object packet);
9652

97-
default Multimap<String, String> getCustomModOptions() {
98-
throw new AssertionError();
99-
}
53+
void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler);
10054

101-
102-
default void onLaunchComplete() {
55+
Multimap<String, String> getCustomModOptions();
10356

104-
}
57+
void onLaunchComplete();
10558

106-
107-
default String getPlatformName() {
108-
throw new AssertionError();
109-
}
59+
String getPlatformName();
11060
}

0 commit comments

Comments
 (0)