Class: McBlocky::DSL::RepeatChain

Inherits:
Commands
  • Object
show all
Defined in:
lib/mcblocky/dsl/repeat_chain.rb

Constant Summary

Constants inherited from Commands

Commands::COMMANDS

Instance Attribute Summary collapse

Attributes inherited from Commands

#commands, #context, #kind

Instance Method Summary collapse

Methods inherited from Commands

#activate, #blockdata, #command, #detect, #disable, #enable, #execute, #gamerule, #replaceitem, #scoreboard, #setblock, #tellraw, #title, #to_nbt

Constructor Details

#initialize(context, *args) ⇒ RepeatChain

Returns a new instance of RepeatChain.



4
5
6
7
# File 'lib/mcblocky/dsl/repeat_chain.rb', line 4

def initialize(context, *args)
  super(context, :repeat)
  @rect = McBlocky::Rect.new(*args)
end

Instance Attribute Details

#rectObject (readonly)

Returns the value of attribute rect.



3
4
5
# File 'lib/mcblocky/dsl/repeat_chain.rb', line 3

def rect
  @rect
end