Material
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.
import crafttweaker.api.block.material.Material;Methods
Return Type: boolean
// Material.blocksMotion() as boolean
myMaterial.blocksMotion();Return Type: MaterialColor
// Material.getColor() as MaterialColor
myMaterial.getColor();Gets the bracket syntax for this Material
Returns: The <material> Bracket Syntax for this material
Return Type: string
// Material.getCommandString() as string
myMaterial.getCommandString();Return Type: PushReaction
// Material.getPushReaction() as PushReaction
myMaterial.getPushReaction();Return Type: boolean
// Material.isFlammable() as boolean
myMaterial.isFlammable();Return Type: boolean
// Material.isLiquid() as boolean
myMaterial.isLiquid();Return Type: boolean
// Material.isReplaceable() as boolean
myMaterial.isReplaceable();Return Type: boolean
// Material.isSolid() as boolean
myMaterial.isSolid();Return Type: boolean
// Material.isSolidBlocking() as boolean
myMaterial.isSolidBlocking();Properties
| Name | Type | Has Getter | Has Setter | Description | 
|---|---|---|---|---|
| NameblocksMotion | Typeboolean | Has Gettertrue | Has Setterfalse | Description | 
| Namecolor | TypeMaterialColor | Has Gettertrue | Has Setterfalse | Description | 
| NamecommandString | Typestring | Has Gettertrue | Has Setterfalse | DescriptionGets the bracket syntax for this Material | 
| NameisFlammable | Typeboolean | Has Gettertrue | Has Setterfalse | Description | 
| NameisLiquid | Typeboolean | Has Gettertrue | Has Setterfalse | Description | 
| NameisReplaceable | Typeboolean | Has Gettertrue | Has Setterfalse | Description | 
| NameisSolid | Typeboolean | Has Gettertrue | Has Setterfalse | Description | 
| NameisSolidBlocking | Typeboolean | Has Gettertrue | Has Setterfalse | Description | 
| NamepushReaction | TypePushReaction | Has Gettertrue | Has Setterfalse | Description |