IMaterial
An IMaterial object represents the material a block is made of.
Importing the package
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import crafttweaker.block.IMaterial;
ZenGetters/ZenMethods without parameters
ZenGetter | ZenMethod | Return Type |
---|---|---|
ZenGetter blocksLight | ZenMethod blocksLight() | Return Type bool |
ZenGetter blocksMovement | ZenMethod blocksMovement() | Return Type bool |
ZenGetter canBurn | ZenMethod getCanBurn() | Return Type bool |
ZenGetter mobilityFlag | ZenMethod getMobilityFlag() | Return Type string |
ZenGetter liquid | ZenMethod isLiquid() | Return Type bool |
ZenGetter opaque | ZenMethod isOpaque() | Return Type bool |
ZenGetter replaceable | ZenMethod isReplaceable() | Return Type bool |
ZenGetter solid | ZenMethod isSolid() | Return Type bool |
ZenGetter toolNotRequired | ZenMethod isToolNotRequired() | Return Type bool |
ZenGetter | ZenMethod setReplaceable() | Return Type IMaterial |
ZenMethods with parameters
Check if two IMaterials match
Uses an IMaterial.
Returns a bool.
Getting Vanilla Minecraft Materials
You can use these methods to get the vanilla minecraft materials