Importing the class

Link to importing-the-class

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 at the very top of the file.

ZenScript
Copy
import crafttweaker.api.world.BaseSpawner;

Link to getOrCreateDisplayEntity

Name: getOrCreateDisplayEntity

Return Type: Entity?

ZenScript
Copy
BaseSpawner.getOrCreateDisplayEntity(level as Level, position as BlockPos) as Entity?
ParameterType
Parameter
level
Type
Level
Parameter
position
Type
BlockPos

Name: getSpin

Return Type: double

ZenScript
Copy
// BaseSpawner.getSpin() as double

myBaseSpawner.getSpin();

Name: getoSpin

Return Type: double

ZenScript
Copy
// BaseSpawner.getoSpin() as double

myBaseSpawner.getoSpin();

Name: setEntityId

ZenScript
Copy
BaseSpawner.setEntityId(type as EntityType<Entity>, level as Level, random as RandomSource, position as BlockPos)
ParameterType
Parameter
type
Type
EntityType<Entity>
Parameter
level
Type
Level
Parameter
random
Type
RandomSource
Parameter
position
Type
BlockPos
NameTypeHas GetterHas Setter
Name
oSpin
Type
double
Has Getter
true
Has Setter
false
Name
spin
Type
double
Has Getter
true
Has Setter
false