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.
import crafttweaker.api.world.BaseSpawner;
Members
getOrCreateDisplayEntity(level as Level, position as BlockPos) as Entity
Getter
// BaseSpawner.oSpin as doublemyBaseSpawner.oSpin
Return Type:
double
oSpin() as double
// BaseSpawner.oSpin() as double;myBaseSpawner.oSpin();
Return Type:
double
setEntityId(type as EntityType<Entity>, level as Level, random as RandomSource, position as BlockPos)
// BaseSpawner.setEntityId(type as EntityType<Entity>, level as Level, random as RandomSource, position as BlockPos);myBaseSpawner.setEntityId(myEntityType, myLevel, myRandomSource, myBlockPos);
Parameters:
type: EntityType<Entity>
Type: EntityType<Entity>
random: RandomSource
Type: RandomSource
Getter
// BaseSpawner.spin as doublemyBaseSpawner.spin
Return Type:
double
spin() as double
// BaseSpawner.spin() as double;myBaseSpawner.spin();
Return Type:
double