1.19-pre1

This commit is contained in:
creeper123123321 2022-05-22 12:04:22 -03:00
parent 6cb0da6682
commit 960d9cf372
6 changed files with 15 additions and 16 deletions

View File

@ -1,9 +1,8 @@
# suppress inspection "UnusedProperty" for whole file
# rip my ram
org.gradle.jvmargs=-Xms32M -Xmx4G
org.gradle.workers.max=4
org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication
org.gradle.parallel=true
loader_version=0.13.3
viaver_version=4.3.0-22w18a-SNAPSHOT
loader_version=0.14.6
viaver_version=4.3.0-1.19-pre1-SNAPSHOT
yaml_version=1.30

View File

@ -1,7 +1,7 @@
dependencies {
minecraft("com.mojang:minecraft:22w18a")
mappings("net.fabricmc:yarn:22w18a+build.6:v2")
minecraft("com.mojang:minecraft:1.19-pre1")
mappings("net.fabricmc:yarn:1.19-pre1+build.7:v2")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.51.2+1.19")
modImplementation("com.terraformersmc:modmenu:3.0.0")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.53.1+1.19")
modImplementation("com.terraformersmc:modmenu:4.0.0-beta.4")
}

View File

@ -20,8 +20,8 @@ import io.netty.channel.DefaultEventLoop;
import io.netty.channel.EventLoop;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.command.v1.ClientCommandManager;
import net.fabricmc.fabric.api.command.v1.CommandRegistrationCallback;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.command.CommandSource;
import org.apache.logging.log4j.LogManager;
@ -89,9 +89,9 @@ public class ViaFabric implements ModInitializer {
private void registerCommandsV1() {
try {
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> dispatcher.register(command("viaversion")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> dispatcher.register(command("viaver")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> dispatcher.register(command("vvfabric")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated, env) -> dispatcher.register(command("viaversion")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated, env) -> dispatcher.register(command("viaver")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated, env) -> dispatcher.register(command("vvfabric")));
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) {
ClientCommandManager.DISPATCHER.register(command("viafabricclient"));
}

View File

@ -1,7 +1,7 @@
package com.viaversion.fabric.mc119.commands;
import com.viaversion.fabric.common.util.RemappingUtil;
import net.fabricmc.fabric.api.client.command.v1.FabricClientCommandSource;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
import net.minecraft.command.CommandSource;
import net.minecraft.entity.Entity;
import net.minecraft.server.command.ServerCommandSource;

View File

@ -8,10 +8,10 @@ import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.ConfirmScreen;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.ScreenTexts;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.gui.widget.TextFieldWidget;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.screen.ScreenTexts;
import net.minecraft.text.Text;
import java.util.concurrent.CompletableFuture;

View File

@ -44,7 +44,7 @@
"viafabric": "*"
},
"recommends": {
"fabric-command-api-v1": "*"
"fabric-command-api-v2": "*"
},
"mixins": [
"mixins.viafabric119.address.json",