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 # suppress inspection "UnusedProperty" for whole file
# rip my ram # rip my ram
org.gradle.jvmargs=-Xms32M -Xmx4G org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication
org.gradle.workers.max=4
org.gradle.parallel=true org.gradle.parallel=true
loader_version=0.13.3 loader_version=0.14.6
viaver_version=4.3.0-22w18a-SNAPSHOT viaver_version=4.3.0-1.19-pre1-SNAPSHOT
yaml_version=1.30 yaml_version=1.30

View File

@ -1,7 +1,7 @@
dependencies { dependencies {
minecraft("com.mojang:minecraft:22w18a") minecraft("com.mojang:minecraft:1.19-pre1")
mappings("net.fabricmc:yarn:22w18a+build.6:v2") mappings("net.fabricmc:yarn:1.19-pre1+build.7:v2")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.51.2+1.19") modImplementation("net.fabricmc.fabric-api:fabric-api:0.53.1+1.19")
modImplementation("com.terraformersmc:modmenu:3.0.0") 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 io.netty.channel.EventLoop;
import net.fabricmc.api.EnvType; import net.fabricmc.api.EnvType;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.command.v1.ClientCommandManager; import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
import net.fabricmc.fabric.api.command.v1.CommandRegistrationCallback; import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.loader.api.FabricLoader; import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.command.CommandSource; import net.minecraft.command.CommandSource;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
@ -89,9 +89,9 @@ public class ViaFabric implements ModInitializer {
private void registerCommandsV1() { private void registerCommandsV1() {
try { try {
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> dispatcher.register(command("viaversion"))); CommandRegistrationCallback.EVENT.register((dispatcher, dedicated, env) -> dispatcher.register(command("viaversion")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> dispatcher.register(command("viaver"))); CommandRegistrationCallback.EVENT.register((dispatcher, dedicated, env) -> dispatcher.register(command("viaver")));
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> dispatcher.register(command("vvfabric"))); CommandRegistrationCallback.EVENT.register((dispatcher, dedicated, env) -> dispatcher.register(command("vvfabric")));
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) { if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) {
ClientCommandManager.DISPATCHER.register(command("viafabricclient")); ClientCommandManager.DISPATCHER.register(command("viafabricclient"));
} }

View File

@ -1,7 +1,7 @@
package com.viaversion.fabric.mc119.commands; package com.viaversion.fabric.mc119.commands;
import com.viaversion.fabric.common.util.RemappingUtil; 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.command.CommandSource;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.server.command.ServerCommandSource; 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.MinecraftClient;
import net.minecraft.client.gui.screen.ConfirmScreen; import net.minecraft.client.gui.screen.ConfirmScreen;
import net.minecraft.client.gui.screen.Screen; 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.ButtonWidget;
import net.minecraft.client.gui.widget.TextFieldWidget; import net.minecraft.client.gui.widget.TextFieldWidget;
import net.minecraft.client.util.math.MatrixStack; import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.screen.ScreenTexts;
import net.minecraft.text.Text; import net.minecraft.text.Text;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;

View File

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