Class NetworkManagerImpl

java.lang.Object
dev.architectury.networking.forge.NetworkManagerImpl

public class NetworkManagerImpl extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canPlayerReceive(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceLocation id)
     
    static boolean
    canServerReceive(net.minecraft.resources.ResourceLocation id)
     
    static void
    collectPackets(dev.architectury.networking.transformers.PacketSink sink, dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buf)
     
    static net.minecraft.network.protocol.Packet<?>
    createAddEntityPacket(net.minecraft.world.entity.Entity entity)
     
    static void
    loggedIn(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event)
     
    static void
    loggedOut(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event)
     
    static void
    registerC2SReceiver(net.minecraft.resources.ResourceLocation id, List<dev.architectury.networking.transformers.PacketTransformer> packetTransformers, dev.architectury.networking.NetworkManager.NetworkReceiver receiver)
     
    static void
    registerReceiver(dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, List<dev.architectury.networking.transformers.PacketTransformer> packetTransformers, dev.architectury.networking.NetworkManager.NetworkReceiver receiver)
     
    static void
    registerS2CReceiver(net.minecraft.resources.ResourceLocation id, List<dev.architectury.networking.transformers.PacketTransformer> packetTransformers, dev.architectury.networking.NetworkManager.NetworkReceiver receiver)
     
    static net.minecraft.network.protocol.Packet<?>
    toPacket(dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NetworkManagerImpl

      public NetworkManagerImpl()
  • Method Details

    • registerReceiver

      public static void registerReceiver(dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, List<dev.architectury.networking.transformers.PacketTransformer> packetTransformers, dev.architectury.networking.NetworkManager.NetworkReceiver receiver)
    • toPacket

      public static net.minecraft.network.protocol.Packet<?> toPacket(dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buffer)
    • collectPackets

      public static void collectPackets(dev.architectury.networking.transformers.PacketSink sink, dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buf)
    • registerS2CReceiver

      public static void registerS2CReceiver(net.minecraft.resources.ResourceLocation id, List<dev.architectury.networking.transformers.PacketTransformer> packetTransformers, dev.architectury.networking.NetworkManager.NetworkReceiver receiver)
    • registerC2SReceiver

      public static void registerC2SReceiver(net.minecraft.resources.ResourceLocation id, List<dev.architectury.networking.transformers.PacketTransformer> packetTransformers, dev.architectury.networking.NetworkManager.NetworkReceiver receiver)
    • canServerReceive

      public static boolean canServerReceive(net.minecraft.resources.ResourceLocation id)
    • canPlayerReceive

      public static boolean canPlayerReceive(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceLocation id)
    • createAddEntityPacket

      public static net.minecraft.network.protocol.Packet<?> createAddEntityPacket(net.minecraft.world.entity.Entity entity)
    • loggedIn

      public static void loggedIn(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event)
    • loggedOut

      public static void loggedOut(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event)