Class NetworkManagerImpl
java.lang.Object
dev.architectury.networking.fabric.NetworkManagerImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
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)
-