IMobSpawnerBaseLogic
Link to imobspawnerbaselogic
The IMobSpawnerBaseLogic object contains all kinds of information on how and where to spawn something for mob spawners.
Diese Klasse importieren
Link to diese-klasse-importieren
It might be required to import the class to avoid errors.
import crafttweaker.tileentity.IMobSpawnerBaseLogic;
ZenGetter/ZenSetter
Link to zengetterzensetter
ZenGetter | ZenSetter | Beschreibung | Type |
---|---|---|---|
ZenGetter nbtData | ZenSetter nbtData | Beschreibung NBT Data for the spawner. (See below) | Type IData |
ZenGetter entityDefinition | ZenSetter entityDefinition | Beschreibung Entity Definition to be spawned. | Type IEntityDefinition |
ZenGetter world | ZenSetter | Beschreibung World that the spawner belongs to. | Type IWorld |
ZenGetter blockPos | ZenSetter | Beschreibung The position of the spawner block. | Type IBlockPos |
ZenMethods
Link to zenmethods
ZenScript Copyvoid 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.