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(param0 as Level) as Entity?
参数类型
参数
param0
类型
Level

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(param0 as EntityType)
参数类型
参数
param0
类型
EntityType
名称类型可获得可设置
名称
entityId
类型
BaseSpawner
可获得
false
可设置
true
名称
oSpin
类型
double
可获得
true
可设置
false
名称
spin
类型
double
可获得
true
可设置
false