GameType
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Enum Constants
GameType is an enum. It has 4 enum constants. They are accessible using the code below.
Methods
Return Type: int
Return Type: Component
Return Type: string
Return Type: Component
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter abilities | Type Abilities |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name id | Type int | Has Getter true | Has Setter false |
Name isBlockPlacingRestricted | Type boolean | Has Getter true | Has Setter false |
Name isCreative | Type boolean | Has Getter true | Has Setter false |
Name isSurvival | Type boolean | Has Getter true | Has Setter false |
Name longDisplayName | Type Component | Has Getter true | Has Setter false |
Name name | Type string | Has Getter true | Has Setter false |
Name shortDisplayName | Type Component | Has Getter true | Has Setter false |