21 lines
473 B
Go
21 lines
473 B
Go
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{}
|
|
})
|
|
}
|