Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
fun findEntityInCrosshair(range: Double, rotation: Rotation, predicate: Predicate<Entity>? = null): EntityHitResult?
Link copied to clipboard
fun Entity.findEntityInCrosshair(range: Double, rotation: Rotation, predicate: Predicate<Entity>? = null): EntityHitResult?
Link copied to clipboard
Allows you to check if a point is behind a wall
Link copied to clipboard
fun Entity.isFacingBlock(eyes: Vec3 = this.eyePosition, targetPoint: Vec3, blockPos: BlockPos, expectedSide: Direction? = null, expectedMaxRange: Double? = null): Boolean
Allows you to check if a point is behind a wall
Link copied to clipboard
Ray-traces from the current camera entity and returns a hit result when the traced entity equals toEntity.
fun isLookingAtEntity(fromEntity: Entity = mc.cameraEntity!!, toEntity: Entity, rotation: Rotation, range: Double, throughWallsRange: Double): EntityHitResult?
Ray-traces from fromEntity and validates whether toEntity is hit with the given rotation.
Link copied to clipboard
fun raytraceBlock(range: Double, rotation: Rotation = RotationManager.currentRotation ?: player.rotation, pos: BlockPos, state: BlockState): BlockHitResult?
Link copied to clipboard
Link copied to clipboard
fun traceFromPlayer(rotation: Rotation = RotationManager.currentRotation ?: player.rotation, range: Double = max(player.blockInteractionRange(), player.entityInteractionRange()), block: ClipContext.Block = ClipContext.Block.OUTLINE, includeFluids: Boolean = false, tickDelta: Float = 1.0f): BlockHitResult
Link copied to clipboard
fun traceFromPoint(range: Double = max(player.blockInteractionRange(), player.entityInteractionRange()), block: ClipContext.Block = ClipContext.Block.OUTLINE, includeFluids: Boolean = false, start: Vec3, direction: Vec3, entity: Entity = mc.cameraEntity!!): BlockHitResult