Class: DiamondLang::Helpers::CommandBlockMinecart
- Defined in:
- lib/diamond-lang/helpers/command_block_minecart.rb
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(command) ⇒ CommandBlockMinecart
constructor
A new instance of CommandBlockMinecart.
Methods inherited from Entity
#passengers, #passengers=, #selector, #summon, #to_h
Constructor Details
#initialize(command) ⇒ CommandBlockMinecart
Returns a new instance of CommandBlockMinecart.
4 5 6 |
# File 'lib/diamond-lang/helpers/command_block_minecart.rb', line 4 def initialize(command) super 'MinecartCommandBlock', {Command: command.to_s} end |