Merge 1.19.4 into 1.20

This commit is contained in:
embeddedt 2023-08-02 22:18:19 -04:00
commit bf5ca2f3cd
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -17,83 +17,37 @@ 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();
} boolean isDedicatedServer();
String getVersionString();
default boolean isDedicatedServer() {
throw new AssertionError(); boolean modPresent(String modId);
}
boolean isDevEnv();
default String getVersionString() { void injectPlatformSpecificHacks();
throw new AssertionError();
} void applyASMTransformers(String mixinClassName, ClassNode targetClass);
MinecraftServer getCurrentServer();
default boolean modPresent(String modId) {
throw new AssertionError(); boolean isEarlyLoadingNormally();
}
boolean isLoadingNormally();
default boolean isDevEnv() { Path getGameDirectory();
throw new AssertionError();
} void sendPacket(ServerPlayer player, Object packet);
Multimap<String, String> getCustomModOptions();
default void injectPlatformSpecificHacks() {
throw new AssertionError(); void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler);
}
void onLaunchComplete();
default void applyASMTransformers(String mixinClassName, ClassNode targetClass) { void registerCreativeSearchTrees(SearchRegistry registry, SearchRegistry.TreeBuilderSupplier<ItemStack> nameSupplier, SearchRegistry.TreeBuilderSupplier<ItemStack> tagSupplier, BiConsumer<SearchRegistry.Key<ItemStack>, List<ItemStack>> populator);
throw new AssertionError();
} String getPlatformName();
default MinecraftServer getCurrentServer() {
throw new AssertionError();
}
default boolean isEarlyLoadingNormally() {
throw new AssertionError();
}
default boolean isLoadingNormally() {
throw new AssertionError();
}
default Path getGameDirectory() {
throw new AssertionError();
}
default void sendPacket(ServerPlayer player, Object packet) {
throw new AssertionError();
}
default void onServerCommandRegister(Consumer<CommandDispatcher<CommandSourceStack>> handler) {
throw new AssertionError();
}
default Multimap<String, String> getCustomModOptions() {
throw new AssertionError();
}
default void registerCreativeSearchTrees(SearchRegistry registry, SearchRegistry.TreeBuilderSupplier<ItemStack> nameSupplier, SearchRegistry.TreeBuilderSupplier<ItemStack> tagSupplier, BiConsumer<SearchRegistry.Key<ItemStack>, List<ItemStack>> populator) {
throw new AssertionError();
}
default void onLaunchComplete() {
throw new AssertionError();
}
default String getPlatformName() {
throw new AssertionError();
}
} }