Condition constructor

Condition(
  1. dynamic cond
)

The Condition class defines conditions for the if widget and more. It can also combines conditions and generates an argument list. A condition can accept many values and this makes the Condition very complex.

The argument can be a... and generates e.g
Entity if entity @s
Score if score @s objective matches 5 Attention! This needs a score condition method!
Location unless block ~ ~2 ~ air Just checks weather a block is present
Condition if entity @s if block ~ ~ ~ stone Yes, you can nest Conditions like Widgets and combine them.

Implementation

Condition(dynamic cond) {
  _setCond(cond);
}