class ClientHandler

Included Modules

Direct Known Subclasses

Defined in:

handler/handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Initialize the packet parser


[View source]

Instance Method Detail

def handle(state : ProtocolState, data : Bytes) #

Define the handler for raw packet data


[View source]
def handle(packet : Status::C::ServerInfo) #

Define packet handlers for each packet type


[View source]
def handle(packet : Status::C::Pong) #

Generate the ClientHandler class


[View source]
def handle(packet : Login::C::LoginDisconnect) #

Generate the ClientHandler class


[View source]
def handle(packet : Login::C::EncryptionRequest) #

Generate the ClientHandler class


[View source]
def handle(packet : Login::C::LoginSuccess) #

Generate the ClientHandler class


[View source]
def handle(packet : Login::C::EnableCompression) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::KeepAlive) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::JoinGame) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Chat) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::TimeUpdate) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityEquipment) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnPosition) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::UpdateHealth) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Respawn) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::PlayerPosLook) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::HeldItemChange) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::UseBed) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Animation) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnPlayer) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::CollectItem) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnObject) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnMob) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnPainting) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnExperienceOrb) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityVelocity) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::DestroyEntities) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Entity) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityRelativeMove) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityLook) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityLookAndRelativeMove) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityTeleport) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityHeadLook) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityStatus) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::AttachEntity) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityMetadata) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityEffect) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::RemoveEntityEffect) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SetExperience) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::EntityProperties) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::ChunkData) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::MultiBlockChange) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::BlockChange) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::BlockAction) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::BlockBreakAnim) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::MapChunkBulk) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Explosion) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Effect) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SoundEffect) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Particles) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::ChangeGameState) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SpawnGlobalEntity) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::OpenWindow) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::CloseWindow) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SetSlot) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::WindowItems) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::WindowProperty) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::ConfirmTransaction) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::UpdateSign) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Maps) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::UpdateTileEntity) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SignEditorOpen) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Statistics) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::PlayerListItem) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::PlayerAbilities) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::TabComplete) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::ScoreboardObjective) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::UpdateScore) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::DisplayScoreboard) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Teams) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::CustomPayload) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::PlayDisconnect) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::ServerDifficulty) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::CombatEvent) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::Camera) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SetWorldBorder) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SetTitle) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::SetCompressionLevel) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::PlayerListHeaderFooter) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::ResourcePackSend) #

Generate the ClientHandler class


[View source]
def handle(packet : Play::C::UpdateEntityNBT) #

Generate the ClientHandler class


[View source]