IMaterial
Link to imaterial
IMaterial 对象代表制作方块的材料。
导入相关包
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
Link to 不带参数的-zengetterszenmethods
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
检查两个 IMaterials 是否匹配
Link to 检查两个-imaterials-是否匹配
接受一个 IMaterial。
返回一个布尔值。
ZenScript CopymaterialObj.matches(IMaterial other);
获取原版 Minecraft 的材料
Link to 获取原版-minecraft-的材料
你可以使用这些方法来获取原版 Minecraft 的材料
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();