Update legacy protocol support to v1.21.90

This commit is contained in:
AkmalFairuz
2025-06-18 23:54:54 +07:00
parent 8a209b75bf
commit fd5e43eea7
13 changed files with 9376 additions and 9 deletions

23
legacyver/v818.go Normal file
View File

@@ -0,0 +1,23 @@
package legacyver
import (
_ "embed"
"github.com/akmalfairuz/legacy-version/mapping"
)
const (
// ItemVersion818 ...
ItemVersion818 = 261
// BlockVersion818 ...
BlockVersion818 int32 = (1 << 24) | (21 << 16) | (90 << 8)
)
var (
//go:embed data/required_item_list_818.json
requiredItemList818 []byte
//go:embed data/block_states_818.nbt
blockStateData818 []byte
itemMappingLatest = mapping.NewItemMapping(requiredItemList818, ItemVersion818)
blockMappingLatest = mapping.NewBlockMapping(blockStateData818)
)