Latest revision |
Your text |
Line 2: |
Line 2: |
| | | |
| = Built-Ins (page is not ready yet) = | | = Built-Ins (page is not ready yet) = |
− | '''Status: STABLE (safe to use - but not the documentation!)''' | + | '''Status: STABLE (safe to use)''' |
| | | |
| == Variables == | | == Variables == |
Line 9: |
Line 9: |
| | | |
| == Types == | | == Types == |
− |
| |
− | <div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
| |
− | <div class="mw-collapsible-content">
| |
− | </div></div>
| |
| | | |
| === Boolean === | | === Boolean === |
− | A simple type with two values [true, false] used for conditional scripts (e.g. those including @if)
| |
− | <div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
| |
− | ==== Constructors (2) ====
| |
− | <div class="mw-collapsible-content">
| |
− | * '''Boolean(Boolean other)''' : Creates a new Boolean with the value of other.
| |
− | * '''Boolean(String other)''' : Creates a Boolean with value true if other matches "true" in any casing (e.g. "tRuE") or false otherwise.
| |
− | </div></div>
| |
− | <div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
| |
− | ==== Operators TODO ====
| |
− | <div class="mw-collapsible-content">
| |
− | '''Unary Operators (always before the Boolean)'''
| |
− | * '''Boolean ! <Boolean>''' : Returns the opposite value of the Boolean (if true, returns false; and vice versa)
| |
− | '''Type-Preserving Binary Operators'''
| |
− | * '''Boolean <Boolean> && <Boolean>''' : Returns the AND of two Booleans (e.g. returns true if both operands are true, otherwise returns false).
| |
− | * '''Boolean <Boolean> || <Boolean>''' : Returns the OR of two Booleans (e.g. returns false if both operands are false, otherwise returns true).
| |
− | * '''Boolean <Boolean> == <Boolean>''' : Returns true if two Booleans have the same value, otherwise returns false.
| |
− | * '''Boolean <Boolean> != <Boolean>''' : Returns false if two Booleans have the same value, otherwise returns true.
| |
− | '''Type-Casting Binary Operators'''
| |
− | * '''String <Boolean> + <String>''' : Casts the Boolean to a String, then returns the strings joined in order (also accepts <String> + <Boolean>).
| |
− | </div></div>
| |
− | <div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
| |
− |
| |
− | ==== Methods TODO ====
| |
− | <div class="mw-collapsible-content">
| |
− | </div></div>
| |
− |
| |
| === Int === | | === Int === |
| === Long === | | === Long === |
Line 50: |
Line 20: |
| === Entity === | | === Entity === |
| === Player === | | === Player === |
− | === <Type>[] (List) ===
| |
| | | |
| === TpData === | | === TpData === |