IMobilityFlag 接口允许你获取一个 IBlockState 可能的 mobilityFlags。

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.IMobilityFlag;

你可以这样检查两个 IMobilityFlag 对象是否相等:
返回一个布尔值。

ZenScript
Copy
flagOne.matches(other);

MobilityFlag 接口有 5 个静态方法,每个静态方法都会返回一个给定的 IMobilityFlag 对象。

ZenScript
Copy
crafttweaker.block.MobilityFlag.normal()
crafttweaker.block.MobilityFlag.destroy()
crafttweaker.block.MobilityFlag.block()
crafttweaker.block.MobilityFlag.ignore()
crafttweaker.block.MobilityFlag.pushOnly()