Initial commit

This commit is contained in:
SantianDev
2026-03-03 15:05:55 +03:00
commit a9c89f027a
37 changed files with 3256 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package bedrock
import (
"github.com/cubexteam/Frodding/net/info"
"github.com/cubexteam/Frodding/net/packets"
)
type SetGameModePacket struct {
*packets.Packet
GameMode int32
}
func NewSetGameModePacket(gm int32) *SetGameModePacket {
return &SetGameModePacket{
Packet: packets.NewPacket(info.IDSetGameMode),
GameMode: gm,
}
}
func (pk *SetGameModePacket) Encode() {
pk.PutVarInt(pk.GameMode)
}
func (pk *SetGameModePacket) Decode() {}