Repackage legacy fabric platforms

This commit is contained in:
FlorianMichael 2024-04-21 16:29:57 +02:00
parent 2aced1f5f5
commit 5651643360
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
62 changed files with 108 additions and 112 deletions

View File

@ -15,18 +15,17 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18;
package com.viaversion.fabric.mc1122;
import com.google.common.collect.Range;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.viaversion.fabric.common.config.VFConfig;
import com.viaversion.fabric.common.platform.FabricInjector;
import com.viaversion.fabric.common.protocol.HostnameParserProtocol;
import com.viaversion.fabric.common.util.JLoggerToLog4j;
import com.viaversion.fabric.mc18.commands.NMSCommandImpl;
import com.viaversion.fabric.mc18.commands.VFCommandHandler;
import com.viaversion.fabric.mc18.platform.FabricPlatform;
import com.viaversion.fabric.mc18.platform.VFLoader;
import com.viaversion.fabric.mc1122.commands.NMSCommandImpl;
import com.viaversion.fabric.mc1122.commands.VFCommandHandler;
import com.viaversion.fabric.mc1122.platform.FabricPlatform;
import com.viaversion.fabric.mc1122.platform.VFLoader;
import com.viaversion.viaversion.ViaManagerImpl;
import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;

View File

@ -15,10 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.commands;
package com.viaversion.fabric.mc1122.commands;
import net.minecraft.command.AbstractCommand;
import net.minecraft.command.CommandException;
import net.minecraft.command.CommandSource;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.commands;
package com.viaversion.fabric.mc1122.commands;
import com.viaversion.viaversion.api.command.ViaCommandSender;
import com.viaversion.viaversion.util.ComponentUtil;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.commands;
package com.viaversion.fabric.mc1122.commands;
import com.viaversion.fabric.common.commands.subs.LeakDetectSubCommand;
import com.viaversion.viaversion.commands.ViaCommandHandler;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.gui;
package com.viaversion.fabric.mc1122.gui;
import net.minecraft.client.gui.widget.PagedEntryListWidget;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.gui;
package com.viaversion.fabric.mc1122.gui;
import net.minecraft.client.gui.widget.ButtonWidget;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.gui;
package com.viaversion.fabric.mc1122.gui;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.client.MinecraftClient;

View File

@ -15,10 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.gui;
package com.viaversion.fabric.mc1122.gui;
import com.viaversion.fabric.common.config.AbstractViaConfigScreen;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.fabric.common.util.ProtocolUtils;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import net.fabricmc.api.EnvType;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.address.client;
package com.viaversion.fabric.mc1122.mixin.address.client;
import com.viaversion.fabric.common.AddressParser;
import org.spongepowered.asm.mixin.Mixin;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.address.client;
package com.viaversion.fabric.mc1122.mixin.address.client;
import com.viaversion.fabric.common.AddressParser;
import net.minecraft.network.ServerAddress;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.address.client;
package com.viaversion.fabric.mc1122.mixin.address.client;
import com.viaversion.fabric.common.AddressParser;
import net.minecraft.client.network.MultiplayerServerListPinger;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.debug.client;
package com.viaversion.fabric.mc1122.mixin.debug.client;
import io.netty.channel.ChannelHandlerContext;
import net.minecraft.network.ClientConnection;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.debug.client;
package com.viaversion.fabric.mc1122.mixin.debug.client;
import io.netty.channel.Channel;
import net.minecraft.network.ClientConnection;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.debug.client;
package com.viaversion.fabric.mc1122.mixin.debug.client;
import com.viaversion.fabric.common.handler.CommonTransformer;
import com.viaversion.fabric.common.handler.FabricDecodeHandler;

View File

@ -15,11 +15,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.gui.client;
package com.viaversion.fabric.mc1122.mixin.gui.client;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc112.gui.ViaButton;
import com.viaversion.fabric.mc112.gui.ViaConfigScreen;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.fabric.mc1122.gui.ViaButton;
import com.viaversion.fabric.mc1122.gui.ViaConfigScreen;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.multiplayer.MultiplayerScreen;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.pipeline;
package com.viaversion.fabric.mc1122.mixin.pipeline;
import com.viaversion.fabric.common.handler.PipelineReorderEvent;
import io.netty.channel.Channel;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.pipeline;
package com.viaversion.fabric.mc1122.mixin.pipeline;
import com.viaversion.fabric.common.handler.CommonTransformer;
import com.viaversion.fabric.common.handler.FabricDecodeHandler;

