IMaterial
Link to imaterial
An IMaterial object represents the material a block is made of.
Importing the package
Link to 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
Link to zengetterszenmethods-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
Link to zenmethods-with-parameters
Check if two IMaterials match
Link to check-if-two-imaterials-match
Uses an IMaterial.
Returns a bool.
ZenScript CopymaterialObj.matches(IMaterial other);
Getting Vanilla Minecraft Materials
Link to getting-vanilla-minecraft-materials
You can use these methods to get the vanilla minecraft materials
ZenScript Copycrafttweaker.blocks.IMaterial.air();
crafttweaker.blocks.IMaterial.anvil();
crafttweaker.blocks.IMaterial.barrier();
crafttweaker.blocks.IMaterial.cactus();
crafttweaker.blocks.IMaterial.cake();
crafttweaker.blocks.IMaterial.carpet();
crafttweaker.blocks.IMaterial.circuits();
crafttweaker.blocks.IMaterial.clay();
crafttweaker.blocks.IMaterial.cloth();
crafttweaker.blocks.IMaterial.coral();
crafttweaker.blocks.IMaterial.craftedSnow();
crafttweaker.blocks.IMaterial.dragonEgg();
crafttweaker.blocks.IMaterial.fire();
crafttweaker.blocks.IMaterial.glass();
crafttweaker.blocks.IMaterial.gourd();
crafttweaker.blocks.IMaterial.grass();
crafttweaker.blocks.IMaterial.ground();
crafttweaker.blocks.IMaterial.ice();
crafttweaker.blocks.IMaterial.iron();
crafttweaker.blocks.IMaterial.lava();
crafttweaker.blocks.IMaterial.leaves();
crafttweaker.blocks.IMaterial.packedIce();
crafttweaker.blocks.IMaterial.piston();
crafttweaker.blocks.IMaterial.plants();
crafttweaker.blocks.IMaterial.portal();
crafttweaker.blocks.IMaterial.redstoneLight();
crafttweaker.blocks.IMaterial.rock();
crafttweaker.blocks.IMaterial.sand();
crafttweaker.blocks.IMaterial.snow();
crafttweaker.blocks.IMaterial.sponge();
crafttweaker.blocks.IMaterial.structureVoid();
crafttweaker.blocks.IMaterial.tnt();
crafttweaker.blocks.IMaterial.vine();
crafttweaker.blocks.IMaterial.water();
crafttweaker.blocks.IMaterial.web();
crafttweaker.blocks.IMaterial.wood();