IMobilityFlag
Link to imobilityflag
IMobilityFlag 接口允许你获取一个 IBlockState 可能的 mobilityFlags。
导入相关包
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.IMobilityFlag;
ZenMethods
Link to zenmethods
Matches
Link to matches
你可以这样检查两个 IMobilityFlag 对象是否相等:
返回一个布尔值。
ZenScript CopyflagOne.matches(other);
Enumerations
Link to enumerations
MobilityFlag 接口有 5 个静态方法,每个静态方法都会返回一个给定的 IMobilityFlag 对象。
ZenScript Copycrafttweaker.block.MobilityFlag.normal()
crafttweaker.block.MobilityFlag.destroy()
crafttweaker.block.MobilityFlag.block()
crafttweaker.block.MobilityFlag.ignore()
crafttweaker.block.MobilityFlag.pushOnly()