IMobSpawnerBaseLogic

Link to imobspawnerbaselogic

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

Importare la Classe

Link to importare-la-classe

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

ZenGetters/ZenSetters

Link to zengetterszensetters

ZenGetterZenSetterDescrizioneTipo
ZenGetter
nbtData
ZenSetter
nbtData
Descrizione
NBT Data for the spawner. (See below)
Tipo
IData
ZenGetter
entityDefinition
ZenSetter
entityDefinition
Descrizione
Entity Definition to be spawned.
Tipo
IEntityDefinition
ZenGetter
world
ZenSetter
Descrizione
World that the spawner belongs to.
Tipo
IWorld
ZenGetter
blockPos
ZenSetter
Descrizione
The position of the spawner block.
Tipo
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.