IMaterial
Link to imaterial
An IMaterial object represents the material a block is made of.
パッケージのインポート
Link to パッケージのインポート
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 | 戻り値 |
---|---|---|
ZenGetter blocksLight | ZenMethod blocksLight() | 戻り値 bool |
ZenGetter blocksMovement | ZenMethod blocksMovement() | 戻り値 bool |
ZenGetter canBurn | ZenMethod getCanBurn() | 戻り値 bool |
ZenGetter mobilityFlag | ZenMethod getMobilityFlag() | 戻り値 string |
ZenGetter liquid | ZenMethod isLiquid() | 戻り値 bool |
ZenGetter opaque | ZenMethod isOpaque() | 戻り値 bool |
ZenGetter replaceable | ZenMethod isReplaceable() | 戻り値 bool |
ZenGetter solid | ZenMethod isSolid() | 戻り値 bool |
ZenGetter toolNotRequired | ZenMethod isToolNotRequired() | 戻り値 bool |
ZenGetter | ZenMethod setReplaceable() | 戻り値 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();