Module BlockTypes
BlockTypes library for easier use of block types.
Functions
| isActive (type) | Checks if a block type string is of an active block type. |
| isInactive (type) | Checks if a block type string is of an inactive block type. |
| isWater (type) | Checks if a block type string is of a water block type. |
Fields
| IMPERVIOUS | Impervious block type. |
| WEAK | Weak block type. |
| ACTIVE | Active block type. |
| START | Start block type. |
| INACTIVE | Inactive block type. |
| CHANGE | Change block type. |
| MOVE | Move block type. |
| WATER | Water block type. |
| REACTOR | Reactor block type. |
| GENERATOR | Generator block type. |
| INACTIVE_LUA | Inactive lua block type. |
| WATER_LUA | Water lua block type. |
Functions
- isActive (type)
-
Checks if a block type string is of an active block type.
Parameters:
- type The block type string
Returns:
-
boolean
Returns whether the block type string is of an active block type.
Usage:
isActive = BlockTypes.isActive(block.type)
- isInactive (type)
-
Checks if a block type string is of an inactive block type.
Parameters:
- type The block type string
Returns:
-
boolean
Returns whether the block type string is of an inactive block type.
Usage:
isInactive = BlockTypes.isInactive(block.type)
- isWater (type)
-
Checks if a block type string is of a water block type.
Parameters:
- type The block type string
Returns:
-
boolean
Returns whether the block type string is of a water block type.
Usage:
isWater = BlockTypes.isWater(block.type)
Fields
- IMPERVIOUS
- Impervious block type. ("impervious")
- WEAK
- Weak block type. ("weak")
- ACTIVE
- Active block type. ("active")
- START
- Start block type. ("start")
- INACTIVE
- Inactive block type. ("inactive")
- CHANGE
- Change block type. ("change")
- MOVE
- Move block type. ("move")
- WATER
- Water block type. ("water")
- REACTOR
- Reactor block type. ("reactor")
- GENERATOR
- Generator block type. ("generator")
- INACTIVE_LUA
- Inactive lua block type. ("lua inactive")
- WATER_LUA
- Water lua block type. ("lua water")