CommonLevelAccessor
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.CommonLevelAccessor;Implements
CommonLevelAccessor
implements the following interfaces:
LevelReader,LevelSimulatedRW,BlockAndTintGetter,BlockGetter,LevelWriter
Undocumented Interfaces
EntityGetter,CollisionGetter,SignalGetter,NoiseBiomeSource,ILevelReaderExtension,IBlockAndTintGetterExtension,LevelHeightAccessor,IBlockGetterExtension,LevelSimulatedReader
Members
Returns: Whether the block was changed.
myCommonLevelAccessor.destroyBlock(new BlockPos(0, 1, 2), true);Parameters:
Return Type:
bool
Returns: Whether the block was changed.
myCommonLevelAccessor.destroyBlock(new BlockPos(0, 1, 2), true, player);Parameters:
Return Type:
bool
Returns: The data of the tile entity.
myCommonLevelAccessor.getBlockEntityData(new BlockPos(0, 1, 2));
Return Type:
IData
Returns: The block state at the position.
myCommonLevelAccessor.getBlockState(new BlockPos(0, 1, 2));
Return Type:
BlockState
// CommonLevelAccessor.hasChunk(x as int, z as int) as bool;myCommonLevelAccessor.hasChunk(myInt, myInt);Parameters:
x: int Type: int z: int Type: int
Return Type:
bool
// CommonLevelAccessor.isClientSide as boolmyCommonLevelAccessor.isClientSide
Return Type:
bool
// CommonLevelAccessor.maxLightLevel as intmyCommonLevelAccessor.maxLightLevel
Return Type:
int
// CommonLevelAccessor.seaLevel as intmyCommonLevelAccessor.seaLevel
Return Type:
int
// CommonLevelAccessor.skyDarken as intmyCommonLevelAccessor.skyDarken
Return Type:
int