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 . LevelSimulatedRW;
LevelSimulatedRW
implements the following interfaces:
LevelWriter
Undocumented Interfaces LevelSimulatedReader
add an entity to the world, return if the entity is added successfully. // LevelSimulatedRW.addFreshEntity(entity as Entity) as bool;
myLevelSimulatedRW . addFreshEntity(myEntity);
Return Type:
bool
Destroys a block within the world. Returns : Whether the block was changed.
// LevelSimulatedRW.destroyBlock(pos as BlockPos, doDrops as bool) as bool;
myLevelSimulatedRW . destroyBlock( new BlockPos( 0 , 1 , 2 ), true );
Parameters:
doDrops: bool
Type: bool
- Whether the block drops itself and it's loot.
Return Type:
bool
Destroys a block within the world. Returns : Whether the block was changed.
// LevelSimulatedRW.destroyBlock(pos as BlockPos, doDrops as bool, breaker as Entity) as bool;
myLevelSimulatedRW . destroyBlock( new BlockPos( 0 , 1 , 2 ), true , player);
Parameters:
doDrops: bool
Type: bool
- Whether the block drops itself and it's loot.
breaker: Entity
Type: Entity
- The entity to break the block.
Return Type:
bool