MCBlockState
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.
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.
import crafttweaker.api.blocks.MCBlockState;
Return Type: stdlib.List<string>
MCBlockState.getAllowedValuesForProperty(name as string) as stdlib.List<string>
Parameter | Type | Description |
---|---|---|
name | string | No Description Provided |
Return Type: string[string]
MCBlockState.getProperties() as string[string]
myMCBlockState.getProperties();
Return Type: stdlib.List<string>
MCBlockState.getPropertyNames() as stdlib.List<string>
myMCBlockState.getPropertyNames();
Return Type: string
MCBlockState.getPropertyValue(name as string) as string
Parameter | Type | Description |
---|---|---|
name | string | No Description Provided |
Return Type: boolean
MCBlockState.hasProperty(name as string) as boolean
Parameter | Type | Description |
---|---|---|
name | string | No Description Provided |
Return Type: MCBlockState
MCBlockState.withProperty(name as string, value as string) as MCBlockState
Parameter | Type | Description |
---|---|---|
name | string | No Description Provided |
value | string | No Description Provided |
Name | Type | Has Getter | Has Setter |
---|---|---|---|
block | MCBlock | true | false |
canProvidePower | boolean | true | false |
commandString | string | true | false |
hasTileEntity | boolean | true | false |
isSolid | boolean | true | false |
isSticky | boolean | true | false |
lightLevel | int | true | false |
ticksRandomly | boolean | true | false |