Class: DiamondLang::Helpers::CommandBlockMinecart

Inherits:
Entity show all
Defined in:
lib/diamond-lang/helpers/command_block_minecart.rb

Instance Attribute Summary

Attributes inherited from Entity

#data, #id

Instance Method Summary collapse

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