#![allow(
unused_imports,
unused_variables,
unused_mut,
unused_parens,
unused_braces,
clippy::all,
clippy::pedantic,
non_camel_case_types,
non_snake_case
)]
use crate::codec::{Decode, DecodeResult, Encode, EncodeResult, McWrite, Reader, decode_exact};
use crate::error::{DecodeError, EncodeError};
use crate::nbt::{AnonNbt, RawNbt};
use crate::packet::{Direction, PacketSet, RawPacket, State};
#[cfg(feature = "testgen")]
use crate::testgen::{Gen, Generate};
use crate::types::{BlockPos, ByteString, Holder, HolderSet, LpVec3, PositionLayout, Uuid};
use bytes::{BufMut, Bytes, BytesMut};
pub mod id {
pub const BUNDLE_DELIMITER: i32 = 0x00;
pub const SPAWN_ENTITY: i32 = 0x01;
pub const ANIMATION: i32 = 0x02;
pub const STATISTICS: i32 = 0x03;
pub const ACKNOWLEDGE_PLAYER_DIGGING: i32 = 0x04;
pub const BLOCK_BREAK_ANIMATION: i32 = 0x05;
pub const TILE_ENTITY_DATA: i32 = 0x06;
pub const BLOCK_ACTION: i32 = 0x07;
pub const BLOCK_CHANGE: i32 = 0x08;
pub const BOSS_BAR: i32 = 0x09;
pub const DIFFICULTY: i32 = 0x0a;
pub const CHUNK_BATCH_FINISHED: i32 = 0x0b;
pub const CHUNK_BATCH_START: i32 = 0x0c;
pub const CHUNK_BIOMES: i32 = 0x0d;
pub const CLEAR_TITLES: i32 = 0x0e;
pub const TAB_COMPLETE: i32 = 0x0f;
pub const DECLARE_COMMANDS: i32 = 0x10;
pub const CLOSE_WINDOW: i32 = 0x11;
pub const WINDOW_ITEMS: i32 = 0x12;
pub const CRAFT_PROGRESS_BAR: i32 = 0x13;
pub const SET_SLOT: i32 = 0x14;
pub const COOKIE_REQUEST: i32 = 0x15;
pub const SET_COOLDOWN: i32 = 0x16;
pub const CHAT_SUGGESTIONS: i32 = 0x17;
pub const CUSTOM_PAYLOAD: i32 = 0x18;
pub const DAMAGE_EVENT: i32 = 0x19;
pub const DEBUG_BLOCK_VALUE: i32 = 0x1a;
pub const DEBUG_CHUNK_VALUE: i32 = 0x1b;
pub const DEBUG_ENTITY_VALUE: i32 = 0x1c;
pub const DEBUG_EVENT: i32 = 0x1d;
pub const DEBUG_SAMPLE: i32 = 0x1e;
pub const HIDE_MESSAGE: i32 = 0x1f;
pub const KICK_DISCONNECT: i32 = 0x20;
pub const PROFILELESS_CHAT: i32 = 0x21;
pub const ENTITY_STATUS: i32 = 0x22;
pub const SYNC_ENTITY_POSITION: i32 = 0x23;
pub const EXPLOSION: i32 = 0x24;
pub const UNLOAD_CHUNK: i32 = 0x25;
pub const GAME_STATE_CHANGE: i32 = 0x26;
pub const GAME_RULE_VALUES: i32 = 0x27;
pub const GAME_TEST_HIGHLIGHT_POS: i32 = 0x28;
pub const OPEN_HORSE_WINDOW: i32 = 0x29;
pub const HURT_ANIMATION: i32 = 0x2a;
pub const INITIALIZE_WORLD_BORDER: i32 = 0x2b;
pub const KEEP_ALIVE: i32 = 0x2c;
pub const MAP_CHUNK: i32 = 0x2d;
pub const WORLD_EVENT: i32 = 0x2e;
pub const WORLD_PARTICLES: i32 = 0x2f;
pub const UPDATE_LIGHT: i32 = 0x30;
pub const LOGIN: i32 = 0x31;
pub const LOW_DISK_SPACE_WARNING: i32 = 0x32;
pub const MAP: i32 = 0x33;
pub const TRADE_LIST: i32 = 0x34;
pub const REL_ENTITY_MOVE: i32 = 0x35;
pub const ENTITY_MOVE_LOOK: i32 = 0x36;
pub const MOVE_MINECART: i32 = 0x37;
pub const ENTITY_LOOK: i32 = 0x38;
pub const VEHICLE_MOVE: i32 = 0x39;
pub const OPEN_BOOK: i32 = 0x3a;
pub const OPEN_WINDOW: i32 = 0x3b;
pub const OPEN_SIGN_ENTITY: i32 = 0x3c;
pub const PING: i32 = 0x3d;
pub const PING_RESPONSE: i32 = 0x3e;
pub const CRAFT_RECIPE_RESPONSE: i32 = 0x3f;
pub const ABILITIES: i32 = 0x40;
pub const PLAYER_CHAT: i32 = 0x41;
pub const END_COMBAT_EVENT: i32 = 0x42;
pub const ENTER_COMBAT_EVENT: i32 = 0x43;
pub const DEATH_COMBAT_EVENT: i32 = 0x44;
pub const PLAYER_REMOVE: i32 = 0x45;
pub const PLAYER_INFO: i32 = 0x46;
pub const FACE_PLAYER: i32 = 0x47;
pub const POSITION: i32 = 0x48;
pub const PLAYER_ROTATION: i32 = 0x49;
pub const RECIPE_BOOK_ADD: i32 = 0x4a;
pub const RECIPE_BOOK_REMOVE: i32 = 0x4b;
pub const RECIPE_BOOK_SETTINGS: i32 = 0x4c;
pub const ENTITY_DESTROY: i32 = 0x4d;
pub const REMOVE_ENTITY_EFFECT: i32 = 0x4e;
pub const RESET_SCORE: i32 = 0x4f;
pub const REMOVE_RESOURCE_PACK: i32 = 0x50;
pub const ADD_RESOURCE_PACK: i32 = 0x51;
pub const RESPAWN: i32 = 0x52;
pub const ENTITY_HEAD_ROTATION: i32 = 0x53;
pub const MULTI_BLOCK_CHANGE: i32 = 0x54;
pub const SELECT_ADVANCEMENT_TAB: i32 = 0x55;
pub const SERVER_DATA: i32 = 0x56;
pub const ACTION_BAR: i32 = 0x57;
pub const WORLD_BORDER_CENTER: i32 = 0x58;
pub const WORLD_BORDER_LERP_SIZE: i32 = 0x59;
pub const WORLD_BORDER_SIZE: i32 = 0x5a;
pub const WORLD_BORDER_WARNING_DELAY: i32 = 0x5b;
pub const WORLD_BORDER_WARNING_REACH: i32 = 0x5c;
pub const CAMERA: i32 = 0x5d;
pub const UPDATE_VIEW_POSITION: i32 = 0x5e;
pub const UPDATE_VIEW_DISTANCE: i32 = 0x5f;
pub const SET_CURSOR_ITEM: i32 = 0x60;
pub const SPAWN_POSITION: i32 = 0x61;
pub const SCOREBOARD_DISPLAY_OBJECTIVE: i32 = 0x62;
pub const ENTITY_METADATA: i32 = 0x63;
pub const ATTACH_ENTITY: i32 = 0x64;
pub const ENTITY_VELOCITY: i32 = 0x65;
pub const ENTITY_EQUIPMENT: i32 = 0x66;
pub const EXPERIENCE: i32 = 0x67;
pub const UPDATE_HEALTH: i32 = 0x68;
pub const HELD_ITEM_SLOT: i32 = 0x69;
pub const SCOREBOARD_OBJECTIVE: i32 = 0x6a;
pub const SET_PASSENGERS: i32 = 0x6b;
pub const SET_PLAYER_INVENTORY: i32 = 0x6c;
pub const TEAMS: i32 = 0x6d;
pub const SCOREBOARD_SCORE: i32 = 0x6e;
pub const SIMULATION_DISTANCE: i32 = 0x6f;
pub const SET_TITLE_SUBTITLE: i32 = 0x70;
pub const UPDATE_TIME: i32 = 0x71;
pub const SET_TITLE_TEXT: i32 = 0x72;
pub const SET_TITLE_TIME: i32 = 0x73;
pub const ENTITY_SOUND_EFFECT: i32 = 0x74;
pub const SOUND_EFFECT: i32 = 0x75;
pub const START_CONFIGURATION: i32 = 0x76;
pub const STOP_SOUND: i32 = 0x77;
pub const STORE_COOKIE: i32 = 0x78;
pub const SYSTEM_CHAT: i32 = 0x79;
pub const PLAYERLIST_HEADER: i32 = 0x7a;
pub const NBT_QUERY_RESPONSE: i32 = 0x7b;
pub const COLLECT: i32 = 0x7c;
pub const ENTITY_TELEPORT: i32 = 0x7d;
pub const TEST_INSTANCE_BLOCK_STATUS: i32 = 0x7e;
pub const SET_TICKING_STATE: i32 = 0x7f;
pub const STEP_TICK: i32 = 0x80;
pub const TRANSFER: i32 = 0x81;
pub const ADVANCEMENTS: i32 = 0x82;
pub const ENTITY_UPDATE_ATTRIBUTES: i32 = 0x83;
pub const ENTITY_EFFECT: i32 = 0x84;
pub const DECLARE_RECIPES: i32 = 0x85;
pub const TAGS: i32 = 0x86;
pub const SET_PROJECTILE_POWER: i32 = 0x87;
pub const CUSTOM_REPORT_DETAILS: i32 = 0x88;
pub const SERVER_LINKS: i32 = 0x89;
pub const TRACKED_WAYPOINT: i32 = 0x8a;
pub const CLEAR_DIALOG: i32 = 0x8b;
pub const SHOW_DIALOG: i32 = 0x8c;
}
pub use crate::defs::p340::play::clientbound::AdvancementsProgressMapping;
pub use crate::defs::p340::play::clientbound::AdvancementsProgressMappingValue;
pub use crate::defs::p754::play::clientbound::StatisticsEntries;
pub use crate::defs::p775::play::clientbound::AdvancementsAdvancementMappingValueDisplayDataFlags;
pub use crate::defs::p775::play::clientbound::ChatType;
pub use crate::defs::p775::play::clientbound::ChatTypeParameterType;
pub use crate::defs::p775::play::clientbound::ChatTypes;
pub use crate::defs::p775::play::clientbound::ChunkBiomesBiomes;
pub use crate::defs::p775::play::clientbound::CustomReportDetailsDetails;
pub use crate::defs::p775::play::clientbound::DeclareRecipesRecipes;
pub use crate::defs::p775::play::clientbound::DifficultyDifficulty;
pub use crate::defs::p775::play::clientbound::EntityUpdateAttributesPropertiesModifiers;
pub use crate::defs::p775::play::clientbound::GameStateChangeReason;
pub use crate::defs::p775::play::clientbound::MapChunkHeightmaps;
pub use crate::defs::p775::play::clientbound::MapChunkHeightmapsType;
pub use crate::defs::p775::play::clientbound::MapIcons;
pub use crate::defs::p775::play::clientbound::MoveMinecartSteps;
pub use crate::defs::p775::play::clientbound::MultiBlockChangeChunkCoordinates;
pub use crate::defs::p775::play::clientbound::OpenBookHand;
pub use crate::defs::p775::play::clientbound::PlayerInfoAction;
pub use crate::defs::p775::play::clientbound::PlayerInfoData;
pub use crate::defs::p775::play::clientbound::PositionUpdateRelatives;
pub use crate::defs::p775::play::clientbound::RecipeBookAddEntriesFlags;
pub use crate::defs::p775::play::clientbound::RecipeBookAddEntriesRecipeCategory;
pub use crate::defs::p775::play::clientbound::RecipeBookSetting;
pub use crate::defs::p775::play::clientbound::RecipeDisplayType;
pub use crate::defs::p775::play::clientbound::ServerLinksLinks;
pub use crate::defs::p775::play::clientbound::SlotDisplayType;
pub use crate::defs::p775::play::clientbound::SpawnInfo;
pub use crate::defs::p775::play::clientbound::SpawnInfoGamemode;
pub use crate::defs::p775::play::clientbound::TabCompleteMatches;
pub use crate::defs::p775::play::clientbound::TagsTags;
pub use crate::defs::p775::play::clientbound::TeamsBodyAddCollisionRule;
pub use crate::defs::p775::play::clientbound::TeamsBodyAddFlags;
pub use crate::defs::p775::play::clientbound::TeamsBodyAddNameTagVisibility;
pub use crate::defs::p775::play::clientbound::TeamsMode;
pub use crate::defs::p775::play::clientbound::TrackedWaypointOperation;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypoint;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointBody;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointBodyFalse;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointBodyTrue;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointData;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointDataChunk;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointIcon;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointIconColor;
pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointType;
pub use crate::defs::p775::play::clientbound::UpdateTimeClockUpdates;
pub use crate::defs::p776::play::clientbound::AdvancementsAdvancementMapping;
pub use crate::defs::p776::play::clientbound::AdvancementsAdvancementMappingValue;
pub use crate::defs::p776::play::clientbound::AdvancementsAdvancementMappingValueDisplayData;
pub use crate::defs::p776::play::clientbound::DeclareRecipesStoneCutterRecipes;
pub use crate::defs::p776::play::clientbound::EntityEquipmentEquipments;
pub use crate::defs::p776::play::clientbound::EntityUpdateAttributesProperties;
pub use crate::defs::p776::play::clientbound::EntityUpdateAttributesPropertiesKey;
pub use crate::defs::p776::play::clientbound::ExplosionParticleEntry;
pub use crate::defs::p776::play::clientbound::ExplosionParticleInfo;
pub use crate::defs::p776::play::clientbound::RecipeBookAddEntries;
pub use crate::defs::p776::play::clientbound::RecipeBookAddEntriesRecipe;
pub use crate::defs::p776::play::clientbound::RecipeDisplay;
pub use crate::defs::p776::play::clientbound::RecipeDisplayData;
pub use crate::defs::p776::play::clientbound::RecipeDisplayDataCraftingShaped;
pub use crate::defs::p776::play::clientbound::RecipeDisplayDataCraftingShapeless;
pub use crate::defs::p776::play::clientbound::RecipeDisplayDataFurnace;
pub use crate::defs::p776::play::clientbound::RecipeDisplayDataSmithing;
pub use crate::defs::p776::play::clientbound::RecipeDisplayDataStonecutter;
pub use crate::defs::p776::play::clientbound::SlotDisplay;
pub use crate::defs::p776::play::clientbound::SlotDisplayData;
pub use crate::defs::p776::play::clientbound::SlotDisplayDataDyedSlotDemo;
pub use crate::defs::p776::play::clientbound::SlotDisplayDataOnlyWithComponent;
pub use crate::defs::p776::play::clientbound::SlotDisplayDataSmithingTrim;
pub use crate::defs::p776::play::clientbound::SlotDisplayDataWithAnyPotion;
pub use crate::defs::p776::play::clientbound::SlotDisplayDataWithRemainder;
pub use crate::defs::p776::play::clientbound::TeamsBodyAdd;
pub use crate::defs::p776::play::clientbound::TradeListTrades;
pub use crate::defs::p776::play::clientbound::TradeListTradesInputItem1;
pub use crate::defs::p776::play::clientbound::TradeListTradesInputItem2;
pub type BundleDelimiter = crate::defs::p775::play::clientbound::BundleDelimiter<776>;
impl crate::packet::Packet for BundleDelimiter {
const ID: i32 = id::BUNDLE_DELIMITER;
const NAME: &'static str = "bundle_delimiter";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<BundleDelimiter> for ClientboundPlayPacket {
fn from(p: BundleDelimiter) -> Self {
Self::BundleDelimiter(p)
}
}
pub type SpawnEntity = crate::defs::p775::play::clientbound::SpawnEntity<776>;
impl crate::packet::Packet for SpawnEntity {
const ID: i32 = id::SPAWN_ENTITY;
const NAME: &'static str = "spawn_entity";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SpawnEntity> for ClientboundPlayPacket {
fn from(p: SpawnEntity) -> Self {
Self::SpawnEntity(p)
}
}
pub type Animation = crate::defs::p47::play::clientbound::Animation<776>;
impl crate::packet::Packet for Animation {
const ID: i32 = id::ANIMATION;
const NAME: &'static str = "animation";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Animation> for ClientboundPlayPacket {
fn from(p: Animation) -> Self {
Self::Animation(p)
}
}
pub type Statistics = crate::defs::p754::play::clientbound::Statistics<776>;
impl crate::packet::Packet for Statistics {
const ID: i32 = id::STATISTICS;
const NAME: &'static str = "statistics";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Statistics> for ClientboundPlayPacket {
fn from(p: Statistics) -> Self {
Self::Statistics(p)
}
}
pub type AcknowledgePlayerDigging =
crate::defs::p775::play::clientbound::AcknowledgePlayerDigging<776>;
impl crate::packet::Packet for AcknowledgePlayerDigging {
const ID: i32 = id::ACKNOWLEDGE_PLAYER_DIGGING;
const NAME: &'static str = "acknowledge_player_digging";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<AcknowledgePlayerDigging> for ClientboundPlayPacket {
fn from(p: AcknowledgePlayerDigging) -> Self {
Self::AcknowledgePlayerDigging(p)
}
}
pub type BlockBreakAnimation = crate::defs::p754::play::clientbound::BlockBreakAnimation<776>;
impl crate::packet::Packet for BlockBreakAnimation {
const ID: i32 = id::BLOCK_BREAK_ANIMATION;
const NAME: &'static str = "block_break_animation";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<BlockBreakAnimation> for ClientboundPlayPacket {
fn from(p: BlockBreakAnimation) -> Self {
Self::BlockBreakAnimation(p)
}
}
pub type TileEntityData = crate::defs::p775::play::clientbound::TileEntityData<776>;
impl crate::packet::Packet for TileEntityData {
const ID: i32 = id::TILE_ENTITY_DATA;
const NAME: &'static str = "tile_entity_data";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<TileEntityData> for ClientboundPlayPacket {
fn from(p: TileEntityData) -> Self {
Self::TileEntityData(p)
}
}
pub type BlockAction = crate::defs::p754::play::clientbound::BlockAction<776>;
impl crate::packet::Packet for BlockAction {
const ID: i32 = id::BLOCK_ACTION;
const NAME: &'static str = "block_action";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<BlockAction> for ClientboundPlayPacket {
fn from(p: BlockAction) -> Self {
Self::BlockAction(p)
}
}
pub type BlockChange = crate::defs::p754::play::clientbound::BlockChange<776>;
impl crate::packet::Packet for BlockChange {
const ID: i32 = id::BLOCK_CHANGE;
const NAME: &'static str = "block_change";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<BlockChange> for ClientboundPlayPacket {
fn from(p: BlockChange) -> Self {
Self::BlockChange(p)
}
}
pub type BossBar = crate::defs::p775::play::clientbound::BossBar<776>;
impl crate::packet::Packet for BossBar {
const ID: i32 = id::BOSS_BAR;
const NAME: &'static str = "boss_bar";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<BossBar> for ClientboundPlayPacket {
fn from(p: BossBar) -> Self {
Self::BossBar(p)
}
}
pub type Difficulty = crate::defs::p775::play::clientbound::Difficulty<776>;
impl crate::packet::Packet for Difficulty {
const ID: i32 = id::DIFFICULTY;
const NAME: &'static str = "difficulty";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Difficulty> for ClientboundPlayPacket {
fn from(p: Difficulty) -> Self {
Self::Difficulty(p)
}
}
pub type ChunkBatchFinished = crate::defs::p775::play::clientbound::ChunkBatchFinished<776>;
impl crate::packet::Packet for ChunkBatchFinished {
const ID: i32 = id::CHUNK_BATCH_FINISHED;
const NAME: &'static str = "chunk_batch_finished";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ChunkBatchFinished> for ClientboundPlayPacket {
fn from(p: ChunkBatchFinished) -> Self {
Self::ChunkBatchFinished(p)
}
}
pub type ChunkBatchStart = crate::defs::p775::play::clientbound::ChunkBatchStart<776>;
impl crate::packet::Packet for ChunkBatchStart {
const ID: i32 = id::CHUNK_BATCH_START;
const NAME: &'static str = "chunk_batch_start";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ChunkBatchStart> for ClientboundPlayPacket {
fn from(p: ChunkBatchStart) -> Self {
Self::ChunkBatchStart(p)
}
}
pub type ChunkBiomes = crate::defs::p775::play::clientbound::ChunkBiomes<776>;
impl crate::packet::Packet for ChunkBiomes {
const ID: i32 = id::CHUNK_BIOMES;
const NAME: &'static str = "chunk_biomes";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ChunkBiomes> for ClientboundPlayPacket {
fn from(p: ChunkBiomes) -> Self {
Self::ChunkBiomes(p)
}
}
pub type ClearTitles = crate::defs::p775::play::clientbound::ClearTitles<776>;
impl crate::packet::Packet for ClearTitles {
const ID: i32 = id::CLEAR_TITLES;
const NAME: &'static str = "clear_titles";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ClearTitles> for ClientboundPlayPacket {
fn from(p: ClearTitles) -> Self {
Self::ClearTitles(p)
}
}
pub type TabComplete = crate::defs::p775::play::clientbound::TabComplete<776>;
impl crate::packet::Packet for TabComplete {
const ID: i32 = id::TAB_COMPLETE;
const NAME: &'static str = "tab_complete";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<TabComplete> for ClientboundPlayPacket {
fn from(p: TabComplete) -> Self {
Self::TabComplete(p)
}
}
pub type DeclareCommands = crate::defs::p776::play::clientbound::DeclareCommands<776>;
impl crate::packet::Packet for DeclareCommands {
const ID: i32 = id::DECLARE_COMMANDS;
const NAME: &'static str = "declare_commands";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DeclareCommands> for ClientboundPlayPacket {
fn from(p: DeclareCommands) -> Self {
Self::DeclareCommands(p)
}
}
pub type CloseWindow = crate::defs::p775::play::clientbound::CloseWindow<776>;
impl crate::packet::Packet for CloseWindow {
const ID: i32 = id::CLOSE_WINDOW;
const NAME: &'static str = "close_window";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<CloseWindow> for ClientboundPlayPacket {
fn from(p: CloseWindow) -> Self {
Self::CloseWindow(p)
}
}
pub type WindowItems = crate::defs::p776::play::clientbound::WindowItems<776>;
impl crate::packet::Packet for WindowItems {
const ID: i32 = id::WINDOW_ITEMS;
const NAME: &'static str = "window_items";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WindowItems> for ClientboundPlayPacket {
fn from(p: WindowItems) -> Self {
Self::WindowItems(p)
}
}
pub type CraftProgressBar = crate::defs::p775::play::clientbound::CraftProgressBar<776>;
impl crate::packet::Packet for CraftProgressBar {
const ID: i32 = id::CRAFT_PROGRESS_BAR;
const NAME: &'static str = "craft_progress_bar";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<CraftProgressBar> for ClientboundPlayPacket {
fn from(p: CraftProgressBar) -> Self {
Self::CraftProgressBar(p)
}
}
pub type SetSlot = crate::defs::p776::play::clientbound::SetSlot<776>;
impl crate::packet::Packet for SetSlot {
const ID: i32 = id::SET_SLOT;
const NAME: &'static str = "set_slot";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetSlot> for ClientboundPlayPacket {
fn from(p: SetSlot) -> Self {
Self::SetSlot(p)
}
}
pub type CookieRequest = crate::defs::p775::play::clientbound::CookieRequest<776>;
impl crate::packet::Packet for CookieRequest {
const ID: i32 = id::COOKIE_REQUEST;
const NAME: &'static str = "cookie_request";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<CookieRequest> for ClientboundPlayPacket {
fn from(p: CookieRequest) -> Self {
Self::CookieRequest(p)
}
}
pub type SetCooldown = crate::defs::p775::play::clientbound::SetCooldown<776>;
impl crate::packet::Packet for SetCooldown {
const ID: i32 = id::SET_COOLDOWN;
const NAME: &'static str = "set_cooldown";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetCooldown> for ClientboundPlayPacket {
fn from(p: SetCooldown) -> Self {
Self::SetCooldown(p)
}
}
pub type ChatSuggestions = crate::defs::p775::play::clientbound::ChatSuggestions<776>;
impl crate::packet::Packet for ChatSuggestions {
const ID: i32 = id::CHAT_SUGGESTIONS;
const NAME: &'static str = "chat_suggestions";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ChatSuggestions> for ClientboundPlayPacket {
fn from(p: ChatSuggestions) -> Self {
Self::ChatSuggestions(p)
}
}
pub type CustomPayload = crate::defs::p47::play::clientbound::CustomPayload<776>;
impl crate::packet::Packet for CustomPayload {
const ID: i32 = id::CUSTOM_PAYLOAD;
const NAME: &'static str = "custom_payload";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<CustomPayload> for ClientboundPlayPacket {
fn from(p: CustomPayload) -> Self {
Self::CustomPayload(p)
}
}
pub type DamageEvent = crate::defs::p775::play::clientbound::DamageEvent<776>;
impl crate::packet::Packet for DamageEvent {
const ID: i32 = id::DAMAGE_EVENT;
const NAME: &'static str = "damage_event";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DamageEvent> for ClientboundPlayPacket {
fn from(p: DamageEvent) -> Self {
Self::DamageEvent(p)
}
}
pub type DebugBlockValue = crate::defs::p775::play::clientbound::DebugBlockValue<776>;
impl crate::packet::Packet for DebugBlockValue {
const ID: i32 = id::DEBUG_BLOCK_VALUE;
const NAME: &'static str = "debug_block_value";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DebugBlockValue> for ClientboundPlayPacket {
fn from(p: DebugBlockValue) -> Self {
Self::DebugBlockValue(p)
}
}
pub type DebugChunkValue = crate::defs::p775::play::clientbound::DebugChunkValue<776>;
impl crate::packet::Packet for DebugChunkValue {
const ID: i32 = id::DEBUG_CHUNK_VALUE;
const NAME: &'static str = "debug_chunk_value";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DebugChunkValue> for ClientboundPlayPacket {
fn from(p: DebugChunkValue) -> Self {
Self::DebugChunkValue(p)
}
}
pub type DebugEntityValue = crate::defs::p775::play::clientbound::DebugEntityValue<776>;
impl crate::packet::Packet for DebugEntityValue {
const ID: i32 = id::DEBUG_ENTITY_VALUE;
const NAME: &'static str = "debug_entity_value";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DebugEntityValue> for ClientboundPlayPacket {
fn from(p: DebugEntityValue) -> Self {
Self::DebugEntityValue(p)
}
}
pub type DebugEvent = crate::defs::p775::play::clientbound::DebugEvent<776>;
impl crate::packet::Packet for DebugEvent {
const ID: i32 = id::DEBUG_EVENT;
const NAME: &'static str = "debug_event";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DebugEvent> for ClientboundPlayPacket {
fn from(p: DebugEvent) -> Self {
Self::DebugEvent(p)
}
}
pub type DebugSample = crate::defs::p775::play::clientbound::DebugSample<776>;
impl crate::packet::Packet for DebugSample {
const ID: i32 = id::DEBUG_SAMPLE;
const NAME: &'static str = "debug_sample";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DebugSample> for ClientboundPlayPacket {
fn from(p: DebugSample) -> Self {
Self::DebugSample(p)
}
}
pub type HideMessage = crate::defs::p775::play::clientbound::HideMessage<776>;
impl crate::packet::Packet for HideMessage {
const ID: i32 = id::HIDE_MESSAGE;
const NAME: &'static str = "hide_message";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<HideMessage> for ClientboundPlayPacket {
fn from(p: HideMessage) -> Self {
Self::HideMessage(p)
}
}
pub type KickDisconnect = crate::defs::p775::play::clientbound::KickDisconnect<776>;
impl crate::packet::Packet for KickDisconnect {
const ID: i32 = id::KICK_DISCONNECT;
const NAME: &'static str = "kick_disconnect";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<KickDisconnect> for ClientboundPlayPacket {
fn from(p: KickDisconnect) -> Self {
Self::KickDisconnect(p)
}
}
pub type ProfilelessChat = crate::defs::p775::play::clientbound::ProfilelessChat<776>;
impl crate::packet::Packet for ProfilelessChat {
const ID: i32 = id::PROFILELESS_CHAT;
const NAME: &'static str = "profileless_chat";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ProfilelessChat> for ClientboundPlayPacket {
fn from(p: ProfilelessChat) -> Self {
Self::ProfilelessChat(p)
}
}
pub type EntityStatus = crate::defs::p47::play::clientbound::EntityStatus<776>;
impl crate::packet::Packet for EntityStatus {
const ID: i32 = id::ENTITY_STATUS;
const NAME: &'static str = "entity_status";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityStatus> for ClientboundPlayPacket {
fn from(p: EntityStatus) -> Self {
Self::EntityStatus(p)
}
}
pub type SyncEntityPosition = crate::defs::p775::play::clientbound::SyncEntityPosition<776>;
impl crate::packet::Packet for SyncEntityPosition {
const ID: i32 = id::SYNC_ENTITY_POSITION;
const NAME: &'static str = "sync_entity_position";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SyncEntityPosition> for ClientboundPlayPacket {
fn from(p: SyncEntityPosition) -> Self {
Self::SyncEntityPosition(p)
}
}
pub type Explosion = crate::defs::p776::play::clientbound::Explosion<776>;
impl crate::packet::Packet for Explosion {
const ID: i32 = id::EXPLOSION;
const NAME: &'static str = "explosion";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Explosion> for ClientboundPlayPacket {
fn from(p: Explosion) -> Self {
Self::Explosion(p)
}
}
pub type UnloadChunk = crate::defs::p775::play::clientbound::UnloadChunk<776>;
impl crate::packet::Packet for UnloadChunk {
const ID: i32 = id::UNLOAD_CHUNK;
const NAME: &'static str = "unload_chunk";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<UnloadChunk> for ClientboundPlayPacket {
fn from(p: UnloadChunk) -> Self {
Self::UnloadChunk(p)
}
}
pub type GameStateChange = crate::defs::p775::play::clientbound::GameStateChange<776>;
impl crate::packet::Packet for GameStateChange {
const ID: i32 = id::GAME_STATE_CHANGE;
const NAME: &'static str = "game_state_change";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<GameStateChange> for ClientboundPlayPacket {
fn from(p: GameStateChange) -> Self {
Self::GameStateChange(p)
}
}
pub type GameRuleValues = crate::defs::p775::play::clientbound::GameRuleValues<776>;
impl crate::packet::Packet for GameRuleValues {
const ID: i32 = id::GAME_RULE_VALUES;
const NAME: &'static str = "game_rule_values";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<GameRuleValues> for ClientboundPlayPacket {
fn from(p: GameRuleValues) -> Self {
Self::GameRuleValues(p)
}
}
pub type GameTestHighlightPos = crate::defs::p775::play::clientbound::GameTestHighlightPos<776>;
impl crate::packet::Packet for GameTestHighlightPos {
const ID: i32 = id::GAME_TEST_HIGHLIGHT_POS;
const NAME: &'static str = "game_test_highlight_pos";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<GameTestHighlightPos> for ClientboundPlayPacket {
fn from(p: GameTestHighlightPos) -> Self {
Self::GameTestHighlightPos(p)
}
}
pub type OpenHorseWindow = crate::defs::p775::play::clientbound::OpenHorseWindow<776>;
impl crate::packet::Packet for OpenHorseWindow {
const ID: i32 = id::OPEN_HORSE_WINDOW;
const NAME: &'static str = "open_horse_window";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<OpenHorseWindow> for ClientboundPlayPacket {
fn from(p: OpenHorseWindow) -> Self {
Self::OpenHorseWindow(p)
}
}
pub type HurtAnimation = crate::defs::p775::play::clientbound::HurtAnimation<776>;
impl crate::packet::Packet for HurtAnimation {
const ID: i32 = id::HURT_ANIMATION;
const NAME: &'static str = "hurt_animation";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<HurtAnimation> for ClientboundPlayPacket {
fn from(p: HurtAnimation) -> Self {
Self::HurtAnimation(p)
}
}
pub type InitializeWorldBorder = crate::defs::p775::play::clientbound::InitializeWorldBorder<776>;
impl crate::packet::Packet for InitializeWorldBorder {
const ID: i32 = id::INITIALIZE_WORLD_BORDER;
const NAME: &'static str = "initialize_world_border";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<InitializeWorldBorder> for ClientboundPlayPacket {
fn from(p: InitializeWorldBorder) -> Self {
Self::InitializeWorldBorder(p)
}
}
pub type KeepAlive = crate::defs::p340::play::clientbound::KeepAlive<776>;
impl crate::packet::Packet for KeepAlive {
const ID: i32 = id::KEEP_ALIVE;
const NAME: &'static str = "keep_alive";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<KeepAlive> for ClientboundPlayPacket {
fn from(p: KeepAlive) -> Self {
Self::KeepAlive(p)
}
}
pub type MapChunk = crate::defs::p775::play::clientbound::MapChunk<776>;
impl crate::packet::Packet for MapChunk {
const ID: i32 = id::MAP_CHUNK;
const NAME: &'static str = "map_chunk";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<MapChunk> for ClientboundPlayPacket {
fn from(p: MapChunk) -> Self {
Self::MapChunk(p)
}
}
pub type WorldEvent = crate::defs::p754::play::clientbound::WorldEvent<776>;
impl crate::packet::Packet for WorldEvent {
const ID: i32 = id::WORLD_EVENT;
const NAME: &'static str = "world_event";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldEvent> for ClientboundPlayPacket {
fn from(p: WorldEvent) -> Self {
Self::WorldEvent(p)
}
}
pub type WorldParticles = crate::defs::p776::play::clientbound::WorldParticles<776>;
impl crate::packet::Packet for WorldParticles {
const ID: i32 = id::WORLD_PARTICLES;
const NAME: &'static str = "world_particles";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldParticles> for ClientboundPlayPacket {
fn from(p: WorldParticles) -> Self {
Self::WorldParticles(p)
}
}
pub type UpdateLight = crate::defs::p775::play::clientbound::UpdateLight<776>;
impl crate::packet::Packet for UpdateLight {
const ID: i32 = id::UPDATE_LIGHT;
const NAME: &'static str = "update_light";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<UpdateLight> for ClientboundPlayPacket {
fn from(p: UpdateLight) -> Self {
Self::UpdateLight(p)
}
}
pub type Login = crate::defs::p776::play::clientbound::Login<776>;
impl crate::packet::Packet for Login {
const ID: i32 = id::LOGIN;
const NAME: &'static str = "login";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Login> for ClientboundPlayPacket {
fn from(p: Login) -> Self {
Self::Login(p)
}
}
pub type LowDiskSpaceWarning = crate::defs::p775::play::clientbound::LowDiskSpaceWarning<776>;
impl crate::packet::Packet for LowDiskSpaceWarning {
const ID: i32 = id::LOW_DISK_SPACE_WARNING;
const NAME: &'static str = "low_disk_space_warning";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<LowDiskSpaceWarning> for ClientboundPlayPacket {
fn from(p: LowDiskSpaceWarning) -> Self {
Self::LowDiskSpaceWarning(p)
}
}
pub type Map = crate::defs::p775::play::clientbound::Map<776>;
impl crate::packet::Packet for Map {
const ID: i32 = id::MAP;
const NAME: &'static str = "map";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Map> for ClientboundPlayPacket {
fn from(p: Map) -> Self {
Self::Map(p)
}
}
pub type TradeList = crate::defs::p776::play::clientbound::TradeList<776>;
impl crate::packet::Packet for TradeList {
const ID: i32 = id::TRADE_LIST;
const NAME: &'static str = "trade_list";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<TradeList> for ClientboundPlayPacket {
fn from(p: TradeList) -> Self {
Self::TradeList(p)
}
}
pub type RelEntityMove = crate::defs::p340::play::clientbound::RelEntityMove<776>;
impl crate::packet::Packet for RelEntityMove {
const ID: i32 = id::REL_ENTITY_MOVE;
const NAME: &'static str = "rel_entity_move";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<RelEntityMove> for ClientboundPlayPacket {
fn from(p: RelEntityMove) -> Self {
Self::RelEntityMove(p)
}
}
pub type EntityMoveLook = crate::defs::p340::play::clientbound::EntityMoveLook<776>;
impl crate::packet::Packet for EntityMoveLook {
const ID: i32 = id::ENTITY_MOVE_LOOK;
const NAME: &'static str = "entity_move_look";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityMoveLook> for ClientboundPlayPacket {
fn from(p: EntityMoveLook) -> Self {
Self::EntityMoveLook(p)
}
}
pub type MoveMinecart = crate::defs::p775::play::clientbound::MoveMinecart<776>;
impl crate::packet::Packet for MoveMinecart {
const ID: i32 = id::MOVE_MINECART;
const NAME: &'static str = "move_minecart";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<MoveMinecart> for ClientboundPlayPacket {
fn from(p: MoveMinecart) -> Self {
Self::MoveMinecart(p)
}
}
pub type EntityLook = crate::defs::p47::play::clientbound::EntityLook<776>;
impl crate::packet::Packet for EntityLook {
const ID: i32 = id::ENTITY_LOOK;
const NAME: &'static str = "entity_look";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityLook> for ClientboundPlayPacket {
fn from(p: EntityLook) -> Self {
Self::EntityLook(p)
}
}
pub type VehicleMove = crate::defs::p340::play::clientbound::VehicleMove<776>;
impl crate::packet::Packet for VehicleMove {
const ID: i32 = id::VEHICLE_MOVE;
const NAME: &'static str = "vehicle_move";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<VehicleMove> for ClientboundPlayPacket {
fn from(p: VehicleMove) -> Self {
Self::VehicleMove(p)
}
}
pub type OpenBook = crate::defs::p775::play::clientbound::OpenBook<776>;
impl crate::packet::Packet for OpenBook {
const ID: i32 = id::OPEN_BOOK;
const NAME: &'static str = "open_book";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<OpenBook> for ClientboundPlayPacket {
fn from(p: OpenBook) -> Self {
Self::OpenBook(p)
}
}
pub type OpenWindow = crate::defs::p775::play::clientbound::OpenWindow<776>;
impl crate::packet::Packet for OpenWindow {
const ID: i32 = id::OPEN_WINDOW;
const NAME: &'static str = "open_window";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<OpenWindow> for ClientboundPlayPacket {
fn from(p: OpenWindow) -> Self {
Self::OpenWindow(p)
}
}
pub type OpenSignEntity = crate::defs::p775::play::clientbound::OpenSignEntity<776>;
impl crate::packet::Packet for OpenSignEntity {
const ID: i32 = id::OPEN_SIGN_ENTITY;
const NAME: &'static str = "open_sign_entity";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<OpenSignEntity> for ClientboundPlayPacket {
fn from(p: OpenSignEntity) -> Self {
Self::OpenSignEntity(p)
}
}
pub type Ping = crate::defs::p775::play::clientbound::Ping<776>;
impl crate::packet::Packet for Ping {
const ID: i32 = id::PING;
const NAME: &'static str = "ping";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Ping> for ClientboundPlayPacket {
fn from(p: Ping) -> Self {
Self::Ping(p)
}
}
pub type PingResponse = crate::defs::p775::play::clientbound::PingResponse<776>;
impl crate::packet::Packet for PingResponse {
const ID: i32 = id::PING_RESPONSE;
const NAME: &'static str = "ping_response";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<PingResponse> for ClientboundPlayPacket {
fn from(p: PingResponse) -> Self {
Self::PingResponse(p)
}
}
pub type CraftRecipeResponse = crate::defs::p776::play::clientbound::CraftRecipeResponse<776>;
impl crate::packet::Packet for CraftRecipeResponse {
const ID: i32 = id::CRAFT_RECIPE_RESPONSE;
const NAME: &'static str = "craft_recipe_response";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<CraftRecipeResponse> for ClientboundPlayPacket {
fn from(p: CraftRecipeResponse) -> Self {
Self::CraftRecipeResponse(p)
}
}
pub type Abilities = crate::defs::p47::play::clientbound::Abilities<776>;
impl crate::packet::Packet for Abilities {
const ID: i32 = id::ABILITIES;
const NAME: &'static str = "abilities";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Abilities> for ClientboundPlayPacket {
fn from(p: Abilities) -> Self {
Self::Abilities(p)
}
}
pub type PlayerChat = crate::defs::p775::play::clientbound::PlayerChat<776>;
impl crate::packet::Packet for PlayerChat {
const ID: i32 = id::PLAYER_CHAT;
const NAME: &'static str = "player_chat";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<PlayerChat> for ClientboundPlayPacket {
fn from(p: PlayerChat) -> Self {
Self::PlayerChat(p)
}
}
pub type EndCombatEvent = crate::defs::p775::play::clientbound::EndCombatEvent<776>;
impl crate::packet::Packet for EndCombatEvent {
const ID: i32 = id::END_COMBAT_EVENT;
const NAME: &'static str = "end_combat_event";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EndCombatEvent> for ClientboundPlayPacket {
fn from(p: EndCombatEvent) -> Self {
Self::EndCombatEvent(p)
}
}
pub type EnterCombatEvent = crate::defs::p775::play::clientbound::EnterCombatEvent<776>;
impl crate::packet::Packet for EnterCombatEvent {
const ID: i32 = id::ENTER_COMBAT_EVENT;
const NAME: &'static str = "enter_combat_event";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EnterCombatEvent> for ClientboundPlayPacket {
fn from(p: EnterCombatEvent) -> Self {
Self::EnterCombatEvent(p)
}
}
pub type DeathCombatEvent = crate::defs::p775::play::clientbound::DeathCombatEvent<776>;
impl crate::packet::Packet for DeathCombatEvent {
const ID: i32 = id::DEATH_COMBAT_EVENT;
const NAME: &'static str = "death_combat_event";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DeathCombatEvent> for ClientboundPlayPacket {
fn from(p: DeathCombatEvent) -> Self {
Self::DeathCombatEvent(p)
}
}
pub type PlayerRemove = crate::defs::p775::play::clientbound::PlayerRemove<776>;
impl crate::packet::Packet for PlayerRemove {
const ID: i32 = id::PLAYER_REMOVE;
const NAME: &'static str = "player_remove";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<PlayerRemove> for ClientboundPlayPacket {
fn from(p: PlayerRemove) -> Self {
Self::PlayerRemove(p)
}
}
pub type PlayerInfo = crate::defs::p775::play::clientbound::PlayerInfo<776>;
impl crate::packet::Packet for PlayerInfo {
const ID: i32 = id::PLAYER_INFO;
const NAME: &'static str = "player_info";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<PlayerInfo> for ClientboundPlayPacket {
fn from(p: PlayerInfo) -> Self {
Self::PlayerInfo(p)
}
}
pub type FacePlayer = crate::defs::p775::play::clientbound::FacePlayer<776>;
impl crate::packet::Packet for FacePlayer {
const ID: i32 = id::FACE_PLAYER;
const NAME: &'static str = "face_player";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<FacePlayer> for ClientboundPlayPacket {
fn from(p: FacePlayer) -> Self {
Self::FacePlayer(p)
}
}
pub type Position = crate::defs::p775::play::clientbound::Position<776>;
impl crate::packet::Packet for Position {
const ID: i32 = id::POSITION;
const NAME: &'static str = "position";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Position> for ClientboundPlayPacket {
fn from(p: Position) -> Self {
Self::Position(p)
}
}
pub type PlayerRotation = crate::defs::p775::play::clientbound::PlayerRotation<776>;
impl crate::packet::Packet for PlayerRotation {
const ID: i32 = id::PLAYER_ROTATION;
const NAME: &'static str = "player_rotation";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<PlayerRotation> for ClientboundPlayPacket {
fn from(p: PlayerRotation) -> Self {
Self::PlayerRotation(p)
}
}
pub type RecipeBookAdd = crate::defs::p776::play::clientbound::RecipeBookAdd<776>;
impl crate::packet::Packet for RecipeBookAdd {
const ID: i32 = id::RECIPE_BOOK_ADD;
const NAME: &'static str = "recipe_book_add";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<RecipeBookAdd> for ClientboundPlayPacket {
fn from(p: RecipeBookAdd) -> Self {
Self::RecipeBookAdd(p)
}
}
pub type RecipeBookRemove = crate::defs::p775::play::clientbound::RecipeBookRemove<776>;
impl crate::packet::Packet for RecipeBookRemove {
const ID: i32 = id::RECIPE_BOOK_REMOVE;
const NAME: &'static str = "recipe_book_remove";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<RecipeBookRemove> for ClientboundPlayPacket {
fn from(p: RecipeBookRemove) -> Self {
Self::RecipeBookRemove(p)
}
}
pub type RecipeBookSettings = crate::defs::p775::play::clientbound::RecipeBookSettings<776>;
impl crate::packet::Packet for RecipeBookSettings {
const ID: i32 = id::RECIPE_BOOK_SETTINGS;
const NAME: &'static str = "recipe_book_settings";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<RecipeBookSettings> for ClientboundPlayPacket {
fn from(p: RecipeBookSettings) -> Self {
Self::RecipeBookSettings(p)
}
}
pub type EntityDestroy = crate::defs::p47::play::clientbound::EntityDestroy<776>;
impl crate::packet::Packet for EntityDestroy {
const ID: i32 = id::ENTITY_DESTROY;
const NAME: &'static str = "entity_destroy";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityDestroy> for ClientboundPlayPacket {
fn from(p: EntityDestroy) -> Self {
Self::EntityDestroy(p)
}
}
pub type RemoveEntityEffect = crate::defs::p775::play::clientbound::RemoveEntityEffect<776>;
impl crate::packet::Packet for RemoveEntityEffect {
const ID: i32 = id::REMOVE_ENTITY_EFFECT;
const NAME: &'static str = "remove_entity_effect";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<RemoveEntityEffect> for ClientboundPlayPacket {
fn from(p: RemoveEntityEffect) -> Self {
Self::RemoveEntityEffect(p)
}
}
pub type ResetScore = crate::defs::p775::play::clientbound::ResetScore<776>;
impl crate::packet::Packet for ResetScore {
const ID: i32 = id::RESET_SCORE;
const NAME: &'static str = "reset_score";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ResetScore> for ClientboundPlayPacket {
fn from(p: ResetScore) -> Self {
Self::ResetScore(p)
}
}
pub type RemoveResourcePack = crate::defs::p775::play::clientbound::RemoveResourcePack<776>;
impl crate::packet::Packet for RemoveResourcePack {
const ID: i32 = id::REMOVE_RESOURCE_PACK;
const NAME: &'static str = "remove_resource_pack";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<RemoveResourcePack> for ClientboundPlayPacket {
fn from(p: RemoveResourcePack) -> Self {
Self::RemoveResourcePack(p)
}
}
pub type AddResourcePack = crate::defs::p775::play::clientbound::AddResourcePack<776>;
impl crate::packet::Packet for AddResourcePack {
const ID: i32 = id::ADD_RESOURCE_PACK;
const NAME: &'static str = "add_resource_pack";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<AddResourcePack> for ClientboundPlayPacket {
fn from(p: AddResourcePack) -> Self {
Self::AddResourcePack(p)
}
}
pub type Respawn = crate::defs::p775::play::clientbound::Respawn<776>;
impl crate::packet::Packet for Respawn {
const ID: i32 = id::RESPAWN;
const NAME: &'static str = "respawn";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Respawn> for ClientboundPlayPacket {
fn from(p: Respawn) -> Self {
Self::Respawn(p)
}
}
pub type EntityHeadRotation = crate::defs::p47::play::clientbound::EntityHeadRotation<776>;
impl crate::packet::Packet for EntityHeadRotation {
const ID: i32 = id::ENTITY_HEAD_ROTATION;
const NAME: &'static str = "entity_head_rotation";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityHeadRotation> for ClientboundPlayPacket {
fn from(p: EntityHeadRotation) -> Self {
Self::EntityHeadRotation(p)
}
}
pub type MultiBlockChange = crate::defs::p775::play::clientbound::MultiBlockChange<776>;
impl crate::packet::Packet for MultiBlockChange {
const ID: i32 = id::MULTI_BLOCK_CHANGE;
const NAME: &'static str = "multi_block_change";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<MultiBlockChange> for ClientboundPlayPacket {
fn from(p: MultiBlockChange) -> Self {
Self::MultiBlockChange(p)
}
}
pub type SelectAdvancementTab = crate::defs::p340::play::clientbound::SelectAdvancementTab<776>;
impl crate::packet::Packet for SelectAdvancementTab {
const ID: i32 = id::SELECT_ADVANCEMENT_TAB;
const NAME: &'static str = "select_advancement_tab";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SelectAdvancementTab> for ClientboundPlayPacket {
fn from(p: SelectAdvancementTab) -> Self {
Self::SelectAdvancementTab(p)
}
}
pub type ServerData = crate::defs::p775::play::clientbound::ServerData<776>;
impl crate::packet::Packet for ServerData {
const ID: i32 = id::SERVER_DATA;
const NAME: &'static str = "server_data";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ServerData> for ClientboundPlayPacket {
fn from(p: ServerData) -> Self {
Self::ServerData(p)
}
}
pub type ActionBar = crate::defs::p775::play::clientbound::ActionBar<776>;
impl crate::packet::Packet for ActionBar {
const ID: i32 = id::ACTION_BAR;
const NAME: &'static str = "action_bar";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ActionBar> for ClientboundPlayPacket {
fn from(p: ActionBar) -> Self {
Self::ActionBar(p)
}
}
pub type WorldBorderCenter = crate::defs::p775::play::clientbound::WorldBorderCenter<776>;
impl crate::packet::Packet for WorldBorderCenter {
const ID: i32 = id::WORLD_BORDER_CENTER;
const NAME: &'static str = "world_border_center";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldBorderCenter> for ClientboundPlayPacket {
fn from(p: WorldBorderCenter) -> Self {
Self::WorldBorderCenter(p)
}
}
pub type WorldBorderLerpSize = crate::defs::p775::play::clientbound::WorldBorderLerpSize<776>;
impl crate::packet::Packet for WorldBorderLerpSize {
const ID: i32 = id::WORLD_BORDER_LERP_SIZE;
const NAME: &'static str = "world_border_lerp_size";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldBorderLerpSize> for ClientboundPlayPacket {
fn from(p: WorldBorderLerpSize) -> Self {
Self::WorldBorderLerpSize(p)
}
}
pub type WorldBorderSize = crate::defs::p775::play::clientbound::WorldBorderSize<776>;
impl crate::packet::Packet for WorldBorderSize {
const ID: i32 = id::WORLD_BORDER_SIZE;
const NAME: &'static str = "world_border_size";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldBorderSize> for ClientboundPlayPacket {
fn from(p: WorldBorderSize) -> Self {
Self::WorldBorderSize(p)
}
}
pub type WorldBorderWarningDelay =
crate::defs::p775::play::clientbound::WorldBorderWarningDelay<776>;
impl crate::packet::Packet for WorldBorderWarningDelay {
const ID: i32 = id::WORLD_BORDER_WARNING_DELAY;
const NAME: &'static str = "world_border_warning_delay";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldBorderWarningDelay> for ClientboundPlayPacket {
fn from(p: WorldBorderWarningDelay) -> Self {
Self::WorldBorderWarningDelay(p)
}
}
pub type WorldBorderWarningReach =
crate::defs::p775::play::clientbound::WorldBorderWarningReach<776>;
impl crate::packet::Packet for WorldBorderWarningReach {
const ID: i32 = id::WORLD_BORDER_WARNING_REACH;
const NAME: &'static str = "world_border_warning_reach";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<WorldBorderWarningReach> for ClientboundPlayPacket {
fn from(p: WorldBorderWarningReach) -> Self {
Self::WorldBorderWarningReach(p)
}
}
pub type Camera = crate::defs::p47::play::clientbound::Camera<776>;
impl crate::packet::Packet for Camera {
const ID: i32 = id::CAMERA;
const NAME: &'static str = "camera";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Camera> for ClientboundPlayPacket {
fn from(p: Camera) -> Self {
Self::Camera(p)
}
}
pub type UpdateViewPosition = crate::defs::p754::play::clientbound::UpdateViewPosition<776>;
impl crate::packet::Packet for UpdateViewPosition {
const ID: i32 = id::UPDATE_VIEW_POSITION;
const NAME: &'static str = "update_view_position";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<UpdateViewPosition> for ClientboundPlayPacket {
fn from(p: UpdateViewPosition) -> Self {
Self::UpdateViewPosition(p)
}
}
pub type UpdateViewDistance = crate::defs::p754::play::clientbound::UpdateViewDistance<776>;
impl crate::packet::Packet for UpdateViewDistance {
const ID: i32 = id::UPDATE_VIEW_DISTANCE;
const NAME: &'static str = "update_view_distance";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<UpdateViewDistance> for ClientboundPlayPacket {
fn from(p: UpdateViewDistance) -> Self {
Self::UpdateViewDistance(p)
}
}
pub type SetCursorItem = crate::defs::p776::play::clientbound::SetCursorItem<776>;
impl crate::packet::Packet for SetCursorItem {
const ID: i32 = id::SET_CURSOR_ITEM;
const NAME: &'static str = "set_cursor_item";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetCursorItem> for ClientboundPlayPacket {
fn from(p: SetCursorItem) -> Self {
Self::SetCursorItem(p)
}
}
pub type SpawnPosition = crate::defs::p775::play::clientbound::SpawnPosition<776>;
impl crate::packet::Packet for SpawnPosition {
const ID: i32 = id::SPAWN_POSITION;
const NAME: &'static str = "spawn_position";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SpawnPosition> for ClientboundPlayPacket {
fn from(p: SpawnPosition) -> Self {
Self::SpawnPosition(p)
}
}
pub type ScoreboardDisplayObjective =
crate::defs::p775::play::clientbound::ScoreboardDisplayObjective<776>;
impl crate::packet::Packet for ScoreboardDisplayObjective {
const ID: i32 = id::SCOREBOARD_DISPLAY_OBJECTIVE;
const NAME: &'static str = "scoreboard_display_objective";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ScoreboardDisplayObjective> for ClientboundPlayPacket {
fn from(p: ScoreboardDisplayObjective) -> Self {
Self::ScoreboardDisplayObjective(p)
}
}
pub type EntityMetadata = crate::defs::p776::play::clientbound::EntityMetadata<776>;
impl crate::packet::Packet for EntityMetadata {
const ID: i32 = id::ENTITY_METADATA;
const NAME: &'static str = "entity_metadata";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityMetadata> for ClientboundPlayPacket {
fn from(p: EntityMetadata) -> Self {
Self::EntityMetadata(p)
}
}
pub type AttachEntity = crate::defs::p340::play::clientbound::AttachEntity<776>;
impl crate::packet::Packet for AttachEntity {
const ID: i32 = id::ATTACH_ENTITY;
const NAME: &'static str = "attach_entity";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<AttachEntity> for ClientboundPlayPacket {
fn from(p: AttachEntity) -> Self {
Self::AttachEntity(p)
}
}
pub type EntityVelocity = crate::defs::p775::play::clientbound::EntityVelocity<776>;
impl crate::packet::Packet for EntityVelocity {
const ID: i32 = id::ENTITY_VELOCITY;
const NAME: &'static str = "entity_velocity";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityVelocity> for ClientboundPlayPacket {
fn from(p: EntityVelocity) -> Self {
Self::EntityVelocity(p)
}
}
pub type EntityEquipment = crate::defs::p776::play::clientbound::EntityEquipment<776>;
impl crate::packet::Packet for EntityEquipment {
const ID: i32 = id::ENTITY_EQUIPMENT;
const NAME: &'static str = "entity_equipment";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityEquipment> for ClientboundPlayPacket {
fn from(p: EntityEquipment) -> Self {
Self::EntityEquipment(p)
}
}
pub type Experience = crate::defs::p47::play::clientbound::Experience<776>;
impl crate::packet::Packet for Experience {
const ID: i32 = id::EXPERIENCE;
const NAME: &'static str = "experience";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Experience> for ClientboundPlayPacket {
fn from(p: Experience) -> Self {
Self::Experience(p)
}
}
pub type UpdateHealth = crate::defs::p47::play::clientbound::UpdateHealth<776>;
impl crate::packet::Packet for UpdateHealth {
const ID: i32 = id::UPDATE_HEALTH;
const NAME: &'static str = "update_health";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<UpdateHealth> for ClientboundPlayPacket {
fn from(p: UpdateHealth) -> Self {
Self::UpdateHealth(p)
}
}
pub type HeldItemSlot = crate::defs::p775::play::clientbound::HeldItemSlot<776>;
impl crate::packet::Packet for HeldItemSlot {
const ID: i32 = id::HELD_ITEM_SLOT;
const NAME: &'static str = "held_item_slot";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<HeldItemSlot> for ClientboundPlayPacket {
fn from(p: HeldItemSlot) -> Self {
Self::HeldItemSlot(p)
}
}
pub type ScoreboardObjective = crate::defs::p775::play::clientbound::ScoreboardObjective<776>;
impl crate::packet::Packet for ScoreboardObjective {
const ID: i32 = id::SCOREBOARD_OBJECTIVE;
const NAME: &'static str = "scoreboard_objective";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ScoreboardObjective> for ClientboundPlayPacket {
fn from(p: ScoreboardObjective) -> Self {
Self::ScoreboardObjective(p)
}
}
pub type SetPassengers = crate::defs::p340::play::clientbound::SetPassengers<776>;
impl crate::packet::Packet for SetPassengers {
const ID: i32 = id::SET_PASSENGERS;
const NAME: &'static str = "set_passengers";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetPassengers> for ClientboundPlayPacket {
fn from(p: SetPassengers) -> Self {
Self::SetPassengers(p)
}
}
pub type SetPlayerInventory = crate::defs::p776::play::clientbound::SetPlayerInventory<776>;
impl crate::packet::Packet for SetPlayerInventory {
const ID: i32 = id::SET_PLAYER_INVENTORY;
const NAME: &'static str = "set_player_inventory";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetPlayerInventory> for ClientboundPlayPacket {
fn from(p: SetPlayerInventory) -> Self {
Self::SetPlayerInventory(p)
}
}
pub type Teams = crate::defs::p776::play::clientbound::Teams<776>;
impl crate::packet::Packet for Teams {
const ID: i32 = id::TEAMS;
const NAME: &'static str = "teams";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Teams> for ClientboundPlayPacket {
fn from(p: Teams) -> Self {
Self::Teams(p)
}
}
pub type ScoreboardScore = crate::defs::p775::play::clientbound::ScoreboardScore<776>;
impl crate::packet::Packet for ScoreboardScore {
const ID: i32 = id::SCOREBOARD_SCORE;
const NAME: &'static str = "scoreboard_score";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ScoreboardScore> for ClientboundPlayPacket {
fn from(p: ScoreboardScore) -> Self {
Self::ScoreboardScore(p)
}
}
pub type SimulationDistance = crate::defs::p775::play::clientbound::SimulationDistance<776>;
impl crate::packet::Packet for SimulationDistance {
const ID: i32 = id::SIMULATION_DISTANCE;
const NAME: &'static str = "simulation_distance";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SimulationDistance> for ClientboundPlayPacket {
fn from(p: SimulationDistance) -> Self {
Self::SimulationDistance(p)
}
}
pub type SetTitleSubtitle = crate::defs::p775::play::clientbound::SetTitleSubtitle<776>;
impl crate::packet::Packet for SetTitleSubtitle {
const ID: i32 = id::SET_TITLE_SUBTITLE;
const NAME: &'static str = "set_title_subtitle";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetTitleSubtitle> for ClientboundPlayPacket {
fn from(p: SetTitleSubtitle) -> Self {
Self::SetTitleSubtitle(p)
}
}
pub type UpdateTime = crate::defs::p775::play::clientbound::UpdateTime<776>;
impl crate::packet::Packet for UpdateTime {
const ID: i32 = id::UPDATE_TIME;
const NAME: &'static str = "update_time";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<UpdateTime> for ClientboundPlayPacket {
fn from(p: UpdateTime) -> Self {
Self::UpdateTime(p)
}
}
pub type SetTitleText = crate::defs::p775::play::clientbound::SetTitleText<776>;
impl crate::packet::Packet for SetTitleText {
const ID: i32 = id::SET_TITLE_TEXT;
const NAME: &'static str = "set_title_text";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetTitleText> for ClientboundPlayPacket {
fn from(p: SetTitleText) -> Self {
Self::SetTitleText(p)
}
}
pub type SetTitleTime = crate::defs::p775::play::clientbound::SetTitleTime<776>;
impl crate::packet::Packet for SetTitleTime {
const ID: i32 = id::SET_TITLE_TIME;
const NAME: &'static str = "set_title_time";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetTitleTime> for ClientboundPlayPacket {
fn from(p: SetTitleTime) -> Self {
Self::SetTitleTime(p)
}
}
pub type EntitySoundEffect = crate::defs::p775::play::clientbound::EntitySoundEffect<776>;
impl crate::packet::Packet for EntitySoundEffect {
const ID: i32 = id::ENTITY_SOUND_EFFECT;
const NAME: &'static str = "entity_sound_effect";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntitySoundEffect> for ClientboundPlayPacket {
fn from(p: EntitySoundEffect) -> Self {
Self::EntitySoundEffect(p)
}
}
pub type SoundEffect = crate::defs::p775::play::clientbound::SoundEffect<776>;
impl crate::packet::Packet for SoundEffect {
const ID: i32 = id::SOUND_EFFECT;
const NAME: &'static str = "sound_effect";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SoundEffect> for ClientboundPlayPacket {
fn from(p: SoundEffect) -> Self {
Self::SoundEffect(p)
}
}
pub type StartConfiguration = crate::defs::p775::play::clientbound::StartConfiguration<776>;
impl crate::packet::Packet for StartConfiguration {
const ID: i32 = id::START_CONFIGURATION;
const NAME: &'static str = "start_configuration";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<StartConfiguration> for ClientboundPlayPacket {
fn from(p: StartConfiguration) -> Self {
Self::StartConfiguration(p)
}
}
pub type StopSound = crate::defs::p754::play::clientbound::StopSound<776>;
impl crate::packet::Packet for StopSound {
const ID: i32 = id::STOP_SOUND;
const NAME: &'static str = "stop_sound";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<StopSound> for ClientboundPlayPacket {
fn from(p: StopSound) -> Self {
Self::StopSound(p)
}
}
pub type StoreCookie = crate::defs::p775::play::clientbound::StoreCookie<776>;
impl crate::packet::Packet for StoreCookie {
const ID: i32 = id::STORE_COOKIE;
const NAME: &'static str = "store_cookie";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<StoreCookie> for ClientboundPlayPacket {
fn from(p: StoreCookie) -> Self {
Self::StoreCookie(p)
}
}
pub type SystemChat = crate::defs::p775::play::clientbound::SystemChat<776>;
impl crate::packet::Packet for SystemChat {
const ID: i32 = id::SYSTEM_CHAT;
const NAME: &'static str = "system_chat";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SystemChat> for ClientboundPlayPacket {
fn from(p: SystemChat) -> Self {
Self::SystemChat(p)
}
}
pub type PlayerlistHeader = crate::defs::p775::play::clientbound::PlayerlistHeader<776>;
impl crate::packet::Packet for PlayerlistHeader {
const ID: i32 = id::PLAYERLIST_HEADER;
const NAME: &'static str = "playerlist_header";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<PlayerlistHeader> for ClientboundPlayPacket {
fn from(p: PlayerlistHeader) -> Self {
Self::PlayerlistHeader(p)
}
}
pub type NbtQueryResponse = crate::defs::p775::play::clientbound::NbtQueryResponse<776>;
impl crate::packet::Packet for NbtQueryResponse {
const ID: i32 = id::NBT_QUERY_RESPONSE;
const NAME: &'static str = "nbt_query_response";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<NbtQueryResponse> for ClientboundPlayPacket {
fn from(p: NbtQueryResponse) -> Self {
Self::NbtQueryResponse(p)
}
}
pub type Collect = crate::defs::p340::play::clientbound::Collect<776>;
impl crate::packet::Packet for Collect {
const ID: i32 = id::COLLECT;
const NAME: &'static str = "collect";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Collect> for ClientboundPlayPacket {
fn from(p: Collect) -> Self {
Self::Collect(p)
}
}
pub type EntityTeleport = crate::defs::p775::play::clientbound::EntityTeleport<776>;
impl crate::packet::Packet for EntityTeleport {
const ID: i32 = id::ENTITY_TELEPORT;
const NAME: &'static str = "entity_teleport";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityTeleport> for ClientboundPlayPacket {
fn from(p: EntityTeleport) -> Self {
Self::EntityTeleport(p)
}
}
pub type TestInstanceBlockStatus =
crate::defs::p775::play::clientbound::TestInstanceBlockStatus<776>;
impl crate::packet::Packet for TestInstanceBlockStatus {
const ID: i32 = id::TEST_INSTANCE_BLOCK_STATUS;
const NAME: &'static str = "test_instance_block_status";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<TestInstanceBlockStatus> for ClientboundPlayPacket {
fn from(p: TestInstanceBlockStatus) -> Self {
Self::TestInstanceBlockStatus(p)
}
}
pub type SetTickingState = crate::defs::p775::play::clientbound::SetTickingState<776>;
impl crate::packet::Packet for SetTickingState {
const ID: i32 = id::SET_TICKING_STATE;
const NAME: &'static str = "set_ticking_state";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetTickingState> for ClientboundPlayPacket {
fn from(p: SetTickingState) -> Self {
Self::SetTickingState(p)
}
}
pub type StepTick = crate::defs::p775::play::clientbound::StepTick<776>;
impl crate::packet::Packet for StepTick {
const ID: i32 = id::STEP_TICK;
const NAME: &'static str = "step_tick";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<StepTick> for ClientboundPlayPacket {
fn from(p: StepTick) -> Self {
Self::StepTick(p)
}
}
pub type Transfer = crate::defs::p775::play::clientbound::Transfer<776>;
impl crate::packet::Packet for Transfer {
const ID: i32 = id::TRANSFER;
const NAME: &'static str = "transfer";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Transfer> for ClientboundPlayPacket {
fn from(p: Transfer) -> Self {
Self::Transfer(p)
}
}
pub type Advancements = crate::defs::p776::play::clientbound::Advancements<776>;
impl crate::packet::Packet for Advancements {
const ID: i32 = id::ADVANCEMENTS;
const NAME: &'static str = "advancements";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Advancements> for ClientboundPlayPacket {
fn from(p: Advancements) -> Self {
Self::Advancements(p)
}
}
pub type EntityUpdateAttributes = crate::defs::p776::play::clientbound::EntityUpdateAttributes<776>;
impl crate::packet::Packet for EntityUpdateAttributes {
const ID: i32 = id::ENTITY_UPDATE_ATTRIBUTES;
const NAME: &'static str = "entity_update_attributes";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityUpdateAttributes> for ClientboundPlayPacket {
fn from(p: EntityUpdateAttributes) -> Self {
Self::EntityUpdateAttributes(p)
}
}
pub type EntityEffect = crate::defs::p775::play::clientbound::EntityEffect<776>;
impl crate::packet::Packet for EntityEffect {
const ID: i32 = id::ENTITY_EFFECT;
const NAME: &'static str = "entity_effect";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<EntityEffect> for ClientboundPlayPacket {
fn from(p: EntityEffect) -> Self {
Self::EntityEffect(p)
}
}
pub type DeclareRecipes = crate::defs::p776::play::clientbound::DeclareRecipes<776>;
impl crate::packet::Packet for DeclareRecipes {
const ID: i32 = id::DECLARE_RECIPES;
const NAME: &'static str = "declare_recipes";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<DeclareRecipes> for ClientboundPlayPacket {
fn from(p: DeclareRecipes) -> Self {
Self::DeclareRecipes(p)
}
}
pub type Tags = crate::defs::p775::play::clientbound::Tags<776>;
impl crate::packet::Packet for Tags {
const ID: i32 = id::TAGS;
const NAME: &'static str = "tags";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<Tags> for ClientboundPlayPacket {
fn from(p: Tags) -> Self {
Self::Tags(p)
}
}
pub type SetProjectilePower = crate::defs::p775::play::clientbound::SetProjectilePower<776>;
impl crate::packet::Packet for SetProjectilePower {
const ID: i32 = id::SET_PROJECTILE_POWER;
const NAME: &'static str = "set_projectile_power";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<SetProjectilePower> for ClientboundPlayPacket {
fn from(p: SetProjectilePower) -> Self {
Self::SetProjectilePower(p)
}
}
pub type CustomReportDetails = crate::defs::p775::play::clientbound::CustomReportDetails<776>;
impl crate::packet::Packet for CustomReportDetails {
const ID: i32 = id::CUSTOM_REPORT_DETAILS;
const NAME: &'static str = "custom_report_details";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<CustomReportDetails> for ClientboundPlayPacket {
fn from(p: CustomReportDetails) -> Self {
Self::CustomReportDetails(p)
}
}
pub type ServerLinks = crate::defs::p775::play::clientbound::ServerLinks<776>;
impl crate::packet::Packet for ServerLinks {
const ID: i32 = id::SERVER_LINKS;
const NAME: &'static str = "server_links";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ServerLinks> for ClientboundPlayPacket {
fn from(p: ServerLinks) -> Self {
Self::ServerLinks(p)
}
}
pub type TrackedWaypoint = crate::defs::p775::play::clientbound::TrackedWaypoint<776>;
impl crate::packet::Packet for TrackedWaypoint {
const ID: i32 = id::TRACKED_WAYPOINT;
const NAME: &'static str = "tracked_waypoint";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<TrackedWaypoint> for ClientboundPlayPacket {
fn from(p: TrackedWaypoint) -> Self {
Self::TrackedWaypoint(p)
}
}
pub type ClearDialog = crate::defs::p775::play::clientbound::ClearDialog<776>;
impl crate::packet::Packet for ClearDialog {
const ID: i32 = id::CLEAR_DIALOG;
const NAME: &'static str = "clear_dialog";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ClearDialog> for ClientboundPlayPacket {
fn from(p: ClearDialog) -> Self {
Self::ClearDialog(p)
}
}
pub type ShowDialog = crate::defs::p775::play::clientbound::ShowDialog<776>;
impl crate::packet::Packet for ShowDialog {
const ID: i32 = id::SHOW_DIALOG;
const NAME: &'static str = "show_dialog";
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
}
impl From<ShowDialog> for ClientboundPlayPacket {
fn from(p: ShowDialog) -> Self {
Self::ShowDialog(p)
}
}
#[derive(Debug, Clone, PartialEq)]
pub enum ClientboundPlayPacket {
BundleDelimiter(BundleDelimiter),
SpawnEntity(SpawnEntity),
Animation(Animation),
Statistics(Statistics),
AcknowledgePlayerDigging(AcknowledgePlayerDigging),
BlockBreakAnimation(BlockBreakAnimation),
TileEntityData(TileEntityData),
BlockAction(BlockAction),
BlockChange(BlockChange),
BossBar(BossBar),
Difficulty(Difficulty),
ChunkBatchFinished(ChunkBatchFinished),
ChunkBatchStart(ChunkBatchStart),
ChunkBiomes(ChunkBiomes),
ClearTitles(ClearTitles),
TabComplete(TabComplete),
DeclareCommands(DeclareCommands),
CloseWindow(CloseWindow),
WindowItems(WindowItems),
CraftProgressBar(CraftProgressBar),
SetSlot(SetSlot),
CookieRequest(CookieRequest),
SetCooldown(SetCooldown),
ChatSuggestions(ChatSuggestions),
CustomPayload(CustomPayload),
DamageEvent(DamageEvent),
DebugBlockValue(DebugBlockValue),
DebugChunkValue(DebugChunkValue),
DebugEntityValue(DebugEntityValue),
DebugEvent(DebugEvent),
DebugSample(DebugSample),
HideMessage(HideMessage),
KickDisconnect(KickDisconnect),
ProfilelessChat(ProfilelessChat),
EntityStatus(EntityStatus),
SyncEntityPosition(SyncEntityPosition),
Explosion(Explosion),
UnloadChunk(UnloadChunk),
GameStateChange(GameStateChange),
GameRuleValues(GameRuleValues),
GameTestHighlightPos(GameTestHighlightPos),
OpenHorseWindow(OpenHorseWindow),
HurtAnimation(HurtAnimation),
InitializeWorldBorder(InitializeWorldBorder),
KeepAlive(KeepAlive),
MapChunk(MapChunk),
WorldEvent(WorldEvent),
WorldParticles(WorldParticles),
UpdateLight(UpdateLight),
Login(Login),
LowDiskSpaceWarning(LowDiskSpaceWarning),
Map(Map),
TradeList(TradeList),
RelEntityMove(RelEntityMove),
EntityMoveLook(EntityMoveLook),
MoveMinecart(MoveMinecart),
EntityLook(EntityLook),
VehicleMove(VehicleMove),
OpenBook(OpenBook),
OpenWindow(OpenWindow),
OpenSignEntity(OpenSignEntity),
Ping(Ping),
PingResponse(PingResponse),
CraftRecipeResponse(CraftRecipeResponse),
Abilities(Abilities),
PlayerChat(PlayerChat),
EndCombatEvent(EndCombatEvent),
EnterCombatEvent(EnterCombatEvent),
DeathCombatEvent(DeathCombatEvent),
PlayerRemove(PlayerRemove),
PlayerInfo(PlayerInfo),
FacePlayer(FacePlayer),
Position(Position),
PlayerRotation(PlayerRotation),
RecipeBookAdd(RecipeBookAdd),
RecipeBookRemove(RecipeBookRemove),
RecipeBookSettings(RecipeBookSettings),
EntityDestroy(EntityDestroy),
RemoveEntityEffect(RemoveEntityEffect),
ResetScore(ResetScore),
RemoveResourcePack(RemoveResourcePack),
AddResourcePack(AddResourcePack),
Respawn(Respawn),
EntityHeadRotation(EntityHeadRotation),
MultiBlockChange(MultiBlockChange),
SelectAdvancementTab(SelectAdvancementTab),
ServerData(ServerData),
ActionBar(ActionBar),
WorldBorderCenter(WorldBorderCenter),
WorldBorderLerpSize(WorldBorderLerpSize),
WorldBorderSize(WorldBorderSize),
WorldBorderWarningDelay(WorldBorderWarningDelay),
WorldBorderWarningReach(WorldBorderWarningReach),
Camera(Camera),
UpdateViewPosition(UpdateViewPosition),
UpdateViewDistance(UpdateViewDistance),
SetCursorItem(SetCursorItem),
SpawnPosition(SpawnPosition),
ScoreboardDisplayObjective(ScoreboardDisplayObjective),
EntityMetadata(EntityMetadata),
AttachEntity(AttachEntity),
EntityVelocity(EntityVelocity),
EntityEquipment(EntityEquipment),
Experience(Experience),
UpdateHealth(UpdateHealth),
HeldItemSlot(HeldItemSlot),
ScoreboardObjective(ScoreboardObjective),
SetPassengers(SetPassengers),
SetPlayerInventory(SetPlayerInventory),
Teams(Teams),
ScoreboardScore(ScoreboardScore),
SimulationDistance(SimulationDistance),
SetTitleSubtitle(SetTitleSubtitle),
UpdateTime(UpdateTime),
SetTitleText(SetTitleText),
SetTitleTime(SetTitleTime),
EntitySoundEffect(EntitySoundEffect),
SoundEffect(SoundEffect),
StartConfiguration(StartConfiguration),
StopSound(StopSound),
StoreCookie(StoreCookie),
SystemChat(SystemChat),
PlayerlistHeader(PlayerlistHeader),
NbtQueryResponse(NbtQueryResponse),
Collect(Collect),
EntityTeleport(EntityTeleport),
TestInstanceBlockStatus(TestInstanceBlockStatus),
SetTickingState(SetTickingState),
StepTick(StepTick),
Transfer(Transfer),
Advancements(Advancements),
EntityUpdateAttributes(EntityUpdateAttributes),
EntityEffect(EntityEffect),
DeclareRecipes(DeclareRecipes),
Tags(Tags),
SetProjectilePower(SetProjectilePower),
CustomReportDetails(CustomReportDetails),
ServerLinks(ServerLinks),
TrackedWaypoint(TrackedWaypoint),
ClearDialog(ClearDialog),
ShowDialog(ShowDialog),
}
impl PacketSet for ClientboundPlayPacket {
const STATE: State = State::Play;
const DIRECTION: Direction = Direction::Clientbound;
fn decode_raw(raw: &RawPacket) -> DecodeResult<Self> {
match raw.id {
id::BUNDLE_DELIMITER => decode_exact(&raw.body).map(Self::BundleDelimiter),
id::SPAWN_ENTITY => decode_exact(&raw.body).map(Self::SpawnEntity),
id::ANIMATION => decode_exact(&raw.body).map(Self::Animation),
id::STATISTICS => decode_exact(&raw.body).map(Self::Statistics),
id::ACKNOWLEDGE_PLAYER_DIGGING => {
decode_exact(&raw.body).map(Self::AcknowledgePlayerDigging)
}
id::BLOCK_BREAK_ANIMATION => decode_exact(&raw.body).map(Self::BlockBreakAnimation),
id::TILE_ENTITY_DATA => decode_exact(&raw.body).map(Self::TileEntityData),
id::BLOCK_ACTION => decode_exact(&raw.body).map(Self::BlockAction),
id::BLOCK_CHANGE => decode_exact(&raw.body).map(Self::BlockChange),
id::BOSS_BAR => decode_exact(&raw.body).map(Self::BossBar),
id::DIFFICULTY => decode_exact(&raw.body).map(Self::Difficulty),
id::CHUNK_BATCH_FINISHED => decode_exact(&raw.body).map(Self::ChunkBatchFinished),
id::CHUNK_BATCH_START => decode_exact(&raw.body).map(Self::ChunkBatchStart),
id::CHUNK_BIOMES => decode_exact(&raw.body).map(Self::ChunkBiomes),
id::CLEAR_TITLES => decode_exact(&raw.body).map(Self::ClearTitles),
id::TAB_COMPLETE => decode_exact(&raw.body).map(Self::TabComplete),
id::DECLARE_COMMANDS => decode_exact(&raw.body).map(Self::DeclareCommands),
id::CLOSE_WINDOW => decode_exact(&raw.body).map(Self::CloseWindow),
id::WINDOW_ITEMS => decode_exact(&raw.body).map(Self::WindowItems),
id::CRAFT_PROGRESS_BAR => decode_exact(&raw.body).map(Self::CraftProgressBar),
id::SET_SLOT => decode_exact(&raw.body).map(Self::SetSlot),
id::COOKIE_REQUEST => decode_exact(&raw.body).map(Self::CookieRequest),
id::SET_COOLDOWN => decode_exact(&raw.body).map(Self::SetCooldown),
id::CHAT_SUGGESTIONS => decode_exact(&raw.body).map(Self::ChatSuggestions),
id::CUSTOM_PAYLOAD => decode_exact(&raw.body).map(Self::CustomPayload),
id::DAMAGE_EVENT => decode_exact(&raw.body).map(Self::DamageEvent),
id::DEBUG_BLOCK_VALUE => decode_exact(&raw.body).map(Self::DebugBlockValue),
id::DEBUG_CHUNK_VALUE => decode_exact(&raw.body).map(Self::DebugChunkValue),
id::DEBUG_ENTITY_VALUE => decode_exact(&raw.body).map(Self::DebugEntityValue),
id::DEBUG_EVENT => decode_exact(&raw.body).map(Self::DebugEvent),
id::DEBUG_SAMPLE => decode_exact(&raw.body).map(Self::DebugSample),
id::HIDE_MESSAGE => decode_exact(&raw.body).map(Self::HideMessage),
id::KICK_DISCONNECT => decode_exact(&raw.body).map(Self::KickDisconnect),
id::PROFILELESS_CHAT => decode_exact(&raw.body).map(Self::ProfilelessChat),
id::ENTITY_STATUS => decode_exact(&raw.body).map(Self::EntityStatus),
id::SYNC_ENTITY_POSITION => decode_exact(&raw.body).map(Self::SyncEntityPosition),
id::EXPLOSION => decode_exact(&raw.body).map(Self::Explosion),
id::UNLOAD_CHUNK => decode_exact(&raw.body).map(Self::UnloadChunk),
id::GAME_STATE_CHANGE => decode_exact(&raw.body).map(Self::GameStateChange),
id::GAME_RULE_VALUES => decode_exact(&raw.body).map(Self::GameRuleValues),
id::GAME_TEST_HIGHLIGHT_POS => decode_exact(&raw.body).map(Self::GameTestHighlightPos),
id::OPEN_HORSE_WINDOW => decode_exact(&raw.body).map(Self::OpenHorseWindow),
id::HURT_ANIMATION => decode_exact(&raw.body).map(Self::HurtAnimation),
id::INITIALIZE_WORLD_BORDER => decode_exact(&raw.body).map(Self::InitializeWorldBorder),
id::KEEP_ALIVE => decode_exact(&raw.body).map(Self::KeepAlive),
id::MAP_CHUNK => decode_exact(&raw.body).map(Self::MapChunk),
id::WORLD_EVENT => decode_exact(&raw.body).map(Self::WorldEvent),
id::WORLD_PARTICLES => decode_exact(&raw.body).map(Self::WorldParticles),
id::UPDATE_LIGHT => decode_exact(&raw.body).map(Self::UpdateLight),
id::LOGIN => decode_exact(&raw.body).map(Self::Login),
id::LOW_DISK_SPACE_WARNING => decode_exact(&raw.body).map(Self::LowDiskSpaceWarning),
id::MAP => decode_exact(&raw.body).map(Self::Map),
id::TRADE_LIST => decode_exact(&raw.body).map(Self::TradeList),
id::REL_ENTITY_MOVE => decode_exact(&raw.body).map(Self::RelEntityMove),
id::ENTITY_MOVE_LOOK => decode_exact(&raw.body).map(Self::EntityMoveLook),
id::MOVE_MINECART => decode_exact(&raw.body).map(Self::MoveMinecart),
id::ENTITY_LOOK => decode_exact(&raw.body).map(Self::EntityLook),
id::VEHICLE_MOVE => decode_exact(&raw.body).map(Self::VehicleMove),
id::OPEN_BOOK => decode_exact(&raw.body).map(Self::OpenBook),
id::OPEN_WINDOW => decode_exact(&raw.body).map(Self::OpenWindow),
id::OPEN_SIGN_ENTITY => decode_exact(&raw.body).map(Self::OpenSignEntity),
id::PING => decode_exact(&raw.body).map(Self::Ping),
id::PING_RESPONSE => decode_exact(&raw.body).map(Self::PingResponse),
id::CRAFT_RECIPE_RESPONSE => decode_exact(&raw.body).map(Self::CraftRecipeResponse),
id::ABILITIES => decode_exact(&raw.body).map(Self::Abilities),
id::PLAYER_CHAT => decode_exact(&raw.body).map(Self::PlayerChat),
id::END_COMBAT_EVENT => decode_exact(&raw.body).map(Self::EndCombatEvent),
id::ENTER_COMBAT_EVENT => decode_exact(&raw.body).map(Self::EnterCombatEvent),
id::DEATH_COMBAT_EVENT => decode_exact(&raw.body).map(Self::DeathCombatEvent),
id::PLAYER_REMOVE => decode_exact(&raw.body).map(Self::PlayerRemove),
id::PLAYER_INFO => decode_exact(&raw.body).map(Self::PlayerInfo),
id::FACE_PLAYER => decode_exact(&raw.body).map(Self::FacePlayer),
id::POSITION => decode_exact(&raw.body).map(Self::Position),
id::PLAYER_ROTATION => decode_exact(&raw.body).map(Self::PlayerRotation),
id::RECIPE_BOOK_ADD => decode_exact(&raw.body).map(Self::RecipeBookAdd),
id::RECIPE_BOOK_REMOVE => decode_exact(&raw.body).map(Self::RecipeBookRemove),
id::RECIPE_BOOK_SETTINGS => decode_exact(&raw.body).map(Self::RecipeBookSettings),
id::ENTITY_DESTROY => decode_exact(&raw.body).map(Self::EntityDestroy),
id::REMOVE_ENTITY_EFFECT => decode_exact(&raw.body).map(Self::RemoveEntityEffect),
id::RESET_SCORE => decode_exact(&raw.body).map(Self::ResetScore),
id::REMOVE_RESOURCE_PACK => decode_exact(&raw.body).map(Self::RemoveResourcePack),
id::ADD_RESOURCE_PACK => decode_exact(&raw.body).map(Self::AddResourcePack),
id::RESPAWN => decode_exact(&raw.body).map(Self::Respawn),
id::ENTITY_HEAD_ROTATION => decode_exact(&raw.body).map(Self::EntityHeadRotation),
id::MULTI_BLOCK_CHANGE => decode_exact(&raw.body).map(Self::MultiBlockChange),
id::SELECT_ADVANCEMENT_TAB => decode_exact(&raw.body).map(Self::SelectAdvancementTab),
id::SERVER_DATA => decode_exact(&raw.body).map(Self::ServerData),
id::ACTION_BAR => decode_exact(&raw.body).map(Self::ActionBar),
id::WORLD_BORDER_CENTER => decode_exact(&raw.body).map(Self::WorldBorderCenter),
id::WORLD_BORDER_LERP_SIZE => decode_exact(&raw.body).map(Self::WorldBorderLerpSize),
id::WORLD_BORDER_SIZE => decode_exact(&raw.body).map(Self::WorldBorderSize),
id::WORLD_BORDER_WARNING_DELAY => {
decode_exact(&raw.body).map(Self::WorldBorderWarningDelay)
}
id::WORLD_BORDER_WARNING_REACH => {
decode_exact(&raw.body).map(Self::WorldBorderWarningReach)
}
id::CAMERA => decode_exact(&raw.body).map(Self::Camera),
id::UPDATE_VIEW_POSITION => decode_exact(&raw.body).map(Self::UpdateViewPosition),
id::UPDATE_VIEW_DISTANCE => decode_exact(&raw.body).map(Self::UpdateViewDistance),
id::SET_CURSOR_ITEM => decode_exact(&raw.body).map(Self::SetCursorItem),
id::SPAWN_POSITION => decode_exact(&raw.body).map(Self::SpawnPosition),
id::SCOREBOARD_DISPLAY_OBJECTIVE => {
decode_exact(&raw.body).map(Self::ScoreboardDisplayObjective)
}
id::ENTITY_METADATA => decode_exact(&raw.body).map(Self::EntityMetadata),
id::ATTACH_ENTITY => decode_exact(&raw.body).map(Self::AttachEntity),
id::ENTITY_VELOCITY => decode_exact(&raw.body).map(Self::EntityVelocity),
id::ENTITY_EQUIPMENT => decode_exact(&raw.body).map(Self::EntityEquipment),
id::EXPERIENCE => decode_exact(&raw.body).map(Self::Experience),
id::UPDATE_HEALTH => decode_exact(&raw.body).map(Self::UpdateHealth),
id::HELD_ITEM_SLOT => decode_exact(&raw.body).map(Self::HeldItemSlot),
id::SCOREBOARD_OBJECTIVE => decode_exact(&raw.body).map(Self::ScoreboardObjective),
id::SET_PASSENGERS => decode_exact(&raw.body).map(Self::SetPassengers),
id::SET_PLAYER_INVENTORY => decode_exact(&raw.body).map(Self::SetPlayerInventory),
id::TEAMS => decode_exact(&raw.body).map(Self::Teams),
id::SCOREBOARD_SCORE => decode_exact(&raw.body).map(Self::ScoreboardScore),
id::SIMULATION_DISTANCE => decode_exact(&raw.body).map(Self::SimulationDistance),
id::SET_TITLE_SUBTITLE => decode_exact(&raw.body).map(Self::SetTitleSubtitle),
id::UPDATE_TIME => decode_exact(&raw.body).map(Self::UpdateTime),
id::SET_TITLE_TEXT => decode_exact(&raw.body).map(Self::SetTitleText),
id::SET_TITLE_TIME => decode_exact(&raw.body).map(Self::SetTitleTime),
id::ENTITY_SOUND_EFFECT => decode_exact(&raw.body).map(Self::EntitySoundEffect),
id::SOUND_EFFECT => decode_exact(&raw.body).map(Self::SoundEffect),
id::START_CONFIGURATION => decode_exact(&raw.body).map(Self::StartConfiguration),
id::STOP_SOUND => decode_exact(&raw.body).map(Self::StopSound),
id::STORE_COOKIE => decode_exact(&raw.body).map(Self::StoreCookie),
id::SYSTEM_CHAT => decode_exact(&raw.body).map(Self::SystemChat),
id::PLAYERLIST_HEADER => decode_exact(&raw.body).map(Self::PlayerlistHeader),
id::NBT_QUERY_RESPONSE => decode_exact(&raw.body).map(Self::NbtQueryResponse),
id::COLLECT => decode_exact(&raw.body).map(Self::Collect),
id::ENTITY_TELEPORT => decode_exact(&raw.body).map(Self::EntityTeleport),
id::TEST_INSTANCE_BLOCK_STATUS => {
decode_exact(&raw.body).map(Self::TestInstanceBlockStatus)
}
id::SET_TICKING_STATE => decode_exact(&raw.body).map(Self::SetTickingState),
id::STEP_TICK => decode_exact(&raw.body).map(Self::StepTick),
id::TRANSFER => decode_exact(&raw.body).map(Self::Transfer),
id::ADVANCEMENTS => decode_exact(&raw.body).map(Self::Advancements),
id::ENTITY_UPDATE_ATTRIBUTES => {
decode_exact(&raw.body).map(Self::EntityUpdateAttributes)
}
id::ENTITY_EFFECT => decode_exact(&raw.body).map(Self::EntityEffect),
id::DECLARE_RECIPES => decode_exact(&raw.body).map(Self::DeclareRecipes),
id::TAGS => decode_exact(&raw.body).map(Self::Tags),
id::SET_PROJECTILE_POWER => decode_exact(&raw.body).map(Self::SetProjectilePower),
id::CUSTOM_REPORT_DETAILS => decode_exact(&raw.body).map(Self::CustomReportDetails),
id::SERVER_LINKS => decode_exact(&raw.body).map(Self::ServerLinks),
id::TRACKED_WAYPOINT => decode_exact(&raw.body).map(Self::TrackedWaypoint),
id::CLEAR_DIALOG => decode_exact(&raw.body).map(Self::ClearDialog),
id::SHOW_DIALOG => decode_exact(&raw.body).map(Self::ShowDialog),
other => Err(DecodeError::UnknownPacketId(other)),
}
}
fn id(&self) -> i32 {
match *self {
Self::BundleDelimiter(_) => id::BUNDLE_DELIMITER,
Self::SpawnEntity(_) => id::SPAWN_ENTITY,
Self::Animation(_) => id::ANIMATION,
Self::Statistics(_) => id::STATISTICS,
Self::AcknowledgePlayerDigging(_) => id::ACKNOWLEDGE_PLAYER_DIGGING,
Self::BlockBreakAnimation(_) => id::BLOCK_BREAK_ANIMATION,
Self::TileEntityData(_) => id::TILE_ENTITY_DATA,
Self::BlockAction(_) => id::BLOCK_ACTION,
Self::BlockChange(_) => id::BLOCK_CHANGE,
Self::BossBar(_) => id::BOSS_BAR,
Self::Difficulty(_) => id::DIFFICULTY,
Self::ChunkBatchFinished(_) => id::CHUNK_BATCH_FINISHED,
Self::ChunkBatchStart(_) => id::CHUNK_BATCH_START,
Self::ChunkBiomes(_) => id::CHUNK_BIOMES,
Self::ClearTitles(_) => id::CLEAR_TITLES,
Self::TabComplete(_) => id::TAB_COMPLETE,
Self::DeclareCommands(_) => id::DECLARE_COMMANDS,
Self::CloseWindow(_) => id::CLOSE_WINDOW,
Self::WindowItems(_) => id::WINDOW_ITEMS,
Self::CraftProgressBar(_) => id::CRAFT_PROGRESS_BAR,
Self::SetSlot(_) => id::SET_SLOT,
Self::CookieRequest(_) => id::COOKIE_REQUEST,
Self::SetCooldown(_) => id::SET_COOLDOWN,
Self::ChatSuggestions(_) => id::CHAT_SUGGESTIONS,
Self::CustomPayload(_) => id::CUSTOM_PAYLOAD,
Self::DamageEvent(_) => id::DAMAGE_EVENT,
Self::DebugBlockValue(_) => id::DEBUG_BLOCK_VALUE,
Self::DebugChunkValue(_) => id::DEBUG_CHUNK_VALUE,
Self::DebugEntityValue(_) => id::DEBUG_ENTITY_VALUE,
Self::DebugEvent(_) => id::DEBUG_EVENT,
Self::DebugSample(_) => id::DEBUG_SAMPLE,
Self::HideMessage(_) => id::HIDE_MESSAGE,
Self::KickDisconnect(_) => id::KICK_DISCONNECT,
Self::ProfilelessChat(_) => id::PROFILELESS_CHAT,
Self::EntityStatus(_) => id::ENTITY_STATUS,
Self::SyncEntityPosition(_) => id::SYNC_ENTITY_POSITION,
Self::Explosion(_) => id::EXPLOSION,
Self::UnloadChunk(_) => id::UNLOAD_CHUNK,
Self::GameStateChange(_) => id::GAME_STATE_CHANGE,
Self::GameRuleValues(_) => id::GAME_RULE_VALUES,
Self::GameTestHighlightPos(_) => id::GAME_TEST_HIGHLIGHT_POS,
Self::OpenHorseWindow(_) => id::OPEN_HORSE_WINDOW,
Self::HurtAnimation(_) => id::HURT_ANIMATION,
Self::InitializeWorldBorder(_) => id::INITIALIZE_WORLD_BORDER,
Self::KeepAlive(_) => id::KEEP_ALIVE,
Self::MapChunk(_) => id::MAP_CHUNK,
Self::WorldEvent(_) => id::WORLD_EVENT,
Self::WorldParticles(_) => id::WORLD_PARTICLES,
Self::UpdateLight(_) => id::UPDATE_LIGHT,
Self::Login(_) => id::LOGIN,
Self::LowDiskSpaceWarning(_) => id::LOW_DISK_SPACE_WARNING,
Self::Map(_) => id::MAP,
Self::TradeList(_) => id::TRADE_LIST,
Self::RelEntityMove(_) => id::REL_ENTITY_MOVE,
Self::EntityMoveLook(_) => id::ENTITY_MOVE_LOOK,
Self::MoveMinecart(_) => id::MOVE_MINECART,
Self::EntityLook(_) => id::ENTITY_LOOK,
Self::VehicleMove(_) => id::VEHICLE_MOVE,
Self::OpenBook(_) => id::OPEN_BOOK,
Self::OpenWindow(_) => id::OPEN_WINDOW,
Self::OpenSignEntity(_) => id::OPEN_SIGN_ENTITY,
Self::Ping(_) => id::PING,
Self::PingResponse(_) => id::PING_RESPONSE,
Self::CraftRecipeResponse(_) => id::CRAFT_RECIPE_RESPONSE,
Self::Abilities(_) => id::ABILITIES,
Self::PlayerChat(_) => id::PLAYER_CHAT,
Self::EndCombatEvent(_) => id::END_COMBAT_EVENT,
Self::EnterCombatEvent(_) => id::ENTER_COMBAT_EVENT,
Self::DeathCombatEvent(_) => id::DEATH_COMBAT_EVENT,
Self::PlayerRemove(_) => id::PLAYER_REMOVE,
Self::PlayerInfo(_) => id::PLAYER_INFO,
Self::FacePlayer(_) => id::FACE_PLAYER,
Self::Position(_) => id::POSITION,
Self::PlayerRotation(_) => id::PLAYER_ROTATION,
Self::RecipeBookAdd(_) => id::RECIPE_BOOK_ADD,
Self::RecipeBookRemove(_) => id::RECIPE_BOOK_REMOVE,
Self::RecipeBookSettings(_) => id::RECIPE_BOOK_SETTINGS,
Self::EntityDestroy(_) => id::ENTITY_DESTROY,
Self::RemoveEntityEffect(_) => id::REMOVE_ENTITY_EFFECT,
Self::ResetScore(_) => id::RESET_SCORE,
Self::RemoveResourcePack(_) => id::REMOVE_RESOURCE_PACK,
Self::AddResourcePack(_) => id::ADD_RESOURCE_PACK,
Self::Respawn(_) => id::RESPAWN,
Self::EntityHeadRotation(_) => id::ENTITY_HEAD_ROTATION,
Self::MultiBlockChange(_) => id::MULTI_BLOCK_CHANGE,
Self::SelectAdvancementTab(_) => id::SELECT_ADVANCEMENT_TAB,
Self::ServerData(_) => id::SERVER_DATA,
Self::ActionBar(_) => id::ACTION_BAR,
Self::WorldBorderCenter(_) => id::WORLD_BORDER_CENTER,
Self::WorldBorderLerpSize(_) => id::WORLD_BORDER_LERP_SIZE,
Self::WorldBorderSize(_) => id::WORLD_BORDER_SIZE,
Self::WorldBorderWarningDelay(_) => id::WORLD_BORDER_WARNING_DELAY,
Self::WorldBorderWarningReach(_) => id::WORLD_BORDER_WARNING_REACH,
Self::Camera(_) => id::CAMERA,
Self::UpdateViewPosition(_) => id::UPDATE_VIEW_POSITION,
Self::UpdateViewDistance(_) => id::UPDATE_VIEW_DISTANCE,
Self::SetCursorItem(_) => id::SET_CURSOR_ITEM,
Self::SpawnPosition(_) => id::SPAWN_POSITION,
Self::ScoreboardDisplayObjective(_) => id::SCOREBOARD_DISPLAY_OBJECTIVE,
Self::EntityMetadata(_) => id::ENTITY_METADATA,
Self::AttachEntity(_) => id::ATTACH_ENTITY,
Self::EntityVelocity(_) => id::ENTITY_VELOCITY,
Self::EntityEquipment(_) => id::ENTITY_EQUIPMENT,
Self::Experience(_) => id::EXPERIENCE,
Self::UpdateHealth(_) => id::UPDATE_HEALTH,
Self::HeldItemSlot(_) => id::HELD_ITEM_SLOT,
Self::ScoreboardObjective(_) => id::SCOREBOARD_OBJECTIVE,
Self::SetPassengers(_) => id::SET_PASSENGERS,
Self::SetPlayerInventory(_) => id::SET_PLAYER_INVENTORY,
Self::Teams(_) => id::TEAMS,
Self::ScoreboardScore(_) => id::SCOREBOARD_SCORE,
Self::SimulationDistance(_) => id::SIMULATION_DISTANCE,
Self::SetTitleSubtitle(_) => id::SET_TITLE_SUBTITLE,
Self::UpdateTime(_) => id::UPDATE_TIME,
Self::SetTitleText(_) => id::SET_TITLE_TEXT,
Self::SetTitleTime(_) => id::SET_TITLE_TIME,
Self::EntitySoundEffect(_) => id::ENTITY_SOUND_EFFECT,
Self::SoundEffect(_) => id::SOUND_EFFECT,
Self::StartConfiguration(_) => id::START_CONFIGURATION,
Self::StopSound(_) => id::STOP_SOUND,
Self::StoreCookie(_) => id::STORE_COOKIE,
Self::SystemChat(_) => id::SYSTEM_CHAT,
Self::PlayerlistHeader(_) => id::PLAYERLIST_HEADER,
Self::NbtQueryResponse(_) => id::NBT_QUERY_RESPONSE,
Self::Collect(_) => id::COLLECT,
Self::EntityTeleport(_) => id::ENTITY_TELEPORT,
Self::TestInstanceBlockStatus(_) => id::TEST_INSTANCE_BLOCK_STATUS,
Self::SetTickingState(_) => id::SET_TICKING_STATE,
Self::StepTick(_) => id::STEP_TICK,
Self::Transfer(_) => id::TRANSFER,
Self::Advancements(_) => id::ADVANCEMENTS,
Self::EntityUpdateAttributes(_) => id::ENTITY_UPDATE_ATTRIBUTES,
Self::EntityEffect(_) => id::ENTITY_EFFECT,
Self::DeclareRecipes(_) => id::DECLARE_RECIPES,
Self::Tags(_) => id::TAGS,
Self::SetProjectilePower(_) => id::SET_PROJECTILE_POWER,
Self::CustomReportDetails(_) => id::CUSTOM_REPORT_DETAILS,
Self::ServerLinks(_) => id::SERVER_LINKS,
Self::TrackedWaypoint(_) => id::TRACKED_WAYPOINT,
Self::ClearDialog(_) => id::CLEAR_DIALOG,
Self::ShowDialog(_) => id::SHOW_DIALOG,
}
}
fn name(&self) -> &'static str {
match *self {
Self::BundleDelimiter(_) => "bundle_delimiter",
Self::SpawnEntity(_) => "spawn_entity",
Self::Animation(_) => "animation",
Self::Statistics(_) => "statistics",
Self::AcknowledgePlayerDigging(_) => "acknowledge_player_digging",
Self::BlockBreakAnimation(_) => "block_break_animation",
Self::TileEntityData(_) => "tile_entity_data",
Self::BlockAction(_) => "block_action",
Self::BlockChange(_) => "block_change",
Self::BossBar(_) => "boss_bar",
Self::Difficulty(_) => "difficulty",
Self::ChunkBatchFinished(_) => "chunk_batch_finished",
Self::ChunkBatchStart(_) => "chunk_batch_start",
Self::ChunkBiomes(_) => "chunk_biomes",
Self::ClearTitles(_) => "clear_titles",
Self::TabComplete(_) => "tab_complete",
Self::DeclareCommands(_) => "declare_commands",
Self::CloseWindow(_) => "close_window",
Self::WindowItems(_) => "window_items",
Self::CraftProgressBar(_) => "craft_progress_bar",
Self::SetSlot(_) => "set_slot",
Self::CookieRequest(_) => "cookie_request",
Self::SetCooldown(_) => "set_cooldown",
Self::ChatSuggestions(_) => "chat_suggestions",
Self::CustomPayload(_) => "custom_payload",
Self::DamageEvent(_) => "damage_event",
Self::DebugBlockValue(_) => "debug_block_value",
Self::DebugChunkValue(_) => "debug_chunk_value",
Self::DebugEntityValue(_) => "debug_entity_value",
Self::DebugEvent(_) => "debug_event",
Self::DebugSample(_) => "debug_sample",
Self::HideMessage(_) => "hide_message",
Self::KickDisconnect(_) => "kick_disconnect",
Self::ProfilelessChat(_) => "profileless_chat",
Self::EntityStatus(_) => "entity_status",
Self::SyncEntityPosition(_) => "sync_entity_position",
Self::Explosion(_) => "explosion",
Self::UnloadChunk(_) => "unload_chunk",
Self::GameStateChange(_) => "game_state_change",
Self::GameRuleValues(_) => "game_rule_values",
Self::GameTestHighlightPos(_) => "game_test_highlight_pos",
Self::OpenHorseWindow(_) => "open_horse_window",
Self::HurtAnimation(_) => "hurt_animation",
Self::InitializeWorldBorder(_) => "initialize_world_border",
Self::KeepAlive(_) => "keep_alive",
Self::MapChunk(_) => "map_chunk",
Self::WorldEvent(_) => "world_event",
Self::WorldParticles(_) => "world_particles",
Self::UpdateLight(_) => "update_light",
Self::Login(_) => "login",
Self::LowDiskSpaceWarning(_) => "low_disk_space_warning",
Self::Map(_) => "map",
Self::TradeList(_) => "trade_list",
Self::RelEntityMove(_) => "rel_entity_move",
Self::EntityMoveLook(_) => "entity_move_look",
Self::MoveMinecart(_) => "move_minecart",
Self::EntityLook(_) => "entity_look",
Self::VehicleMove(_) => "vehicle_move",
Self::OpenBook(_) => "open_book",
Self::OpenWindow(_) => "open_window",
Self::OpenSignEntity(_) => "open_sign_entity",
Self::Ping(_) => "ping",
Self::PingResponse(_) => "ping_response",
Self::CraftRecipeResponse(_) => "craft_recipe_response",
Self::Abilities(_) => "abilities",
Self::PlayerChat(_) => "player_chat",
Self::EndCombatEvent(_) => "end_combat_event",
Self::EnterCombatEvent(_) => "enter_combat_event",
Self::DeathCombatEvent(_) => "death_combat_event",
Self::PlayerRemove(_) => "player_remove",
Self::PlayerInfo(_) => "player_info",
Self::FacePlayer(_) => "face_player",
Self::Position(_) => "position",
Self::PlayerRotation(_) => "player_rotation",
Self::RecipeBookAdd(_) => "recipe_book_add",
Self::RecipeBookRemove(_) => "recipe_book_remove",
Self::RecipeBookSettings(_) => "recipe_book_settings",
Self::EntityDestroy(_) => "entity_destroy",
Self::RemoveEntityEffect(_) => "remove_entity_effect",
Self::ResetScore(_) => "reset_score",
Self::RemoveResourcePack(_) => "remove_resource_pack",
Self::AddResourcePack(_) => "add_resource_pack",
Self::Respawn(_) => "respawn",
Self::EntityHeadRotation(_) => "entity_head_rotation",
Self::MultiBlockChange(_) => "multi_block_change",
Self::SelectAdvancementTab(_) => "select_advancement_tab",
Self::ServerData(_) => "server_data",
Self::ActionBar(_) => "action_bar",
Self::WorldBorderCenter(_) => "world_border_center",
Self::WorldBorderLerpSize(_) => "world_border_lerp_size",
Self::WorldBorderSize(_) => "world_border_size",
Self::WorldBorderWarningDelay(_) => "world_border_warning_delay",
Self::WorldBorderWarningReach(_) => "world_border_warning_reach",
Self::Camera(_) => "camera",
Self::UpdateViewPosition(_) => "update_view_position",
Self::UpdateViewDistance(_) => "update_view_distance",
Self::SetCursorItem(_) => "set_cursor_item",
Self::SpawnPosition(_) => "spawn_position",
Self::ScoreboardDisplayObjective(_) => "scoreboard_display_objective",
Self::EntityMetadata(_) => "entity_metadata",
Self::AttachEntity(_) => "attach_entity",
Self::EntityVelocity(_) => "entity_velocity",
Self::EntityEquipment(_) => "entity_equipment",
Self::Experience(_) => "experience",
Self::UpdateHealth(_) => "update_health",
Self::HeldItemSlot(_) => "held_item_slot",
Self::ScoreboardObjective(_) => "scoreboard_objective",
Self::SetPassengers(_) => "set_passengers",
Self::SetPlayerInventory(_) => "set_player_inventory",
Self::Teams(_) => "teams",
Self::ScoreboardScore(_) => "scoreboard_score",
Self::SimulationDistance(_) => "simulation_distance",
Self::SetTitleSubtitle(_) => "set_title_subtitle",
Self::UpdateTime(_) => "update_time",
Self::SetTitleText(_) => "set_title_text",
Self::SetTitleTime(_) => "set_title_time",
Self::EntitySoundEffect(_) => "entity_sound_effect",
Self::SoundEffect(_) => "sound_effect",
Self::StartConfiguration(_) => "start_configuration",
Self::StopSound(_) => "stop_sound",
Self::StoreCookie(_) => "store_cookie",
Self::SystemChat(_) => "system_chat",
Self::PlayerlistHeader(_) => "playerlist_header",
Self::NbtQueryResponse(_) => "nbt_query_response",
Self::Collect(_) => "collect",
Self::EntityTeleport(_) => "entity_teleport",
Self::TestInstanceBlockStatus(_) => "test_instance_block_status",
Self::SetTickingState(_) => "set_ticking_state",
Self::StepTick(_) => "step_tick",
Self::Transfer(_) => "transfer",
Self::Advancements(_) => "advancements",
Self::EntityUpdateAttributes(_) => "entity_update_attributes",
Self::EntityEffect(_) => "entity_effect",
Self::DeclareRecipes(_) => "declare_recipes",
Self::Tags(_) => "tags",
Self::SetProjectilePower(_) => "set_projectile_power",
Self::CustomReportDetails(_) => "custom_report_details",
Self::ServerLinks(_) => "server_links",
Self::TrackedWaypoint(_) => "tracked_waypoint",
Self::ClearDialog(_) => "clear_dialog",
Self::ShowDialog(_) => "show_dialog",
}
}
fn encode_body(&self, w: &mut BytesMut) -> EncodeResult {
match *self {
Self::BundleDelimiter(ref p) => p.encode(w),
Self::SpawnEntity(ref p) => p.encode(w),
Self::Animation(ref p) => p.encode(w),
Self::Statistics(ref p) => p.encode(w),
Self::AcknowledgePlayerDigging(ref p) => p.encode(w),
Self::BlockBreakAnimation(ref p) => p.encode(w),
Self::TileEntityData(ref p) => p.encode(w),
Self::BlockAction(ref p) => p.encode(w),
Self::BlockChange(ref p) => p.encode(w),
Self::BossBar(ref p) => p.encode(w),
Self::Difficulty(ref p) => p.encode(w),
Self::ChunkBatchFinished(ref p) => p.encode(w),
Self::ChunkBatchStart(ref p) => p.encode(w),
Self::ChunkBiomes(ref p) => p.encode(w),
Self::ClearTitles(ref p) => p.encode(w),
Self::TabComplete(ref p) => p.encode(w),
Self::DeclareCommands(ref p) => p.encode(w),
Self::CloseWindow(ref p) => p.encode(w),
Self::WindowItems(ref p) => p.encode(w),
Self::CraftProgressBar(ref p) => p.encode(w),
Self::SetSlot(ref p) => p.encode(w),
Self::CookieRequest(ref p) => p.encode(w),
Self::SetCooldown(ref p) => p.encode(w),
Self::ChatSuggestions(ref p) => p.encode(w),
Self::CustomPayload(ref p) => p.encode(w),
Self::DamageEvent(ref p) => p.encode(w),
Self::DebugBlockValue(ref p) => p.encode(w),
Self::DebugChunkValue(ref p) => p.encode(w),
Self::DebugEntityValue(ref p) => p.encode(w),
Self::DebugEvent(ref p) => p.encode(w),
Self::DebugSample(ref p) => p.encode(w),
Self::HideMessage(ref p) => p.encode(w),
Self::KickDisconnect(ref p) => p.encode(w),
Self::ProfilelessChat(ref p) => p.encode(w),
Self::EntityStatus(ref p) => p.encode(w),
Self::SyncEntityPosition(ref p) => p.encode(w),
Self::Explosion(ref p) => p.encode(w),
Self::UnloadChunk(ref p) => p.encode(w),
Self::GameStateChange(ref p) => p.encode(w),
Self::GameRuleValues(ref p) => p.encode(w),
Self::GameTestHighlightPos(ref p) => p.encode(w),
Self::OpenHorseWindow(ref p) => p.encode(w),
Self::HurtAnimation(ref p) => p.encode(w),
Self::InitializeWorldBorder(ref p) => p.encode(w),
Self::KeepAlive(ref p) => p.encode(w),
Self::MapChunk(ref p) => p.encode(w),
Self::WorldEvent(ref p) => p.encode(w),
Self::WorldParticles(ref p) => p.encode(w),
Self::UpdateLight(ref p) => p.encode(w),
Self::Login(ref p) => p.encode(w),
Self::LowDiskSpaceWarning(ref p) => p.encode(w),
Self::Map(ref p) => p.encode(w),
Self::TradeList(ref p) => p.encode(w),
Self::RelEntityMove(ref p) => p.encode(w),
Self::EntityMoveLook(ref p) => p.encode(w),
Self::MoveMinecart(ref p) => p.encode(w),
Self::EntityLook(ref p) => p.encode(w),
Self::VehicleMove(ref p) => p.encode(w),
Self::OpenBook(ref p) => p.encode(w),
Self::OpenWindow(ref p) => p.encode(w),
Self::OpenSignEntity(ref p) => p.encode(w),
Self::Ping(ref p) => p.encode(w),
Self::PingResponse(ref p) => p.encode(w),
Self::CraftRecipeResponse(ref p) => p.encode(w),
Self::Abilities(ref p) => p.encode(w),
Self::PlayerChat(ref p) => p.encode(w),
Self::EndCombatEvent(ref p) => p.encode(w),
Self::EnterCombatEvent(ref p) => p.encode(w),
Self::DeathCombatEvent(ref p) => p.encode(w),
Self::PlayerRemove(ref p) => p.encode(w),
Self::PlayerInfo(ref p) => p.encode(w),
Self::FacePlayer(ref p) => p.encode(w),
Self::Position(ref p) => p.encode(w),
Self::PlayerRotation(ref p) => p.encode(w),
Self::RecipeBookAdd(ref p) => p.encode(w),
Self::RecipeBookRemove(ref p) => p.encode(w),
Self::RecipeBookSettings(ref p) => p.encode(w),
Self::EntityDestroy(ref p) => p.encode(w),
Self::RemoveEntityEffect(ref p) => p.encode(w),
Self::ResetScore(ref p) => p.encode(w),
Self::RemoveResourcePack(ref p) => p.encode(w),
Self::AddResourcePack(ref p) => p.encode(w),
Self::Respawn(ref p) => p.encode(w),
Self::EntityHeadRotation(ref p) => p.encode(w),
Self::MultiBlockChange(ref p) => p.encode(w),
Self::SelectAdvancementTab(ref p) => p.encode(w),
Self::ServerData(ref p) => p.encode(w),
Self::ActionBar(ref p) => p.encode(w),
Self::WorldBorderCenter(ref p) => p.encode(w),
Self::WorldBorderLerpSize(ref p) => p.encode(w),
Self::WorldBorderSize(ref p) => p.encode(w),
Self::WorldBorderWarningDelay(ref p) => p.encode(w),
Self::WorldBorderWarningReach(ref p) => p.encode(w),
Self::Camera(ref p) => p.encode(w),
Self::UpdateViewPosition(ref p) => p.encode(w),
Self::UpdateViewDistance(ref p) => p.encode(w),
Self::SetCursorItem(ref p) => p.encode(w),
Self::SpawnPosition(ref p) => p.encode(w),
Self::ScoreboardDisplayObjective(ref p) => p.encode(w),
Self::EntityMetadata(ref p) => p.encode(w),
Self::AttachEntity(ref p) => p.encode(w),
Self::EntityVelocity(ref p) => p.encode(w),
Self::EntityEquipment(ref p) => p.encode(w),
Self::Experience(ref p) => p.encode(w),
Self::UpdateHealth(ref p) => p.encode(w),
Self::HeldItemSlot(ref p) => p.encode(w),
Self::ScoreboardObjective(ref p) => p.encode(w),
Self::SetPassengers(ref p) => p.encode(w),
Self::SetPlayerInventory(ref p) => p.encode(w),
Self::Teams(ref p) => p.encode(w),
Self::ScoreboardScore(ref p) => p.encode(w),
Self::SimulationDistance(ref p) => p.encode(w),
Self::SetTitleSubtitle(ref p) => p.encode(w),
Self::UpdateTime(ref p) => p.encode(w),
Self::SetTitleText(ref p) => p.encode(w),
Self::SetTitleTime(ref p) => p.encode(w),
Self::EntitySoundEffect(ref p) => p.encode(w),
Self::SoundEffect(ref p) => p.encode(w),
Self::StartConfiguration(ref p) => p.encode(w),
Self::StopSound(ref p) => p.encode(w),
Self::StoreCookie(ref p) => p.encode(w),
Self::SystemChat(ref p) => p.encode(w),
Self::PlayerlistHeader(ref p) => p.encode(w),
Self::NbtQueryResponse(ref p) => p.encode(w),
Self::Collect(ref p) => p.encode(w),
Self::EntityTeleport(ref p) => p.encode(w),
Self::TestInstanceBlockStatus(ref p) => p.encode(w),
Self::SetTickingState(ref p) => p.encode(w),
Self::StepTick(ref p) => p.encode(w),
Self::Transfer(ref p) => p.encode(w),
Self::Advancements(ref p) => p.encode(w),
Self::EntityUpdateAttributes(ref p) => p.encode(w),
Self::EntityEffect(ref p) => p.encode(w),
Self::DeclareRecipes(ref p) => p.encode(w),
Self::Tags(ref p) => p.encode(w),
Self::SetProjectilePower(ref p) => p.encode(w),
Self::CustomReportDetails(ref p) => p.encode(w),
Self::ServerLinks(ref p) => p.encode(w),
Self::TrackedWaypoint(ref p) => p.encode(w),
Self::ClearDialog(ref p) => p.encode(w),
Self::ShowDialog(ref p) => p.encode(w),
}
}
fn name_of(id: i32) -> Option<&'static str> {
match id {
id::BUNDLE_DELIMITER => Some("bundle_delimiter"),
id::SPAWN_ENTITY => Some("spawn_entity"),
id::ANIMATION => Some("animation"),
id::STATISTICS => Some("statistics"),
id::ACKNOWLEDGE_PLAYER_DIGGING => Some("acknowledge_player_digging"),
id::BLOCK_BREAK_ANIMATION => Some("block_break_animation"),
id::TILE_ENTITY_DATA => Some("tile_entity_data"),
id::BLOCK_ACTION => Some("block_action"),
id::BLOCK_CHANGE => Some("block_change"),
id::BOSS_BAR => Some("boss_bar"),
id::DIFFICULTY => Some("difficulty"),
id::CHUNK_BATCH_FINISHED => Some("chunk_batch_finished"),
id::CHUNK_BATCH_START => Some("chunk_batch_start"),
id::CHUNK_BIOMES => Some("chunk_biomes"),
id::CLEAR_TITLES => Some("clear_titles"),
id::TAB_COMPLETE => Some("tab_complete"),
id::DECLARE_COMMANDS => Some("declare_commands"),
id::CLOSE_WINDOW => Some("close_window"),
id::WINDOW_ITEMS => Some("window_items"),
id::CRAFT_PROGRESS_BAR => Some("craft_progress_bar"),
id::SET_SLOT => Some("set_slot"),
id::COOKIE_REQUEST => Some("cookie_request"),
id::SET_COOLDOWN => Some("set_cooldown"),
id::CHAT_SUGGESTIONS => Some("chat_suggestions"),
id::CUSTOM_PAYLOAD => Some("custom_payload"),
id::DAMAGE_EVENT => Some("damage_event"),
id::DEBUG_BLOCK_VALUE => Some("debug_block_value"),
id::DEBUG_CHUNK_VALUE => Some("debug_chunk_value"),
id::DEBUG_ENTITY_VALUE => Some("debug_entity_value"),
id::DEBUG_EVENT => Some("debug_event"),
id::DEBUG_SAMPLE => Some("debug_sample"),
id::HIDE_MESSAGE => Some("hide_message"),
id::KICK_DISCONNECT => Some("kick_disconnect"),
id::PROFILELESS_CHAT => Some("profileless_chat"),
id::ENTITY_STATUS => Some("entity_status"),
id::SYNC_ENTITY_POSITION => Some("sync_entity_position"),
id::EXPLOSION => Some("explosion"),
id::UNLOAD_CHUNK => Some("unload_chunk"),
id::GAME_STATE_CHANGE => Some("game_state_change"),
id::GAME_RULE_VALUES => Some("game_rule_values"),
id::GAME_TEST_HIGHLIGHT_POS => Some("game_test_highlight_pos"),
id::OPEN_HORSE_WINDOW => Some("open_horse_window"),
id::HURT_ANIMATION => Some("hurt_animation"),
id::INITIALIZE_WORLD_BORDER => Some("initialize_world_border"),
id::KEEP_ALIVE => Some("keep_alive"),
id::MAP_CHUNK => Some("map_chunk"),
id::WORLD_EVENT => Some("world_event"),
id::WORLD_PARTICLES => Some("world_particles"),
id::UPDATE_LIGHT => Some("update_light"),
id::LOGIN => Some("login"),
id::LOW_DISK_SPACE_WARNING => Some("low_disk_space_warning"),
id::MAP => Some("map"),
id::TRADE_LIST => Some("trade_list"),
id::REL_ENTITY_MOVE => Some("rel_entity_move"),
id::ENTITY_MOVE_LOOK => Some("entity_move_look"),
id::MOVE_MINECART => Some("move_minecart"),
id::ENTITY_LOOK => Some("entity_look"),
id::VEHICLE_MOVE => Some("vehicle_move"),
id::OPEN_BOOK => Some("open_book"),
id::OPEN_WINDOW => Some("open_window"),
id::OPEN_SIGN_ENTITY => Some("open_sign_entity"),
id::PING => Some("ping"),
id::PING_RESPONSE => Some("ping_response"),
id::CRAFT_RECIPE_RESPONSE => Some("craft_recipe_response"),
id::ABILITIES => Some("abilities"),
id::PLAYER_CHAT => Some("player_chat"),
id::END_COMBAT_EVENT => Some("end_combat_event"),
id::ENTER_COMBAT_EVENT => Some("enter_combat_event"),
id::DEATH_COMBAT_EVENT => Some("death_combat_event"),
id::PLAYER_REMOVE => Some("player_remove"),
id::PLAYER_INFO => Some("player_info"),
id::FACE_PLAYER => Some("face_player"),
id::POSITION => Some("position"),
id::PLAYER_ROTATION => Some("player_rotation"),
id::RECIPE_BOOK_ADD => Some("recipe_book_add"),
id::RECIPE_BOOK_REMOVE => Some("recipe_book_remove"),
id::RECIPE_BOOK_SETTINGS => Some("recipe_book_settings"),
id::ENTITY_DESTROY => Some("entity_destroy"),
id::REMOVE_ENTITY_EFFECT => Some("remove_entity_effect"),
id::RESET_SCORE => Some("reset_score"),
id::REMOVE_RESOURCE_PACK => Some("remove_resource_pack"),
id::ADD_RESOURCE_PACK => Some("add_resource_pack"),
id::RESPAWN => Some("respawn"),
id::ENTITY_HEAD_ROTATION => Some("entity_head_rotation"),
id::MULTI_BLOCK_CHANGE => Some("multi_block_change"),
id::SELECT_ADVANCEMENT_TAB => Some("select_advancement_tab"),
id::SERVER_DATA => Some("server_data"),
id::ACTION_BAR => Some("action_bar"),
id::WORLD_BORDER_CENTER => Some("world_border_center"),
id::WORLD_BORDER_LERP_SIZE => Some("world_border_lerp_size"),
id::WORLD_BORDER_SIZE => Some("world_border_size"),
id::WORLD_BORDER_WARNING_DELAY => Some("world_border_warning_delay"),
id::WORLD_BORDER_WARNING_REACH => Some("world_border_warning_reach"),
id::CAMERA => Some("camera"),
id::UPDATE_VIEW_POSITION => Some("update_view_position"),
id::UPDATE_VIEW_DISTANCE => Some("update_view_distance"),
id::SET_CURSOR_ITEM => Some("set_cursor_item"),
id::SPAWN_POSITION => Some("spawn_position"),
id::SCOREBOARD_DISPLAY_OBJECTIVE => Some("scoreboard_display_objective"),
id::ENTITY_METADATA => Some("entity_metadata"),
id::ATTACH_ENTITY => Some("attach_entity"),
id::ENTITY_VELOCITY => Some("entity_velocity"),
id::ENTITY_EQUIPMENT => Some("entity_equipment"),
id::EXPERIENCE => Some("experience"),
id::UPDATE_HEALTH => Some("update_health"),
id::HELD_ITEM_SLOT => Some("held_item_slot"),
id::SCOREBOARD_OBJECTIVE => Some("scoreboard_objective"),
id::SET_PASSENGERS => Some("set_passengers"),
id::SET_PLAYER_INVENTORY => Some("set_player_inventory"),
id::TEAMS => Some("teams"),
id::SCOREBOARD_SCORE => Some("scoreboard_score"),
id::SIMULATION_DISTANCE => Some("simulation_distance"),
id::SET_TITLE_SUBTITLE => Some("set_title_subtitle"),
id::UPDATE_TIME => Some("update_time"),
id::SET_TITLE_TEXT => Some("set_title_text"),
id::SET_TITLE_TIME => Some("set_title_time"),
id::ENTITY_SOUND_EFFECT => Some("entity_sound_effect"),
id::SOUND_EFFECT => Some("sound_effect"),
id::START_CONFIGURATION => Some("start_configuration"),
id::STOP_SOUND => Some("stop_sound"),
id::STORE_COOKIE => Some("store_cookie"),
id::SYSTEM_CHAT => Some("system_chat"),
id::PLAYERLIST_HEADER => Some("playerlist_header"),
id::NBT_QUERY_RESPONSE => Some("nbt_query_response"),
id::COLLECT => Some("collect"),
id::ENTITY_TELEPORT => Some("entity_teleport"),
id::TEST_INSTANCE_BLOCK_STATUS => Some("test_instance_block_status"),
id::SET_TICKING_STATE => Some("set_ticking_state"),
id::STEP_TICK => Some("step_tick"),
id::TRANSFER => Some("transfer"),
id::ADVANCEMENTS => Some("advancements"),
id::ENTITY_UPDATE_ATTRIBUTES => Some("entity_update_attributes"),
id::ENTITY_EFFECT => Some("entity_effect"),
id::DECLARE_RECIPES => Some("declare_recipes"),
id::TAGS => Some("tags"),
id::SET_PROJECTILE_POWER => Some("set_projectile_power"),
id::CUSTOM_REPORT_DETAILS => Some("custom_report_details"),
id::SERVER_LINKS => Some("server_links"),
id::TRACKED_WAYPOINT => Some("tracked_waypoint"),
id::CLEAR_DIALOG => Some("clear_dialog"),
id::SHOW_DIALOG => Some("show_dialog"),
_ => None,
}
}
}
impl ClientboundPlayPacket {
pub const IDS: &'static [i32] = &[
id::BUNDLE_DELIMITER,
id::SPAWN_ENTITY,
id::ANIMATION,
id::STATISTICS,
id::ACKNOWLEDGE_PLAYER_DIGGING,
id::BLOCK_BREAK_ANIMATION,
id::TILE_ENTITY_DATA,
id::BLOCK_ACTION,
id::BLOCK_CHANGE,
id::BOSS_BAR,
id::DIFFICULTY,
id::CHUNK_BATCH_FINISHED,
id::CHUNK_BATCH_START,
id::CHUNK_BIOMES,
id::CLEAR_TITLES,
id::TAB_COMPLETE,
id::DECLARE_COMMANDS,
id::CLOSE_WINDOW,
id::WINDOW_ITEMS,
id::CRAFT_PROGRESS_BAR,
id::SET_SLOT,
id::COOKIE_REQUEST,
id::SET_COOLDOWN,
id::CHAT_SUGGESTIONS,
id::CUSTOM_PAYLOAD,
id::DAMAGE_EVENT,
id::DEBUG_BLOCK_VALUE,
id::DEBUG_CHUNK_VALUE,
id::DEBUG_ENTITY_VALUE,
id::DEBUG_EVENT,
id::DEBUG_SAMPLE,
id::HIDE_MESSAGE,
id::KICK_DISCONNECT,
id::PROFILELESS_CHAT,
id::ENTITY_STATUS,
id::SYNC_ENTITY_POSITION,
id::EXPLOSION,
id::UNLOAD_CHUNK,
id::GAME_STATE_CHANGE,
id::GAME_RULE_VALUES,
id::GAME_TEST_HIGHLIGHT_POS,
id::OPEN_HORSE_WINDOW,
id::HURT_ANIMATION,
id::INITIALIZE_WORLD_BORDER,
id::KEEP_ALIVE,
id::MAP_CHUNK,
id::WORLD_EVENT,
id::WORLD_PARTICLES,
id::UPDATE_LIGHT,
id::LOGIN,
id::LOW_DISK_SPACE_WARNING,
id::MAP,
id::TRADE_LIST,
id::REL_ENTITY_MOVE,
id::ENTITY_MOVE_LOOK,
id::MOVE_MINECART,
id::ENTITY_LOOK,
id::VEHICLE_MOVE,
id::OPEN_BOOK,
id::OPEN_WINDOW,
id::OPEN_SIGN_ENTITY,
id::PING,
id::PING_RESPONSE,
id::CRAFT_RECIPE_RESPONSE,
id::ABILITIES,
id::PLAYER_CHAT,
id::END_COMBAT_EVENT,
id::ENTER_COMBAT_EVENT,
id::DEATH_COMBAT_EVENT,
id::PLAYER_REMOVE,
id::PLAYER_INFO,
id::FACE_PLAYER,
id::POSITION,
id::PLAYER_ROTATION,
id::RECIPE_BOOK_ADD,
id::RECIPE_BOOK_REMOVE,
id::RECIPE_BOOK_SETTINGS,
id::ENTITY_DESTROY,
id::REMOVE_ENTITY_EFFECT,
id::RESET_SCORE,
id::REMOVE_RESOURCE_PACK,
id::ADD_RESOURCE_PACK,
id::RESPAWN,
id::ENTITY_HEAD_ROTATION,
id::MULTI_BLOCK_CHANGE,
id::SELECT_ADVANCEMENT_TAB,
id::SERVER_DATA,
id::ACTION_BAR,
id::WORLD_BORDER_CENTER,
id::WORLD_BORDER_LERP_SIZE,
id::WORLD_BORDER_SIZE,
id::WORLD_BORDER_WARNING_DELAY,
id::WORLD_BORDER_WARNING_REACH,
id::CAMERA,
id::UPDATE_VIEW_POSITION,
id::UPDATE_VIEW_DISTANCE,
id::SET_CURSOR_ITEM,
id::SPAWN_POSITION,
id::SCOREBOARD_DISPLAY_OBJECTIVE,
id::ENTITY_METADATA,
id::ATTACH_ENTITY,
id::ENTITY_VELOCITY,
id::ENTITY_EQUIPMENT,
id::EXPERIENCE,
id::UPDATE_HEALTH,
id::HELD_ITEM_SLOT,
id::SCOREBOARD_OBJECTIVE,
id::SET_PASSENGERS,
id::SET_PLAYER_INVENTORY,
id::TEAMS,
id::SCOREBOARD_SCORE,
id::SIMULATION_DISTANCE,
id::SET_TITLE_SUBTITLE,
id::UPDATE_TIME,
id::SET_TITLE_TEXT,
id::SET_TITLE_TIME,
id::ENTITY_SOUND_EFFECT,
id::SOUND_EFFECT,
id::START_CONFIGURATION,
id::STOP_SOUND,
id::STORE_COOKIE,
id::SYSTEM_CHAT,
id::PLAYERLIST_HEADER,
id::NBT_QUERY_RESPONSE,
id::COLLECT,
id::ENTITY_TELEPORT,
id::TEST_INSTANCE_BLOCK_STATUS,
id::SET_TICKING_STATE,
id::STEP_TICK,
id::TRANSFER,
id::ADVANCEMENTS,
id::ENTITY_UPDATE_ATTRIBUTES,
id::ENTITY_EFFECT,
id::DECLARE_RECIPES,
id::TAGS,
id::SET_PROJECTILE_POWER,
id::CUSTOM_REPORT_DETAILS,
id::SERVER_LINKS,
id::TRACKED_WAYPOINT,
id::CLEAR_DIALOG,
id::SHOW_DIALOG,
];
#[cfg(feature = "testgen")]
pub fn generate_by_id(id: i32, g: &mut Gen) -> Option<Self> {
match id {
id::BUNDLE_DELIMITER => Some(Self::BundleDelimiter(
<BundleDelimiter as Generate>::generate(g),
)),
id::SPAWN_ENTITY => Some(Self::SpawnEntity(<SpawnEntity as Generate>::generate(g))),
id::ANIMATION => Some(Self::Animation(<Animation as Generate>::generate(g))),
id::STATISTICS => Some(Self::Statistics(<Statistics as Generate>::generate(g))),
id::ACKNOWLEDGE_PLAYER_DIGGING => Some(Self::AcknowledgePlayerDigging(
<AcknowledgePlayerDigging as Generate>::generate(g),
)),
id::BLOCK_BREAK_ANIMATION => Some(Self::BlockBreakAnimation(
<BlockBreakAnimation as Generate>::generate(g),
)),
id::TILE_ENTITY_DATA => Some(Self::TileEntityData(
<TileEntityData as Generate>::generate(g),
)),
id::BLOCK_ACTION => Some(Self::BlockAction(<BlockAction as Generate>::generate(g))),
id::BLOCK_CHANGE => Some(Self::BlockChange(<BlockChange as Generate>::generate(g))),
id::BOSS_BAR => Some(Self::BossBar(<BossBar as Generate>::generate(g))),
id::DIFFICULTY => Some(Self::Difficulty(<Difficulty as Generate>::generate(g))),
id::CHUNK_BATCH_FINISHED => Some(Self::ChunkBatchFinished(
<ChunkBatchFinished as Generate>::generate(g),
)),
id::CHUNK_BATCH_START => Some(Self::ChunkBatchStart(
<ChunkBatchStart as Generate>::generate(g),
)),
id::CHUNK_BIOMES => Some(Self::ChunkBiomes(<ChunkBiomes as Generate>::generate(g))),
id::CLEAR_TITLES => Some(Self::ClearTitles(<ClearTitles as Generate>::generate(g))),
id::TAB_COMPLETE => Some(Self::TabComplete(<TabComplete as Generate>::generate(g))),
id::DECLARE_COMMANDS => Some(Self::DeclareCommands(
<DeclareCommands as Generate>::generate(g),
)),
id::CLOSE_WINDOW => Some(Self::CloseWindow(<CloseWindow as Generate>::generate(g))),
id::WINDOW_ITEMS => Some(Self::WindowItems(<WindowItems as Generate>::generate(g))),
id::CRAFT_PROGRESS_BAR => Some(Self::CraftProgressBar(
<CraftProgressBar as Generate>::generate(g),
)),
id::SET_SLOT => Some(Self::SetSlot(<SetSlot as Generate>::generate(g))),
id::COOKIE_REQUEST => Some(Self::CookieRequest(<CookieRequest as Generate>::generate(
g,
))),
id::SET_COOLDOWN => Some(Self::SetCooldown(<SetCooldown as Generate>::generate(g))),
id::CHAT_SUGGESTIONS => Some(Self::ChatSuggestions(
<ChatSuggestions as Generate>::generate(g),
)),
id::CUSTOM_PAYLOAD => Some(Self::CustomPayload(<CustomPayload as Generate>::generate(
g,
))),
id::DAMAGE_EVENT => Some(Self::DamageEvent(<DamageEvent as Generate>::generate(g))),
id::DEBUG_BLOCK_VALUE => Some(Self::DebugBlockValue(
<DebugBlockValue as Generate>::generate(g),
)),
id::DEBUG_CHUNK_VALUE => Some(Self::DebugChunkValue(
<DebugChunkValue as Generate>::generate(g),
)),
id::DEBUG_ENTITY_VALUE => Some(Self::DebugEntityValue(
<DebugEntityValue as Generate>::generate(g),
)),
id::DEBUG_EVENT => Some(Self::DebugEvent(<DebugEvent as Generate>::generate(g))),
id::DEBUG_SAMPLE => Some(Self::DebugSample(<DebugSample as Generate>::generate(g))),
id::HIDE_MESSAGE => Some(Self::HideMessage(<HideMessage as Generate>::generate(g))),
id::KICK_DISCONNECT => Some(Self::KickDisconnect(
<KickDisconnect as Generate>::generate(g),
)),
id::PROFILELESS_CHAT => Some(Self::ProfilelessChat(
<ProfilelessChat as Generate>::generate(g),
)),
id::ENTITY_STATUS => Some(Self::EntityStatus(<EntityStatus as Generate>::generate(g))),
id::SYNC_ENTITY_POSITION => Some(Self::SyncEntityPosition(
<SyncEntityPosition as Generate>::generate(g),
)),
id::EXPLOSION => Some(Self::Explosion(<Explosion as Generate>::generate(g))),
id::UNLOAD_CHUNK => Some(Self::UnloadChunk(<UnloadChunk as Generate>::generate(g))),
id::GAME_STATE_CHANGE => Some(Self::GameStateChange(
<GameStateChange as Generate>::generate(g),
)),
id::GAME_RULE_VALUES => Some(Self::GameRuleValues(
<GameRuleValues as Generate>::generate(g),
)),
id::GAME_TEST_HIGHLIGHT_POS => Some(Self::GameTestHighlightPos(
<GameTestHighlightPos as Generate>::generate(g),
)),
id::OPEN_HORSE_WINDOW => Some(Self::OpenHorseWindow(
<OpenHorseWindow as Generate>::generate(g),
)),
id::HURT_ANIMATION => Some(Self::HurtAnimation(<HurtAnimation as Generate>::generate(
g,
))),
id::INITIALIZE_WORLD_BORDER => Some(Self::InitializeWorldBorder(
<InitializeWorldBorder as Generate>::generate(g),
)),
id::KEEP_ALIVE => Some(Self::KeepAlive(<KeepAlive as Generate>::generate(g))),
id::MAP_CHUNK => Some(Self::MapChunk(<MapChunk as Generate>::generate(g))),
id::WORLD_EVENT => Some(Self::WorldEvent(<WorldEvent as Generate>::generate(g))),
id::WORLD_PARTICLES => Some(Self::WorldParticles(
<WorldParticles as Generate>::generate(g),
)),
id::UPDATE_LIGHT => Some(Self::UpdateLight(<UpdateLight as Generate>::generate(g))),
id::LOGIN => Some(Self::Login(<Login as Generate>::generate(g))),
id::LOW_DISK_SPACE_WARNING => Some(Self::LowDiskSpaceWarning(
<LowDiskSpaceWarning as Generate>::generate(g),
)),
id::MAP => Some(Self::Map(<Map as Generate>::generate(g))),
id::TRADE_LIST => Some(Self::TradeList(<TradeList as Generate>::generate(g))),
id::REL_ENTITY_MOVE => Some(Self::RelEntityMove(
<RelEntityMove as Generate>::generate(g),
)),
id::ENTITY_MOVE_LOOK => Some(Self::EntityMoveLook(
<EntityMoveLook as Generate>::generate(g),
)),
id::MOVE_MINECART => Some(Self::MoveMinecart(<MoveMinecart as Generate>::generate(g))),
id::ENTITY_LOOK => Some(Self::EntityLook(<EntityLook as Generate>::generate(g))),
id::VEHICLE_MOVE => Some(Self::VehicleMove(<VehicleMove as Generate>::generate(g))),
id::OPEN_BOOK => Some(Self::OpenBook(<OpenBook as Generate>::generate(g))),
id::OPEN_WINDOW => Some(Self::OpenWindow(<OpenWindow as Generate>::generate(g))),
id::OPEN_SIGN_ENTITY => Some(Self::OpenSignEntity(
<OpenSignEntity as Generate>::generate(g),
)),
id::PING => Some(Self::Ping(<Ping as Generate>::generate(g))),
id::PING_RESPONSE => Some(Self::PingResponse(<PingResponse as Generate>::generate(g))),
id::CRAFT_RECIPE_RESPONSE => Some(Self::CraftRecipeResponse(
<CraftRecipeResponse as Generate>::generate(g),
)),
id::ABILITIES => Some(Self::Abilities(<Abilities as Generate>::generate(g))),
id::PLAYER_CHAT => Some(Self::PlayerChat(<PlayerChat as Generate>::generate(g))),
id::END_COMBAT_EVENT => Some(Self::EndCombatEvent(
<EndCombatEvent as Generate>::generate(g),
)),
id::ENTER_COMBAT_EVENT => Some(Self::EnterCombatEvent(
<EnterCombatEvent as Generate>::generate(g),
)),
id::DEATH_COMBAT_EVENT => Some(Self::DeathCombatEvent(
<DeathCombatEvent as Generate>::generate(g),
)),
id::PLAYER_REMOVE => Some(Self::PlayerRemove(<PlayerRemove as Generate>::generate(g))),
id::PLAYER_INFO => Some(Self::PlayerInfo(<PlayerInfo as Generate>::generate(g))),
id::FACE_PLAYER => Some(Self::FacePlayer(<FacePlayer as Generate>::generate(g))),
id::POSITION => Some(Self::Position(<Position as Generate>::generate(g))),
id::PLAYER_ROTATION => Some(Self::PlayerRotation(
<PlayerRotation as Generate>::generate(g),
)),
id::RECIPE_BOOK_ADD => Some(Self::RecipeBookAdd(
<RecipeBookAdd as Generate>::generate(g),
)),
id::RECIPE_BOOK_REMOVE => Some(Self::RecipeBookRemove(
<RecipeBookRemove as Generate>::generate(g),
)),
id::RECIPE_BOOK_SETTINGS => Some(Self::RecipeBookSettings(
<RecipeBookSettings as Generate>::generate(g),
)),
id::ENTITY_DESTROY => Some(Self::EntityDestroy(<EntityDestroy as Generate>::generate(
g,
))),
id::REMOVE_ENTITY_EFFECT => Some(Self::RemoveEntityEffect(
<RemoveEntityEffect as Generate>::generate(g),
)),
id::RESET_SCORE => Some(Self::ResetScore(<ResetScore as Generate>::generate(g))),
id::REMOVE_RESOURCE_PACK => Some(Self::RemoveResourcePack(
<RemoveResourcePack as Generate>::generate(g),
)),
id::ADD_RESOURCE_PACK => Some(Self::AddResourcePack(
<AddResourcePack as Generate>::generate(g),
)),
id::RESPAWN => Some(Self::Respawn(<Respawn as Generate>::generate(g))),
id::ENTITY_HEAD_ROTATION => Some(Self::EntityHeadRotation(
<EntityHeadRotation as Generate>::generate(g),
)),
id::MULTI_BLOCK_CHANGE => Some(Self::MultiBlockChange(
<MultiBlockChange as Generate>::generate(g),
)),
id::SELECT_ADVANCEMENT_TAB => Some(Self::SelectAdvancementTab(
<SelectAdvancementTab as Generate>::generate(g),
)),
id::SERVER_DATA => Some(Self::ServerData(<ServerData as Generate>::generate(g))),
id::ACTION_BAR => Some(Self::ActionBar(<ActionBar as Generate>::generate(g))),
id::WORLD_BORDER_CENTER => Some(Self::WorldBorderCenter(
<WorldBorderCenter as Generate>::generate(g),
)),
id::WORLD_BORDER_LERP_SIZE => Some(Self::WorldBorderLerpSize(
<WorldBorderLerpSize as Generate>::generate(g),
)),
id::WORLD_BORDER_SIZE => Some(Self::WorldBorderSize(
<WorldBorderSize as Generate>::generate(g),
)),
id::WORLD_BORDER_WARNING_DELAY => Some(Self::WorldBorderWarningDelay(
<WorldBorderWarningDelay as Generate>::generate(g),
)),
id::WORLD_BORDER_WARNING_REACH => Some(Self::WorldBorderWarningReach(
<WorldBorderWarningReach as Generate>::generate(g),
)),
id::CAMERA => Some(Self::Camera(<Camera as Generate>::generate(g))),
id::UPDATE_VIEW_POSITION => Some(Self::UpdateViewPosition(
<UpdateViewPosition as Generate>::generate(g),
)),
id::UPDATE_VIEW_DISTANCE => Some(Self::UpdateViewDistance(
<UpdateViewDistance as Generate>::generate(g),
)),
id::SET_CURSOR_ITEM => Some(Self::SetCursorItem(
<SetCursorItem as Generate>::generate(g),
)),
id::SPAWN_POSITION => Some(Self::SpawnPosition(<SpawnPosition as Generate>::generate(
g,
))),
id::SCOREBOARD_DISPLAY_OBJECTIVE => Some(Self::ScoreboardDisplayObjective(
<ScoreboardDisplayObjective as Generate>::generate(g),
)),
id::ENTITY_METADATA => Some(Self::EntityMetadata(
<EntityMetadata as Generate>::generate(g),
)),
id::ATTACH_ENTITY => Some(Self::AttachEntity(<AttachEntity as Generate>::generate(g))),
id::ENTITY_VELOCITY => Some(Self::EntityVelocity(
<EntityVelocity as Generate>::generate(g),
)),
id::ENTITY_EQUIPMENT => Some(Self::EntityEquipment(
<EntityEquipment as Generate>::generate(g),
)),
id::EXPERIENCE => Some(Self::Experience(<Experience as Generate>::generate(g))),
id::UPDATE_HEALTH => Some(Self::UpdateHealth(<UpdateHealth as Generate>::generate(g))),
id::HELD_ITEM_SLOT => Some(Self::HeldItemSlot(<HeldItemSlot as Generate>::generate(g))),
id::SCOREBOARD_OBJECTIVE => Some(Self::ScoreboardObjective(
<ScoreboardObjective as Generate>::generate(g),
)),
id::SET_PASSENGERS => Some(Self::SetPassengers(<SetPassengers as Generate>::generate(
g,
))),
id::SET_PLAYER_INVENTORY => Some(Self::SetPlayerInventory(
<SetPlayerInventory as Generate>::generate(g),
)),
id::TEAMS => Some(Self::Teams(<Teams as Generate>::generate(g))),
id::SCOREBOARD_SCORE => Some(Self::ScoreboardScore(
<ScoreboardScore as Generate>::generate(g),
)),
id::SIMULATION_DISTANCE => Some(Self::SimulationDistance(
<SimulationDistance as Generate>::generate(g),
)),
id::SET_TITLE_SUBTITLE => Some(Self::SetTitleSubtitle(
<SetTitleSubtitle as Generate>::generate(g),
)),
id::UPDATE_TIME => Some(Self::UpdateTime(<UpdateTime as Generate>::generate(g))),
id::SET_TITLE_TEXT => Some(Self::SetTitleText(<SetTitleText as Generate>::generate(g))),
id::SET_TITLE_TIME => Some(Self::SetTitleTime(<SetTitleTime as Generate>::generate(g))),
id::ENTITY_SOUND_EFFECT => Some(Self::EntitySoundEffect(
<EntitySoundEffect as Generate>::generate(g),
)),
id::SOUND_EFFECT => Some(Self::SoundEffect(<SoundEffect as Generate>::generate(g))),
id::START_CONFIGURATION => Some(Self::StartConfiguration(
<StartConfiguration as Generate>::generate(g),
)),
id::STOP_SOUND => Some(Self::StopSound(<StopSound as Generate>::generate(g))),
id::STORE_COOKIE => Some(Self::StoreCookie(<StoreCookie as Generate>::generate(g))),
id::SYSTEM_CHAT => Some(Self::SystemChat(<SystemChat as Generate>::generate(g))),
id::PLAYERLIST_HEADER => Some(Self::PlayerlistHeader(
<PlayerlistHeader as Generate>::generate(g),
)),
id::NBT_QUERY_RESPONSE => Some(Self::NbtQueryResponse(
<NbtQueryResponse as Generate>::generate(g),
)),
id::COLLECT => Some(Self::Collect(<Collect as Generate>::generate(g))),
id::ENTITY_TELEPORT => Some(Self::EntityTeleport(
<EntityTeleport as Generate>::generate(g),
)),
id::TEST_INSTANCE_BLOCK_STATUS => Some(Self::TestInstanceBlockStatus(
<TestInstanceBlockStatus as Generate>::generate(g),
)),
id::SET_TICKING_STATE => Some(Self::SetTickingState(
<SetTickingState as Generate>::generate(g),
)),
id::STEP_TICK => Some(Self::StepTick(<StepTick as Generate>::generate(g))),
id::TRANSFER => Some(Self::Transfer(<Transfer as Generate>::generate(g))),
id::ADVANCEMENTS => Some(Self::Advancements(<Advancements as Generate>::generate(g))),
id::ENTITY_UPDATE_ATTRIBUTES => Some(Self::EntityUpdateAttributes(
<EntityUpdateAttributes as Generate>::generate(g),
)),
id::ENTITY_EFFECT => Some(Self::EntityEffect(<EntityEffect as Generate>::generate(g))),
id::DECLARE_RECIPES => Some(Self::DeclareRecipes(
<DeclareRecipes as Generate>::generate(g),
)),
id::TAGS => Some(Self::Tags(<Tags as Generate>::generate(g))),
id::SET_PROJECTILE_POWER => Some(Self::SetProjectilePower(
<SetProjectilePower as Generate>::generate(g),
)),
id::CUSTOM_REPORT_DETAILS => Some(Self::CustomReportDetails(
<CustomReportDetails as Generate>::generate(g),
)),
id::SERVER_LINKS => Some(Self::ServerLinks(<ServerLinks as Generate>::generate(g))),
id::TRACKED_WAYPOINT => Some(Self::TrackedWaypoint(
<TrackedWaypoint as Generate>::generate(g),
)),
id::CLEAR_DIALOG => Some(Self::ClearDialog(<ClearDialog as Generate>::generate(g))),
id::SHOW_DIALOG => Some(Self::ShowDialog(<ShowDialog as Generate>::generate(g))),
_ => None,
}
}
}