class Shatter::Packet::Play::BlockAction
- Shatter::Packet::Play::BlockAction
- Reference
- Object
Included Modules
- JSON::Serializable
- Shatter::Packet::Handler
Defined in:
shatter/packet/play/block_packets.crConstant 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
- #_action : UInt8
- #_param : UInt8
- #action : String
- #block : BlockID
- #describe(con : Shatter::Connection, io : IO = STDERR)
- #has_describe? : Bool
- #packet_name : String
- #param : String
- #pos : Position