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(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance methods
_action
Source_param
Sourceaction
Sourceblock
Sourcehas_describe?
Sourcepacket_name
Sourceparam
Sourcepos
Source