Difference between revisions of "Builtin Namespace Guide"

From MINR.ORG WIKI
(Boolean)
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
  
 
=== 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;>
 
<div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
 
==== Constructors (2) ====
 
==== Constructors (2) ====
Line 25: Line 26:
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
'''Unary Operators (always before the Boolean)'''
 
'''Unary Operators (always before the Boolean)'''
* Boolean !<Boolean>
+
* '''Boolean ! <Boolean>''' : Returns the opposite value of the Boolean (if true, returns false; and vice versa)
'''Same-Type Binary Operators'''
+
'''Type-Preserving Binary Operators'''
* Boolean <Boolean>&&<Boolean>
+
* '''Boolean <Boolean> && <Boolean>''' : Returns the AND of two Booleans (e.g. returns true if both operands are true, otherwise returns false).
* Boolean <Boolean>||<Boolean>
+
* '''Boolean <Boolean> || <Boolean>''' : Returns the OR of two Booleans (e.g. returns false if both operands are false, otherwise returns true).
* Boolean <Boolean>==<Boolean>
+
* '''Boolean <Boolean> == <Boolean>''' : Returns true if two Booleans have the same value, otherwise returns false.
* Boolean <Boolean>!=<Boolean>
+
* '''Boolean <Boolean> != <Boolean>''' : Returns false if two Booleans have the same value, otherwise returns true.
'''Type-Alter
+
'''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></div>
 
<div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
 
<div class="mw-collapsible mw-collapsed" style="border:1px solid #888888; padding:7px;>
 +
 
==== Methods TODO ====
 
==== Methods TODO ====
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">

Latest revision as of 22:02, 30 April 2020

Return to namespace list

Built-Ins (page is not ready yet)[edit]

Status: STABLE (safe to use - but not the documentation!)

Variables[edit]

  • constant Double pi

Types[edit]

Boolean[edit]

A simple type with two values [true, false] used for conditional scripts (e.g. those including @if)

Expand

Constructors (2)[edit]

Expand

Operators TODO[edit]

Expand

Methods TODO[edit]

Int[edit]

Long[edit]

Float[edit]

Double[edit]

String[edit]

Block[edit]

Item[edit]

Entity[edit]

Player[edit]

<Type>[] (List)[edit]

TpData[edit]

A data structure to manage teleport destinations that are set by a player positioned at the desired location.

Expand

Fields EDIT ME (6)[edit]

Expand

Constructors (1)[edit]

Expand

Methods (3)[edit]

Rtp[edit]

A TpData list selector and management tool that mimics the /rtp plugin functionality.

Expand

Fields (3)[edit]

Expand

Constructors (4)[edit]

Expand

Methods (8)[edit]