All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magistuarmory.network.ModPackets Maven / Gradle / Ivy

There is a newer version: 8.10
Show newest version
package com.magistuarmory.network;

import dev.architectury.networking.NetworkManager;
import dev.architectury.platform.Platform;
import dev.architectury.utils.Env;

public class ModPackets
{
	public static void init()
	{
		NetworkManager.registerReceiver(NetworkManager.Side.C2S, PacketLongReachAttack.ID, PacketLongReachAttack::apply);
		NetworkManager.registerReceiver(NetworkManager.Side.C2S, PacketLanceCollision.ID, PacketLanceCollision::apply);
		if (Platform.getEnvironment() == Env.CLIENT)
			NetworkManager.registerReceiver(NetworkManager.Side.S2C, PacketBetterCombatOrEpicFightInstalled.ID, PacketBetterCombatOrEpicFightInstalled::apply);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy