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;

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

Link to getCommandString

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();
名称类型可获得可设置描述
名称
blocksMotion
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
color
类型
MaterialColor
可获得
true
可设置
false
描述
No Description Provided
名称
commandString #命令字符串
类型
string
可获得
true
可设置
false
描述
Gets the bracket syntax for this Material
名称
isFlammable #是否为可燃物
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
isLiquid #是否为液体
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
isReplaceable #是否可替换
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
isSolid #是否为固体
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
isSolidBlocking
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
pushReaction
类型
PushReaction
可获得
true
可设置
false
描述
No Description Provided