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;
CommonLevelAccessor
implements the following interfaces:
LevelReader
,BlockAndTintGetter
,BlockGetter
Undocumented Interfaces EntityGetter
, LevelSimulatedRW
, CollisionGetter
, SignalGetter
, NoiseBiomeSource
, IForgeBlockAndTintGetter
, LevelHeightAccessor
, IForgeBlockGetter
, LevelSimulatedReader
, LevelWriter
// CommonLevelAccessor.canSeeSkyFromBelowWater(pos as BlockPos ) as bool; myCommonLevelAccessor . canSeeSkyFromBelowWater(myBlockPos);
Return Type:
bool
Gets the biome at a given position. Returns : The biome at the given position.
myCommonLevelAccessor . getBiome( new BlockPos( 0 , 1 , 2 ));
Return Type:
Biome
Gets the tile entity data for a tile entity at a given position. Returns : The data of the tile entity.
// CommonLevelAccessor.getBlockEntityData(pos as BlockPos ) as IData ; myCommonLevelAccessor . getBlockEntityData( new BlockPos( 0 , 1 , 2 ));
Return Type:
IData
// CommonLevelAccessor.getBlockFloorHeight(pos as BlockPos ) as double; myCommonLevelAccessor . getBlockFloorHeight(myBlockPos);
Return Type:
double
Gets the block state at a given position. Returns : The block state at the position.
myCommonLevelAccessor . getBlockState( new BlockPos( 0 , 1 , 2 ));
Return Type:
BlockState
// CommonLevelAccessor.getLightEmission(pos as BlockPos ) as int; myCommonLevelAccessor . getLightEmission(myBlockPos);
Return Type:
int
// 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 bool
myCommonLevelAccessor . isClientSide
Return Type:
bool
Checks if the block at a given position is empty. Returns : Whether the block is empty.
// CommonLevelAccessor.isEmptyBlock(pos as BlockPos ) as bool; myCommonLevelAccessor . isEmptyBlock( new BlockPos( 0 , 1 , 2 ));
Return Type:
bool
// CommonLevelAccessor.isWaterAt(pos as BlockPos ) as bool; myCommonLevelAccessor . isWaterAt(myBlockPos);
Return Type:
bool
// CommonLevelAccessor.maxLightLevel as int
myCommonLevelAccessor . maxLightLevel
Return Type:
int
Gets the height of the sea level. // CommonLevelAccessor.seaLevel as int
myCommonLevelAccessor . seaLevel
Return Type:
int
// CommonLevelAccessor.skyDarken as int
myCommonLevelAccessor . skyDarken
Return Type:
int