> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cheart.getvapu.today/llms.txt
> Use this file to discover all available pages before exploring further.

# Hit

> Raytrace 结果

从 `me.raycast(range)` / `me.raycastBlock(range)` 返回。

### 类型判定

```java theme={null}
String  getType()                   // "BLOCK" / "ENTITY" / "MISS"
boolean isBlock()
boolean isEntity()
boolean isMiss()
```

### 通用

```java theme={null}
Vec3 getLocation()                   // 命中点
```

### BLOCK

```java theme={null}
int    getBlockX() / getBlockY() / getBlockZ()
Vec3   getBlockPosition()            // 非 BLOCK 返回 null
String getFace()                     // "UP"/"DOWN"/"NORTH"/"SOUTH"/"WEST"/"EAST"
```

### ENTITY

```java theme={null}
Entity getEntity()                   // 非 ENTITY 返回 null
```
