Package codechicken.lib.packet
Class PacketCustomChannel
java.lang.Object
codechicken.lib.packet.PacketCustomChannel
Created by covers1624 on 3/7/24.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientConfiguration(Supplier<Supplier<ICustomPacketHandler.IClientConfigurationPacketHandler>> supplier) voidinit(net.neoforged.bus.api.IEventBus modBus) optional()
-
Field Details
-
channel
public final net.minecraft.resources.ResourceLocation channel
-
-
Constructor Details
-
PacketCustomChannel
public PacketCustomChannel(net.minecraft.resources.ResourceLocation channel)
-
-
Method Details
-
versioned
-
optional
-
clientConfiguration
public PacketCustomChannel clientConfiguration(Supplier<Supplier<ICustomPacketHandler.IClientConfigurationPacketHandler>> supplier) -
client
public PacketCustomChannel client(Supplier<Supplier<ICustomPacketHandler.IClientPacketHandler>> supplier) -
server
public PacketCustomChannel server(Supplier<Supplier<ICustomPacketHandler.IServerPacketHandler>> supplier) -
init
public void init(net.neoforged.bus.api.IEventBus modBus)
-