---
pageClass: code-page
---

::: warning

Due to maintenance costs, the `YukiHookAPI` will no longer update this document from version `1.3.0` and switch to the API document automatically generated by the Dokka plugin in version `2.0.0`.

:::

::: warning

The English translation of this page has not been completed, you are welcome to contribute translations to us.

You can use the **Chrome Translation Plugin** to translate entire pages for reference.

:::

# FieldRules <span class="symbol">- class</span>

```kotlin:no-line-numbers
class FieldRules internal constructor(private val rulesData: FieldRulesData) : BaseRules
```

**Change Records**

`v1.1.0` `added`

**Function Illustrate**

> `Field` 查找条件实现类。

## name <span class="symbol">- field</span>

```kotlin:no-line-numbers
var name: String
```

**Change Records**

`v1.1.0` `added`

**Function Illustrate**

> 设置 `Field` 名称。

## type <span class="symbol">- field</span>

```kotlin:no-line-numbers
var type: Any?
```

**Change Records**

`v1.1.0` `added`

**Function Illustrate**

> 设置 `Field` 类型。

可不填写类型。

## modifiers <span class="symbol">- method</span>

```kotlin:no-line-numbers
fun modifiers(conditions: ModifierConditions)
```

**Change Records**

`v1.1.0` `added`

**Function Illustrate**

> 设置 `Field` 标识符筛选条件。

可不设置筛选条件。

## name <span class="symbol">- method</span>

```kotlin:no-line-numbers
fun name(conditions: NameConditions)
```

**Change Records**

`v1.1.0` `added`

**Function Illustrate**

> 设置 `Field` 名称条件。

## type <span class="symbol">- method</span>

```kotlin:no-line-numbers
fun type(conditions: ObjectConditions)
```

**Change Records**

`v1.1.5` `added`

**Function Illustrate**

> 设置 `Field` 类型条件。

可不填写类型。