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 |
---|---|---|---|---|
Name blocksMotion | Type boolean | Has Getter true | Has Setter false | Description |
Name color | Type MaterialColor | Has Getter true | Has Setter false | Description |
Name commandString | Type string | Has Getter true | Has Setter false | Description Gets the bracket syntax for this Material |
Name isFlammable | Type boolean | Has Getter true | Has Setter false | Description |
Name isLiquid | Type boolean | Has Getter true | Has Setter false | Description |
Name isReplaceable | Type boolean | Has Getter true | Has Setter false | Description |
Name isSolid | Type boolean | Has Getter true | Has Setter false | Description |
Name isSolidBlocking | Type boolean | Has Getter true | Has Setter false | Description |
Name pushReaction | Type PushReaction | Has Getter true | Has Setter false | Description |