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.util . BlockHitResult;
BlockHitResult extends HitResult
.
// BlockHitResult.blockPos as BlockPos
myBlockHitResult . blockPos
Return Type:
BlockPos
// BlockHitResult.blockPos() as BlockPos;
myBlockHitResult . blockPos();
Return Type:
BlockPos
// BlockHitResult.direction as Direction
myBlockHitResult . direction
Return Type:
Direction
// BlockHitResult.direction() as Direction;
myBlockHitResult . direction();
Return Type:
Direction
// BlockHitResult.distanceTo(entity as Entity) as double;
myBlockHitResult . distanceTo(myEntity);
Return Type:
double
// BlockHitResult.isInside as bool
myBlockHitResult . isInside
Return Type:
bool
// BlockHitResult.isInside() as bool;
myBlockHitResult . isInside();
Return Type:
bool
// BlockHitResult.location as Vec3
myBlockHitResult . location
Return Type:
Vec3
// BlockHitResult.location() as Vec3;
myBlockHitResult . location();
Return Type:
Vec3
// BlockHitResult.withDirection(param0 as Direction) as BlockHitResult;
myBlockHitResult . withDirection(myDirection);
Return Type:
BlockHitResult
// BlockHitResult.withPosition(param0 as BlockPos) as BlockHitResult;
myBlockHitResult . withPosition(myBlockPos);
Return Type:
BlockHitResult