Home Getting Started With Scripts Commands Examples
BracketDumpers BracketHandlers BracketValidators

BaseSpawner

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.

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

Methods

Return Type: Entity

script.zs
BaseSpawner.getOrCreateDisplayEntity(param0 as Level) as Entity
ParameterTypeDescription
Parameter
param0
Type
Level
Description
No Description Provided

Return Type: double

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

Return Type: double

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

Return Type: void

script.zs
BaseSpawner.setEntityId(param0 as EntityType) as void
ParameterTypeDescription
Parameter
param0
Type
EntityType
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
entityId
Type
BaseSpawner
Has Getter
false
Has Setter
true
Description
No Description Provided
Name
oSpin
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
spin
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided