update data package for 1.17
This commit is contained in:
@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
protocolURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.16.2/protocol.json"
|
||||
protocolURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.17/protocol.json"
|
||||
packetidTmpl = `// This file is automatically generated by gen_packetIDs.go. DO NOT EDIT.
|
||||
|
||||
package packetid
|
||||
|
@ -36,93 +36,104 @@ const (
|
||||
SpawnEntityLiving = 0x2
|
||||
SpawnEntityPainting = 0x3
|
||||
NamedEntitySpawn = 0x4
|
||||
Animation = 0x5
|
||||
Statistics = 0x6
|
||||
AcknowledgePlayerDigging = 0x7
|
||||
BlockBreakAnimation = 0x8
|
||||
TileEntityData = 0x9
|
||||
BlockAction = 0xa
|
||||
BlockChange = 0xb
|
||||
BossBar = 0xc
|
||||
Difficulty = 0xd
|
||||
ChatClientbound = 0xe
|
||||
TabCompleteClientbound = 0xf
|
||||
DeclareCommands = 0x10
|
||||
TransactionClientbound = 0x11
|
||||
CloseWindowClientbound = 0x12
|
||||
WindowItems = 0x13
|
||||
CraftProgressBar = 0x14
|
||||
SetSlot = 0x15
|
||||
SetCooldown = 0x16
|
||||
CustomPayloadClientbound = 0x17
|
||||
NamedSoundEffect = 0x18
|
||||
KickDisconnect = 0x19
|
||||
EntityStatus = 0x1a
|
||||
Explosion = 0x1b
|
||||
UnloadChunk = 0x1c
|
||||
GameStateChange = 0x1d
|
||||
OpenHorseWindow = 0x1e
|
||||
KeepAliveClientbound = 0x1f
|
||||
MapChunk = 0x20
|
||||
WorldEvent = 0x21
|
||||
WorldParticles = 0x22
|
||||
UpdateLight = 0x23
|
||||
Login = 0x24
|
||||
Map = 0x25
|
||||
TradeList = 0x26
|
||||
RelEntityMove = 0x27
|
||||
EntityMoveLook = 0x28
|
||||
EntityLook = 0x29
|
||||
Entity = 0x2a
|
||||
VehicleMoveClientbound = 0x2b
|
||||
OpenBook = 0x2c
|
||||
OpenWindow = 0x2d
|
||||
OpenSignEntity = 0x2e
|
||||
CraftRecipeResponse = 0x2f
|
||||
AbilitiesClientbound = 0x30
|
||||
CombatEvent = 0x31
|
||||
PlayerInfo = 0x32
|
||||
FacePlayer = 0x33
|
||||
PositionClientbound = 0x34
|
||||
UnlockRecipes = 0x35
|
||||
EntityDestroy = 0x36
|
||||
RemoveEntityEffect = 0x37
|
||||
ResourcePackSend = 0x38
|
||||
Respawn = 0x39
|
||||
EntityHeadRotation = 0x3a
|
||||
MultiBlockChange = 0x3b
|
||||
SelectAdvancementTab = 0x3c
|
||||
WorldBorder = 0x3d
|
||||
Camera = 0x3e
|
||||
HeldItemSlotClientbound = 0x3f
|
||||
UpdateViewPosition = 0x40
|
||||
UpdateViewDistance = 0x41
|
||||
SpawnPosition = 0x42
|
||||
ScoreboardDisplayObjective = 0x43
|
||||
EntityMetadata = 0x44
|
||||
AttachEntity = 0x45
|
||||
EntityVelocity = 0x46
|
||||
EntityEquipment = 0x47
|
||||
Experience = 0x48
|
||||
UpdateHealth = 0x49
|
||||
ScoreboardObjective = 0x4a
|
||||
SetPassengers = 0x4b
|
||||
Teams = 0x4c
|
||||
ScoreboardScore = 0x4d
|
||||
UpdateTime = 0x4e
|
||||
Title = 0x4f
|
||||
EntitySoundEffect = 0x50
|
||||
SoundEffect = 0x51
|
||||
StopSound = 0x52
|
||||
PlayerlistHeader = 0x53
|
||||
NbtQueryResponse = 0x54
|
||||
Collect = 0x55
|
||||
EntityTeleport = 0x56
|
||||
Advancements = 0x57
|
||||
EntityUpdateAttributes = 0x58
|
||||
EntityEffect = 0x59
|
||||
DeclareRecipes = 0x5a
|
||||
Tags = 0x5b
|
||||
SculkVibrationSignal = 0x5
|
||||
Animation = 0x6
|
||||
Statistics = 0x7
|
||||
AcknowledgePlayerDigging = 0x8
|
||||
BlockBreakAnimation = 0x9
|
||||
TileEntityData = 0xa
|
||||
BlockAction = 0xb
|
||||
BlockChange = 0xc
|
||||
BossBar = 0xd
|
||||
Difficulty = 0xe
|
||||
ChatClientbound = 0xf
|
||||
ClearTitles = 0x10
|
||||
TabCompleteClientbound = 0x11
|
||||
DeclareCommands = 0x12
|
||||
CloseWindowClientbound = 0x13
|
||||
WindowItems = 0x14
|
||||
CraftProgressBar = 0x15
|
||||
SetSlot = 0x16
|
||||
SetCooldown = 0x17
|
||||
CustomPayloadClientbound = 0x18
|
||||
NamedSoundEffect = 0x19
|
||||
KickDisconnect = 0x1a
|
||||
EntityStatus = 0x1b
|
||||
Explosion = 0x1c
|
||||
UnloadChunk = 0x1d
|
||||
GameStateChange = 0x1e
|
||||
OpenHorseWindow = 0x1f
|
||||
InitializeWorldBorder = 0x20
|
||||
KeepAliveClientbound = 0x21
|
||||
MapChunk = 0x22
|
||||
WorldEvent = 0x23
|
||||
WorldParticles = 0x24
|
||||
UpdateLight = 0x25
|
||||
Login = 0x26
|
||||
Map = 0x27
|
||||
TradeList = 0x28
|
||||
RelEntityMove = 0x29
|
||||
EntityMoveLook = 0x2a
|
||||
EntityLook = 0x2b
|
||||
VehicleMoveClientbound = 0x2c
|
||||
OpenBook = 0x2d
|
||||
OpenWindow = 0x2e
|
||||
OpenSignEntity = 0x2f
|
||||
Ping = 0x30
|
||||
CraftRecipeResponse = 0x31
|
||||
AbilitiesClientbound = 0x32
|
||||
EndCombatEvent = 0x33
|
||||
EnterCombatEvent = 0x34
|
||||
DeathCombatEvent = 0x35
|
||||
PlayerInfo = 0x36
|
||||
FacePlayer = 0x37
|
||||
PositionClientbound = 0x38
|
||||
UnlockRecipes = 0x39
|
||||
DestroyEntity = 0x3a
|
||||
RemoveEntityEffect = 0x3b
|
||||
ResourcePackSend = 0x3c
|
||||
Respawn = 0x3d
|
||||
EntityHeadRotation = 0x3e
|
||||
MultiBlockChange = 0x3f
|
||||
SelectAdvancementTab = 0x40
|
||||
ActionBar = 0x41
|
||||
WorldBorderCenter = 0x42
|
||||
WorldBorderLerpSize = 0x43
|
||||
WorldBorderSize = 0x44
|
||||
WorldBorderWarningDelay = 0x45
|
||||
WorldBorderWarningReach = 0x46
|
||||
Camera = 0x47
|
||||
HeldItemSlotClientbound = 0x48
|
||||
UpdateViewPosition = 0x49
|
||||
UpdateViewDistance = 0x4a
|
||||
SpawnPosition = 0x4b
|
||||
ScoreboardDisplayObjective = 0x4c
|
||||
EntityMetadata = 0x4d
|
||||
AttachEntity = 0x4e
|
||||
EntityVelocity = 0x4f
|
||||
EntityEquipment = 0x50
|
||||
Experience = 0x51
|
||||
UpdateHealth = 0x52
|
||||
ScoreboardObjective = 0x53
|
||||
SetPassengers = 0x54
|
||||
Teams = 0x55
|
||||
ScoreboardScore = 0x56
|
||||
SetTitleSubtitle = 0x57
|
||||
UpdateTime = 0x58
|
||||
SetTitleText = 0x59
|
||||
SetTitleTime = 0x5a
|
||||
EntitySoundEffect = 0x5b
|
||||
SoundEffect = 0x5c
|
||||
StopSound = 0x5d
|
||||
PlayerlistHeader = 0x5e
|
||||
NbtQueryResponse = 0x5f
|
||||
Collect = 0x60
|
||||
EntityTeleport = 0x61
|
||||
Advancements = 0x62
|
||||
EntityUpdateAttributes = 0x63
|
||||
EntityEffect = 0x64
|
||||
DeclareRecipes = 0x65
|
||||
Tags = 0x66
|
||||
|
||||
// Serverbound
|
||||
TeleportConfirm = 0x0
|
||||
@ -132,29 +143,29 @@ const (
|
||||
ClientCommand = 0x4
|
||||
Settings = 0x5
|
||||
TabCompleteServerbound = 0x6
|
||||
TransactionServerbound = 0x7
|
||||
EnchantItem = 0x8
|
||||
WindowClick = 0x9
|
||||
CloseWindowServerbound = 0xa
|
||||
CustomPayloadServerbound = 0xb
|
||||
EditBook = 0xc
|
||||
QueryEntityNbt = 0xd
|
||||
UseEntity = 0xe
|
||||
GenerateStructure = 0xf
|
||||
KeepAliveServerbound = 0x10
|
||||
LockDifficulty = 0x11
|
||||
PositionServerbound = 0x12
|
||||
PositionLook = 0x13
|
||||
Look = 0x14
|
||||
Flying = 0x15
|
||||
VehicleMoveServerbound = 0x16
|
||||
SteerBoat = 0x17
|
||||
PickItem = 0x18
|
||||
CraftRecipeRequest = 0x19
|
||||
AbilitiesServerbound = 0x1a
|
||||
BlockDig = 0x1b
|
||||
EntityAction = 0x1c
|
||||
SteerVehicle = 0x1d
|
||||
EnchantItem = 0x7
|
||||
WindowClick = 0x8
|
||||
CloseWindowServerbound = 0x9
|
||||
CustomPayloadServerbound = 0xa
|
||||
EditBook = 0xb
|
||||
QueryEntityNbt = 0xc
|
||||
UseEntity = 0xd
|
||||
GenerateStructure = 0xe
|
||||
KeepAliveServerbound = 0xf
|
||||
LockDifficulty = 0x10
|
||||
PositionServerbound = 0x11
|
||||
PositionLook = 0x12
|
||||
Look = 0x13
|
||||
Flying = 0x14
|
||||
VehicleMoveServerbound = 0x15
|
||||
SteerBoat = 0x16
|
||||
PickItem = 0x17
|
||||
CraftRecipeRequest = 0x18
|
||||
AbilitiesServerbound = 0x19
|
||||
BlockDig = 0x1a
|
||||
EntityAction = 0x1b
|
||||
SteerVehicle = 0x1c
|
||||
Pong = 0x1d
|
||||
DisplayedRecipe = 0x1e
|
||||
RecipeBook = 0x1f
|
||||
NameItem = 0x20
|
||||
|
Reference in New Issue
Block a user