PacketMode
Namespace Mc.Scripting · Kind enum
public enum PacketMode : intHow a packet handler is called (see Packets.On,Mc.Scripting.PacketMode,Mc.Scripting.EventPriority)}}).
Members
Section titled “Members”| Name | Value | Description |
|---|---|---|
Observe |
0 | A copy of the packet after the fact: the handler cannot change or cancel it, and nothing waits for it. |
Intercept |
1 | The handler runs before the packet goes on and may cancel it or change its fields. The engine waits for the answer within a small budget; when none comes in time the packet goes on unchanged. |