Class: McBlocky::DSL::ImpulseChain
- Defined in:
- lib/mcblocky/dsl/impulse_chain.rb
Constant Summary
Constants inherited from Commands
Instance Attribute Summary collapse
-
#rect ⇒ Object
readonly
Returns the value of attribute rect.
Attributes inherited from Commands
Instance Method Summary collapse
-
#initialize(context, *args) ⇒ ImpulseChain
constructor
A new instance of ImpulseChain.
Methods inherited from Commands
#activate, #blockdata, #command, #detect, #disable, #enable, #execute, #gamerule, #replaceitem, #scoreboard, #setblock, #tellraw, #title, #to_nbt
Constructor Details
#initialize(context, *args) ⇒ ImpulseChain
Returns a new instance of ImpulseChain.
4 5 6 7 |
# File 'lib/mcblocky/dsl/impulse_chain.rb', line 4 def initialize(context, *args) super(context, :impulse_chain) @rect = McBlocky::Rect.new(*args) end |
Instance Attribute Details
#rect ⇒ Object (readonly)
Returns the value of attribute rect.
3 4 5 |
# File 'lib/mcblocky/dsl/impulse_chain.rb', line 3 def rect @rect end |