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.
import crafttweaker.api.world.BaseSpawner;
Methods
Return Type: Entity?
BaseSpawner.getOrCreateDisplayEntity(level as Level, random as RandomSource, position as BlockPos) as Entity?
Parameter | Type |
---|---|
Parameter level | Type Level |
Parameter random | Type RandomSource |
Parameter position | Type BlockPos |
Return Type: double
// BaseSpawner.getSpin() as double
myBaseSpawner.getSpin();
Return Type: double
// BaseSpawner.getoSpin() as double
myBaseSpawner.getoSpin();
BaseSpawner.setEntityId(type as EntityType<Entity>, level as Level, random as RandomSource, position as BlockPos)
Parameter | Type |
---|---|
Parameter type | Type EntityType<Entity> |
Parameter level | Type Level |
Parameter random | Type RandomSource |
Parameter position | Type BlockPos |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name oSpin | Type double | Has Getter true | Has Setter false |
Name spin | Type double | Has Getter true | Has Setter false |