Package net.minecraftforge.network
Class NetworkProtocol<B extends FriendlyByteBuf>
java.lang.Object
net.minecraftforge.network.NetworkProtocol<B>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NetworkProtocol
<FriendlyByteBuf> static final NetworkProtocol
<FriendlyByteBuf> static final NetworkProtocol
<RegistryFriendlyByteBuf> private final ConnectionProtocol
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends PacketListener>
Packet<T> buildPacket
(PacketFlow direction, ResourceLocation name, Consumer<B> encoder) <T extends PacketListener,
MSG>
Packet<T> buildPacket
(PacketFlow direction, Channel<MSG> channel, MSG packet) toString()
-
Field Details
-
PLAY
-
LOGIN
-
CONFIGURATION
-
protocol
-
-
Constructor Details
-
NetworkProtocol
-
-
Method Details
-
toString
-
toVanilla
-
buildPacket
public <T extends PacketListener,MSG> Packet<T> buildPacket(PacketFlow direction, Channel<MSG> channel, MSG packet) -
buildPacket
public <T extends PacketListener> Packet<T> buildPacket(PacketFlow direction, ResourceLocation name, Consumer<B> encoder)
-