Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

IEntityMob

A Mob.

Importing the package

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 IEntityCreature

IEntityMob extends IEntityCreature. That means all functions available to IEntityCreature objects also are available to IEntityMob.

Methods

ZenMethods

Check if the mob is preventing a player’s sleep

The Method requires an IPlayer object.
Returns a bool.

script.zs
entMobObj.isPreventingPlayerRest(IPlayer player);