class

Shatter::Packet::Play::BlockAction

Inherits JSON::Serializable < Shatter::Packet::Handler < Reference < Object

Constants

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

new(pkt : IO, con : Shatter::Connection)
Source
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

_action
Source
_param
Source
action
Source
block
Source
describe(con : Shatter::Connection, io : IO = STDERR)
Source
has_describe?
Source
packet_name
Source
param
Source