View File

@ -15,10 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.pipeline.client;
package com.viaversion.fabric.mc1122.mixin.pipeline.client;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc18.service.ProtocolAutoDetector;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.fabric.mc1122.service.ProtocolAutoDetector;
import net.minecraft.network.ClientConnection;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.pipeline.client;
package com.viaversion.fabric.mc1122.mixin.pipeline.client;
import com.viaversion.fabric.common.handler.FabricDecodeHandler;
import com.viaversion.fabric.common.handler.FabricEncodeHandler;

View File

@ -1,6 +1,6 @@
package com.viaversion.fabric.mc112.mixin.pipeline.client;
package com.viaversion.fabric.mc1122.mixin.pipeline.client;
import com.viaversion.fabric.mc112.service.ProtocolAutoDetector;
import com.viaversion.fabric.mc1122.service.ProtocolAutoDetector;
import net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.platform;
package com.viaversion.fabric.mc1122.platform;
import com.viaversion.fabric.common.platform.NativeVersionProvider;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
@ -24,7 +24,6 @@ import net.fabricmc.api.Environment;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.client.MinecraftClient;
import net.minecraft.realms.RealmsSharedConstants;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.ServerMetadata;
public class FabricNativeVersionProvider implements NativeVersionProvider {

View File

@ -15,14 +15,14 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.platform;
package com.viaversion.fabric.mc1122.platform;
import com.viaversion.fabric.common.commands.UserCommandSender;
import com.viaversion.fabric.common.platform.NativeVersionProvider;
import com.viaversion.fabric.common.provider.AbstractFabricPlatform;
import com.viaversion.fabric.common.util.FutureTaskId;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc112.commands.NMSCommandSender;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.fabric.mc1122.commands.NMSCommandSender;
import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.command.ViaCommandSender;
import com.viaversion.viaversion.util.ComponentUtil;

View File

@ -15,10 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.platform;
package com.viaversion.fabric.mc1122.platform;
import com.viaversion.fabric.mc18.providers.VFHandItemProvider;
import com.viaversion.fabric.mc18.providers.FabricVersionProvider;
import com.viaversion.fabric.mc1122.providers.VFHandItemProvider;
import com.viaversion.fabric.mc1122.providers.FabricVersionProvider;
import net.fabricmc.api.EnvType;
import net.fabricmc.loader.api.FabricLoader;
import com.viaversion.viaversion.api.Via;

View File

@ -15,12 +15,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.providers;
package com.viaversion.fabric.mc1122.providers;
import com.viaversion.fabric.common.config.VFConfig;
import com.viaversion.fabric.common.provider.AbstractFabricVersionProvider;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc112.service.ProtocolAutoDetector;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.fabric.mc1122.service.ProtocolAutoDetector;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import java.net.InetSocketAddress;

View File

@ -15,9 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.providers;
package com.viaversion.fabric.mc1122.providers;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.minecraft.item.DataItem;
import com.viaversion.viaversion.api.minecraft.item.Item;

View File

@ -15,9 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.service;
package com.viaversion.fabric.mc1122.service;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc1122.ViaFabric;
import com.viaversion.fabric.common.AddressParser;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;

View File

@ -39,7 +39,7 @@
],
"entrypoints": {
"main": [
"com.viaversion.fabric.mc112.ViaFabric"
"com.viaversion.fabric.mc1122.ViaFabric"
]
},
"depends": {
@ -51,9 +51,9 @@
"legacy-fabric-command-api-v1": "*"
},
"mixins": [
"mixins.viafabric112.address.json",
"mixins.viafabric112.gui.json",
"mixins.viafabric112.debug.json",
"mixins.viafabric112.pipeline.json"
"mixins.viafabric1122.address.json",
"mixins.viafabric1122.gui.json",
"mixins.viafabric1122.debug.json",
"mixins.viafabric1122.pipeline.json"
]
}

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc18.mixin.address",
"package": "com.viaversion.fabric.mc1122.mixin.address",
"mixins": [
],
"client": [

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc112.mixin.debug",
"package": "com.viaversion.fabric.mc1122.mixin.debug",
"mixins": [
],
"client": [

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc112.mixin.gui",
"package": "com.viaversion.fabric.mc1122.mixin.gui",
"mixins": [
],
"client": [

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc112.mixin.pipeline",
"package": "com.viaversion.fabric.mc1122.mixin.pipeline",
"mixins": [
"MixinClientConnection",
"MixinServerNetworkIoChInit"

View File

@ -15,18 +15,17 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112;
package com.viaversion.fabric.mc189;
import com.google.common.collect.Range;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.viaversion.fabric.common.config.VFConfig;
import com.viaversion.fabric.common.platform.FabricInjector;
import com.viaversion.fabric.common.protocol.HostnameParserProtocol;
import com.viaversion.fabric.common.util.JLoggerToLog4j;
import com.viaversion.fabric.mc112.commands.NMSCommandImpl;
import com.viaversion.fabric.mc112.commands.VFCommandHandler;
import com.viaversion.fabric.mc112.platform.FabricPlatform;
import com.viaversion.fabric.mc112.platform.VFLoader;
import com.viaversion.fabric.mc189.commands.NMSCommandImpl;
import com.viaversion.fabric.mc189.commands.VFCommandHandler;
import com.viaversion.fabric.mc189.platform.FabricPlatform;
import com.viaversion.fabric.mc189.platform.VFLoader;
import com.viaversion.viaversion.ViaManagerImpl;
import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.commands;
package com.viaversion.fabric.mc189.commands;
import net.minecraft.command.AbstractCommand;
import net.minecraft.command.CommandSource;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.commands;
package com.viaversion.fabric.mc189.commands;
import com.viaversion.viaversion.api.command.ViaCommandSender;
import com.viaversion.viaversion.util.ComponentUtil;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.commands;
package com.viaversion.fabric.mc189.commands;
import com.viaversion.fabric.common.commands.subs.LeakDetectSubCommand;
import com.viaversion.viaversion.commands.ViaCommandHandler;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.gui;
package com.viaversion.fabric.mc189.gui;
import net.minecraft.client.gui.widget.PagedEntryListWidget;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.gui;
package com.viaversion.fabric.mc189.gui;
import net.minecraft.client.gui.widget.ButtonWidget;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.gui;
package com.viaversion.fabric.mc189.gui;
import io.github.prospector.modmenu.api.ModMenuApi;
import net.minecraft.client.gui.screen.Screen;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.gui;
package com.viaversion.fabric.mc189.gui;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.client.MinecraftClient;

View File

@ -15,10 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.gui;
package com.viaversion.fabric.mc189.gui;
import com.viaversion.fabric.common.config.AbstractViaConfigScreen;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.fabric.common.util.ProtocolUtils;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import net.fabricmc.api.EnvType;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.address.client;
package com.viaversion.fabric.mc189.mixin.address.client;
import com.viaversion.fabric.common.AddressParser;
import org.spongepowered.asm.mixin.Mixin;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.address.client;
package com.viaversion.fabric.mc189.mixin.address.client;
import com.viaversion.fabric.common.AddressParser;
import net.minecraft.network.ServerAddress;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.address.client;
package com.viaversion.fabric.mc189.mixin.address.client;
import com.viaversion.fabric.common.AddressParser;
import net.minecraft.client.network.MultiplayerServerListPinger;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.debug.client;
package com.viaversion.fabric.mc189.mixin.debug.client;
import io.netty.channel.ChannelHandlerContext;
import net.minecraft.network.ClientConnection;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.debug.client;
package com.viaversion.fabric.mc189.mixin.debug.client;
import io.netty.channel.Channel;
import net.minecraft.network.ClientConnection;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.debug.client;
package com.viaversion.fabric.mc189.mixin.debug.client;
import com.viaversion.fabric.common.handler.CommonTransformer;
import com.viaversion.fabric.common.handler.FabricDecodeHandler;

View File

@ -15,11 +15,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.gui.client;
package com.viaversion.fabric.mc189.mixin.gui.client;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc18.gui.ViaButton;
import com.viaversion.fabric.mc18.gui.ViaConfigScreen;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.fabric.mc189.gui.ViaButton;
import com.viaversion.fabric.mc189.gui.ViaConfigScreen;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.multiplayer.MultiplayerScreen;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.pipeline;
package com.viaversion.fabric.mc189.mixin.pipeline;
import com.viaversion.fabric.common.handler.PipelineReorderEvent;
import io.netty.channel.Channel;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.mixin.pipeline;
package com.viaversion.fabric.mc189.mixin.pipeline;
import com.viaversion.fabric.common.handler.CommonTransformer;
import com.viaversion.fabric.common.handler.FabricDecodeHandler;

View File

@ -15,10 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.pipeline.client;
package com.viaversion.fabric.mc189.mixin.pipeline.client;
import com.viaversion.fabric.mc112.ViaFabric;
import com.viaversion.fabric.mc112.service.ProtocolAutoDetector;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.fabric.mc189.service.ProtocolAutoDetector;
import net.minecraft.network.ClientConnection;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.mixin.pipeline.client;
package com.viaversion.fabric.mc189.mixin.pipeline.client;
import com.viaversion.fabric.common.handler.FabricDecodeHandler;
import com.viaversion.fabric.common.handler.FabricEncodeHandler;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.platform;
package com.viaversion.fabric.mc189.platform;
import com.viaversion.fabric.common.platform.NativeVersionProvider;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;

View File

@ -15,14 +15,14 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.platform;
package com.viaversion.fabric.mc189.platform;
import com.viaversion.fabric.common.commands.UserCommandSender;
import com.viaversion.fabric.common.platform.NativeVersionProvider;
import com.viaversion.fabric.common.provider.AbstractFabricPlatform;
import com.viaversion.fabric.common.util.FutureTaskId;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc18.commands.NMSCommandSender;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.fabric.mc189.commands.NMSCommandSender;
import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.command.ViaCommandSender;
import com.viaversion.viaversion.util.ComponentUtil;

View File

@ -15,10 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc112.platform;
package com.viaversion.fabric.mc189.platform;
import com.viaversion.fabric.mc112.providers.VFHandItemProvider;
import com.viaversion.fabric.mc112.providers.FabricVersionProvider;
import com.viaversion.fabric.mc189.providers.VFHandItemProvider;
import com.viaversion.fabric.mc189.providers.FabricVersionProvider;
import net.fabricmc.api.EnvType;
import net.fabricmc.loader.api.FabricLoader;
import com.viaversion.viaversion.api.Via;

View File

@ -15,12 +15,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.providers;
package com.viaversion.fabric.mc189.providers;
import com.viaversion.fabric.common.config.VFConfig;
import com.viaversion.fabric.common.provider.AbstractFabricVersionProvider;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc18.service.ProtocolAutoDetector;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.fabric.mc189.service.ProtocolAutoDetector;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import java.net.InetSocketAddress;

View File

@ -15,9 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.providers;
package com.viaversion.fabric.mc189.providers;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.minecraft.item.DataItem;
import com.viaversion.viaversion.api.minecraft.item.Item;

View File

@ -15,9 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.fabric.mc18.service;
package com.viaversion.fabric.mc189.service;
import com.viaversion.fabric.mc18.ViaFabric;
import com.viaversion.fabric.mc189.ViaFabric;
import com.viaversion.fabric.common.AddressParser;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;

View File

@ -47,10 +47,10 @@
],
"entrypoints": {
"main": [
"com.viaversion.fabric.mc18.ViaFabric"
"com.viaversion.fabric.mc189.ViaFabric"
],
"modmenu": [
"com.viaversion.fabric.mc18.gui.ModMenuConfig"
"com.viaversion.fabric.mc189.gui.ModMenuConfig"
]
},
"depends": {
@ -62,10 +62,10 @@
"legacy-fabric-command-api-v1": "*"
},
"mixins": [
"mixins.viafabric18.address.json",
"mixins.viafabric18.gui.json",
"mixins.viafabric18.debug.json",
"mixins.viafabric18.pipeline.json"
"mixins.viafabric189.address.json",
"mixins.viafabric189.gui.json",
"mixins.viafabric189.debug.json",
"mixins.viafabric189.pipeline.json"
],
"custom": {
"modmenu": {

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc112.mixin.address",
"package": "com.viaversion.fabric.mc189.mixin.address",
"mixins": [
],
"client": [

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc18.mixin.debug",
"package": "com.viaversion.fabric.mc189.mixin.debug",
"mixins": [
],
"client": [

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc18.mixin.gui",
"package": "com.viaversion.fabric.mc189.mixin.gui",
"mixins": [
],
"client": [

View File

@ -1,7 +1,7 @@
{
"required": true,
"compatibilityLevel": "JAVA_8",
"package": "com.viaversion.fabric.mc18.mixin.pipeline",
"package": "com.viaversion.fabric.mc189.mixin.pipeline",
"mixins": [
"MixinClientConnection",
"MixinServerNetworkIoChInit"