class Shatter::Packet::Play::BlockAction

Included Modules

Defined in:

shatter/packet/play/block_packets.cr

Constant Summary

KNOWN_ACTION = {"minecraft:note_block" => ["Play note"], /minecraft:\w*piston/ => ["Extend", "Retract"], /minecraft:\w*chest/ => [nil, "Update viewers"], /minecraft:\w*shulker_box/ => [nil, "Update viewers"], "minecraft:beacon" => [nil, "Recalculate beam"], "minecraft:mob_spawner" => [nil, "Reset delay"], "minecraft:end_gateway" => [nil, "Fire beam"], "minecraft:bell" => [nil, "Ring"]}
KNOWN_PARAM = {/minecraft:(\w*piston|bell)/ => ["Down", "Up", "South", "West", "North", "East"]}

Constructors

Instance Method Summary

Constructor methods inherited from module Shatter::Packet::Handler

new(pkt : IO, con : Shatter::Connection) new

Constructor Detail

def self.new(pkt : IO, con : Shatter::Connection) #

[View source]
def self.new(pull : JSON::PullParser) #

Instance Method Detail

def _action : UInt8 #

[View source]
def _param : UInt8 #

[View source]
def action : String #

[View source]
def block : BlockID #

[View source]
def describe(con : Shatter::Connection, io : IO = STDERR) #

[View source]
def has_describe? : Bool #

[View source]
def packet_name : String #

[View source]
def param : String #

[View source]
def pos : Position #

[View source]