com.magistuarmory.network.ModPackets Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of 1.20.2-epic-knights-common Show documentation
Show all versions of 1.20.2-epic-knights-common Show documentation
mod that adds medieval stuff to the game
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);
}
}