Remove default impl from ModernFixPlatformHooks
This commit is contained in:
parent
acec6112cb
commit
df9d2fbe2f
|
|
@ -18,92 +18,42 @@ import java.util.function.Consumer;
|
||||||
public interface ModernFixPlatformHooks {
|
public interface ModernFixPlatformHooks {
|
||||||
ModernFixPlatformHooks INSTANCE = PlatformHookLoader.findInstance();
|
ModernFixPlatformHooks INSTANCE = PlatformHookLoader.findInstance();
|
||||||
|
|
||||||
default boolean isClient() {
|
boolean isClient();
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
default boolean isDedicatedServer() {
|
boolean isDedicatedServer();
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
default String getVersionString() {
|
String getVersionString();
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
boolean modPresent(String modId);
|
||||||
|
|
||||||
default boolean modPresent(String modId) {
|
boolean isDevEnv();
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
void injectPlatformSpecificHacks();
|
||||||
default boolean isDevEnv() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
void applyASMTransformers(String mixinClassName, ClassNode targetClass);
|
||||||
default void injectPlatformSpecificHacks() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
MinecraftServer getCurrentServer();
|
||||||
default void applyASMTransformers(String mixinClassName, ClassNode targetClass) {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
boolean isEarlyLoadingNormally();
|
||||||
default MinecraftServer getCurrentServer() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
boolean isLoadingNormally();
|
||||||
default boolean isEarlyLoadingNormally() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
TextureAtlasSprite loadTextureAtlasSprite(TextureAtlas atlasTexture,
|
||||||
default boolean isLoadingNormally() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
default TextureAtlasSprite loadTextureAtlasSprite(TextureAtlas atlasTexture,
|
|
||||||
ResourceManager resourceManager, TextureAtlasSprite.Info textureInfo,
|
ResourceManager resourceManager, TextureAtlasSprite.Info textureInfo,
|
||||||
Resource resource,
|
Resource resource,
|
||||||
int atlasWidth, int atlasHeight,
|
int atlasWidth, int atlasHeight,
|
||||||
int spriteX, int spriteY, int mipmapLevel,
|
int spriteX, int spriteY, int mipmapLevel,
|
||||||
NativeImage image) {
|
NativeImage image);
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Path getGameDirectory();
|
||||||
|
|
||||||
|
void sendPacket(ServerPlayer player, Object packet);
|
||||||
|
|
||||||
default Path getGameDirectory() {
|
void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler);
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Multimap<String, String> getCustomModOptions();
|
||||||
default void sendPacket(ServerPlayer player, Object packet) {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
void onLaunchComplete();
|
||||||
default void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler) {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
String getPlatformName();
|
||||||
default Multimap<String, String> getCustomModOptions() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
default void onLaunchComplete() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
default String getPlatformName() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user