IMobSpawnerBaseLogic

Link to imobspawnerbaselogic

The IMobSpawnerBaseLogic object contains all kinds of information on how and where to spawn something for mob spawners.

It might be required to import the class to avoid errors.
import crafttweaker.tileentity.IMobSpawnerBaseLogic;

ZenGetters/ZenSetters

Link to zengetterszensetters

ZenGetterZenSetter描述类型
ZenGetter
nbtData
ZenSetter
nbtData
描述
NBT Data for the spawner. (See below)
类型
IData #数据
ZenGetter
entityDefinition
ZenSetter
entityDefinition
描述
Entity Definition to be spawned.
类型
IEntityDefinition
ZenGetter
world
ZenSetter
描述
World that the spawner belongs to.
类型
IWorld
ZenGetter
blockPos
ZenSetter
描述
The position of the spawner block.
类型
IBlockPos
ZenScript
Copy
void updateSpawner(); // Updates the spawner for spawning an entity and ticking down the spawn timer.

void setDelayToMin(); // Sets the delay of the spawner to the minimum delay for the next spawn.