Class NetworkManagerImpl
java.lang.Object
me.shedaniel.architectury.networking.forge.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
(me.shedaniel.architectury.networking.transformers.PacketSink sink, me.shedaniel.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<me.shedaniel.architectury.networking.transformers.PacketTransformer> packetTransformers, me.shedaniel.architectury.networking.NetworkManager.NetworkReceiver receiver) static void
registerReceiver
(me.shedaniel.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, List<me.shedaniel.architectury.networking.transformers.PacketTransformer> packetTransformers, me.shedaniel.architectury.networking.NetworkManager.NetworkReceiver receiver) static void
registerS2CReceiver
(net.minecraft.resources.ResourceLocation id, List<me.shedaniel.architectury.networking.transformers.PacketTransformer> packetTransformers, me.shedaniel.architectury.networking.NetworkManager.NetworkReceiver receiver) static net.minecraft.network.protocol.Packet<?>
toPacket
(me.shedaniel.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buffer)
-
Constructor Details
-
NetworkManagerImpl
public NetworkManagerImpl()
-
-
Method Details
-
registerReceiver
public static void registerReceiver(me.shedaniel.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, List<me.shedaniel.architectury.networking.transformers.PacketTransformer> packetTransformers, me.shedaniel.architectury.networking.NetworkManager.NetworkReceiver receiver) -
toPacket
public static net.minecraft.network.protocol.Packet<?> toPacket(me.shedaniel.architectury.networking.NetworkManager.Side side, net.minecraft.resources.ResourceLocation id, net.minecraft.network.FriendlyByteBuf buffer) -
collectPackets
public static void collectPackets(me.shedaniel.architectury.networking.transformers.PacketSink sink, me.shedaniel.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<me.shedaniel.architectury.networking.transformers.PacketTransformer> packetTransformers, me.shedaniel.architectury.networking.NetworkManager.NetworkReceiver receiver) -
registerC2SReceiver
public static void registerC2SReceiver(net.minecraft.resources.ResourceLocation id, List<me.shedaniel.architectury.networking.transformers.PacketTransformer> packetTransformers, me.shedaniel.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)
-