IEntityMob
Link to ientitymob
A Mob.
导入相关包
Link to 导入相关包
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.entity.IEntityMob;
Extending
Link to extending-ientitycreature
IEntityMob extends IEntityCreature. That means all functions available to IEntityCreature objects also are available to IEntityMob.
使用方式
Link to 使用方式
ZenMethods
Link to zenmethods
Check if the mob is preventing a player's sleep
Link to check-if-the-mob-is-preventing-a-players-sleep
The Method requires an IPlayer object.
Returns a bool.
ZenScript CopyentMobObj.isPreventingPlayerRest(IPlayer player);