Class NetworkManagerImpl

java.lang.Object
dev.architectury.networking.fabric.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<net.minecraft.network.protocol.game.ClientGamePacketListener>
    createAddEntityPacket(net.minecraft.world.entity.Entity entity)
     
    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 net.minecraft.network.protocol.Packet<?>
    toPacket(dev.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buf)
     

    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)
    • 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)
    • toPacket

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

      @Environment(CLIENT) 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<net.minecraft.network.protocol.game.ClientGamePacketListener> createAddEntityPacket(net.minecraft.world.entity.Entity entity)