Material
Link to material
Importing the class
Link to 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.
ZenScript Copyimport crafttweaker.api.block.material.Material;
Methods
Link to methods
Name: blocksMotion
Return Type: boolean
ZenScript Copy// Material.blocksMotion() as boolean
myMaterial.blocksMotion();
Name: getColor
Return Type: MaterialColor
ZenScript Copy// Material.getColor() as MaterialColor
myMaterial.getColor();
Name: getCommandString
Gets the bracket syntax for this Material
Returns: The <material>
Bracket Syntax for this material
Return Type: string
ZenScript Copy// Material.getCommandString() as string
myMaterial.getCommandString();
Name: getPushReaction
Return Type: PushReaction
ZenScript Copy// Material.getPushReaction() as PushReaction
myMaterial.getPushReaction();
Name: isFlammable
Return Type: boolean
ZenScript Copy// Material.isFlammable() as boolean
myMaterial.isFlammable();
Name: isLiquid
Return Type: boolean
ZenScript Copy// Material.isLiquid() as boolean
myMaterial.isLiquid();
Name: isReplaceable
Return Type: boolean
ZenScript Copy// Material.isReplaceable() as boolean
myMaterial.isReplaceable();
Name: isSolid
Return Type: boolean
ZenScript Copy// Material.isSolid() as boolean
myMaterial.isSolid();
Name: isSolidBlocking
Return Type: boolean
ZenScript Copy// Material.isSolidBlocking() as boolean
myMaterial.isSolidBlocking();
Properties
Link to properties
名称 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
名称 blocksMotion | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 color | Type MaterialColor | Has Getter true | Has Setter false | Description |
名称 commandString | Type string | Has Getter true | Has Setter false | Description Gets the bracket syntax for this Material |
名称 isFlammable | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isLiquid | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isReplaceable | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSolid | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSolidBlocking | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 pushReaction | Type PushReaction | Has Getter true | Has Setter false | Description |