IBlockAccess
Link to iblockaccess
BlockAccess objects are a group of blocks accessible via coordinates. They mainly serves as superinterface to IWorld, that means all these functions are also available to all IWorld objects.
Importare la Classe
Link to importare-la-classe
It might be required to import the class to avoid errors.
import crafttweaker.world.IBlockAccess
ZenMethods
Link to zenmethods
Get or Set a blockState at a specific Position
Link to get-or-set-a-blockstate-at-a-specific-position
Use an IBlockPos Object and an IBlockState Object.
Returns an IBlockState.
ZenScript CopyaccObj.getBlockState(IBlockPos pos);
Check if a block is an air block.
Link to check-if-a-block-is-an-air-block
Use an IBlockPos object.
Returns a bool.
ZenScript CopyaccObj.isAirBlock(IBlockPos pos);
Get strong Power at a block's side
Link to get-strong-power-at-a-blocks-side
Use an IBlockPos object and an IFacing object.
Returns an int.
ZenScript CopyaccObj.getStrongPower(BlockPos var1, EnumFacing var2);