refactor package
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ContainerSlotStateChanged struct {
|
||||
SlotID int32 `mc:"VarInt"`
|
||||
WindowID int32 `mc:"VarInt"`
|
||||
State bool
|
||||
}
|
||||
|
||||
func (ContainerSlotStateChanged) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundContainerSlotStateChanged
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundContainerSlotStateChanged, func() ServerboundPacket {
|
||||
return &ContainerSlotStateChanged{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user