up3
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package session
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/world"
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol/packet"
|
||||
)
|
||||
|
||||
// packetHandler represents a type that is able to handle a specific type of incoming packets from the client.
|
||||
type packetHandler interface {
|
||||
// Handle handles an incoming packet from the client. The session of the client is passed to the packetHandler.
|
||||
// Handle returns an error if the packet was in any way invalid.
|
||||
Handle(p packet.Packet, s *Session, tx *world.Tx, c Controllable) error
|
||||
}
|
||||
Reference in New Issue
Block a user