Interface ICustomPayloadEvent<T>
- Type Parameters:
T- The type of the channel, either Identifier or String.
public interface ICustomPayloadEvent<T>
An event fired when custom payloads to or from older servers are blocked by multiconnect.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe custom payload channel.net.minecraft.network.PacketByteBufgetData()The payload itself.net.minecraft.client.network.ClientPlayNetworkHandlerThe ClientPlayNetworkHandler that is being sent to or from.intThe protocol version that the server is on, to be compared with values inProtocols.
-
Method Details
-
getProtocol
int getProtocol()The protocol version that the server is on, to be compared with values inProtocols. -
getChannel
T getChannel()The custom payload channel. -
getData
net.minecraft.network.PacketByteBuf getData()The payload itself. -
getNetworkHandler
net.minecraft.client.network.ClientPlayNetworkHandler getNetworkHandler()The ClientPlayNetworkHandler that is being sent to or from.
-