MCMaterial
Link to mcmaterial
This class was added by a mod with mod-id crafttweaker
. So you need to have this mod installed if you want to use this feature.
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.
ZenScript Copycrafttweaker.api.block.material.MCMaterial
Methods
Link to methods
blocksMovement
Link to blocksmovement
Returns if this material is considered solid or not
Returns boolean
ZenScript CopymyMCMaterial.blocksMovement();
getColor
Link to getcolor
Retrieves the color index of the block. This is is the same color used by vanilla maps to represent this block.
Returns crafttweaker.api.block.material.MCMaterialColor
ZenScript CopymyMCMaterial.getColor();
isFlammable
Link to isflammable
Returns if the block can burn or not.
Returns boolean
ZenScript CopymyMCMaterial.isFlammable();
isLiquid
Link to isliquid
Returns if blocks of these materials are liquids.
Returns boolean
ZenScript CopymyMCMaterial.isLiquid();
isOpaque
Link to isopaque
Indicate if the material is opaque
Returns boolean
ZenScript CopymyMCMaterial.isOpaque();
isReplaceable
Link to isreplaceable
Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.
Returns boolean
ZenScript CopymyMCMaterial.isReplaceable();
isSolid
Link to issolid
Returns true if the block is a considered solid. This is true by default.
Returns boolean
ZenScript CopymyMCMaterial.isSolid();
isToolNotRequired
Link to istoolnotrequired
Returns true if the material can be harvested without a tool (or with the wrong tool)
Returns boolean
ZenScript CopymyMCMaterial.isToolNotRequired();