Documentation
¶
Index ¶
Constants ¶
View Source
const ( SpawnObject byte = iota //0x00 SpawnExperienceOrb SpawnGlobalEntity SpawnMob SpawnPainting SpawnPlayer AnimationClientbound Statistics BlockBreakAnimation UpdateBlockEntity BlockAction BlockChange BossBar ServerDifficulty ChatMessageClientbound MultiBlockChange TabComplete //0x10 DeclareCommands ConfirmTransaction CloseWindow WindowItems WindowProperty SetSlot SetCooldown PluginMessageClientbound NamedSoundEffect DisconnectPlay EntityStatus Explosion UnloadChunk ChangeGameState OpenHorseWindow KeepAliveClientbound //0x20 ChunkData Effect Particle UpdateLight JoinGame MapData TradeList EntityRelativeMove EntityLookAndRelativeMove EntityLook Entity VehicleMoveClientbound OpenBook OpenWindow OpenSignEditor CraftRecipeResponse //0x30 PlayerAbilitiesClientbound CombatEvent PlayerInfo FacePlayer PlayerPositionAndLookClientbound UnlockRecipes DestroyEntities RemoveEntityEffect ResourcePackSend Respawn EntityHeadLook SelectAdvancementTab WorldBorder Camera HeldItemChangeClientbound UpdateViewPosition //0x40 UpdateViewDistance DisplayScoreboard EntityMetadata AttachEntity EntityVelocity EntityEquipment SetExperience UpdateHealth ScoreboardObjective SetPassengers Teams UpdateScore SpawnPosition TimeUpdate Title EntitySoundEffect //0x50 SoundEffect StopSound NBTQueryResponse CollectItem EntityTeleport Advancements EntityProperties EntityEffect DeclareRecipes Tags AcknowledgePlayerDigging //0x5C )
Clientbound packet IDs
View Source
const ( TeleportConfirm byte = iota //0x00 QueryBlockNBT SetDifficulty ChatMessageServerbound ClientStatus ClientSettings TabCompleteServerbound ConfirmTransactionServerbound ClickWindowButton ClickWindow CloseWindowServerbound PluginMessageServerbound EditBook QueryEntityNBT UseEntity KeepAliveServerbound LockDifficulty //0x10 PlayerPosition PlayerPositionAndLookServerbound PlayerLook Player VehicleMoveServerbound SteerBoat PickItem CraftRecipeRequest PlayerAbilitiesServerbound PlayerDigging EntityAction SteerVehicle RecipeBookData NameItem ResourcePackStatus AdvancementTab //0x20 SelectTrade SetBeaconEffect HeldItemChangeServerbound UpdateCommandBlock UpdateCommandBlockMinecart CreativeInventoryAction UpdateJigsawBlock UpdateStructureBlock UpdateSign AnimationServerbound Spectate PlayerBlockPlacement UseItem //0x2D )
Serverbound packet IDs
Variables ¶
View Source
var ( //BlockNameByID stores each block names for each state ID. BlockNameByID []string //BitsPerBlock is how many bits used in network protocol per block. BitsPerBlock int )
View Source
var ItemNameByID []string
ItemNameByID store Item's ID and
View Source
var SoundNames = []string{}/* 795 elements not displayed */
SoundNames match the sound IDs' name
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.