BaseSpawner

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.world.BaseSpawner;

Members

getOrCreateDisplayEntity(level as Level, position as BlockPos) as Entity
script.zs
// BaseSpawner.getOrCreateDisplayEntity(level as Level, position as BlockPos) as Entity;
myBaseSpawner.getOrCreateDisplayEntity(myLevel, myBlockPos);

Parameters:

level Type: Level
position Type: BlockPos

Return Type: Entity

Getter
script.zs
// BaseSpawner.oSpin as double
myBaseSpawner.oSpin

Return Type: double

oSpin() as double
script.zs
// BaseSpawner.oSpin() as double;
myBaseSpawner.oSpin();

Return Type: double

setEntityId(type as EntityType<Entity>, level as Level, random as RandomSource, position as BlockPos)
script.zs
// BaseSpawner.setEntityId(type as EntityType<Entity>, level as Level, random as RandomSource, position as BlockPos);
myBaseSpawner.setEntityId(myEntityType, myLevel, myRandomSource, myBlockPos);

Parameters:

level Type: Level
random Type: RandomSource
position Type: BlockPos
Getter
script.zs
// BaseSpawner.spin as double
myBaseSpawner.spin

Return Type: double

spin() as double
script.zs
// BaseSpawner.spin() as double;
myBaseSpawner.spin();

Return Type: double