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
Copy
import crafttweaker.api.block.material.Material;

Link to g-

Name: blocksMotion

Return Type: boolean

ZenScript
Copy
// Material.blocksMotion() as boolean

myMaterial.blocksMotion();

Link to g--1

Name: getColor

Return Type: MaterialColor

ZenScript
Copy
// Material.getColor() as MaterialColor

myMaterial.getColor();

Link to g--2

Name: getCommandString

Gets the bracket syntax for this Material

Returns: The <blockmaterial> Bracket Syntax for this material
Return Type: string

ZenScript
Copy
// Material.getCommandString() as string

myMaterial.getCommandString();

Link to g--3

Name: getPushReaction

Return Type: PushReaction

ZenScript
Copy
// Material.getPushReaction() as PushReaction

myMaterial.getPushReaction();

Link to g--4

Name: isFlammable

Return Type: boolean

ZenScript
Copy
// Material.isFlammable() as boolean

myMaterial.isFlammable();

Link to g--5

Name: isLiquid

Return Type: boolean

ZenScript
Copy
// Material.isLiquid() as boolean

myMaterial.isLiquid();

Link to g--6

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();

Link to g--8

Name: isSolidBlocking

Return Type: boolean

ZenScript
Copy
// Material.isSolidBlocking() as boolean

myMaterial.isSolidBlocking();
NameTypeHas GetterHas SetterDescription
Name
blocksMotion
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
color
Type
MaterialColor
Has Getter
true
Has Setter
false
Description
No Description Provided
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
No Description Provided
Name
isLiquid
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isReplaceable
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isSolid
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isSolidBlocking
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
pushReaction
Type
PushReaction
Has Getter
true
Has Setter
false
Description
No Description Provided