> ## 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.

# Effect

> 药水效果

从 `LivingEntity.getPotionEffects()` 返回的 List 元素。

```java theme={null}
String  getName()        // 注册 id，如 "minecraft:speed"
String  getId()          // 别名，等于 getName()
int     getAmplifier()   // 放大级别，0 = 一级
int     getDuration()    // 剩余 tick 数（20/秒）
boolean isAmbient()
boolean isVisible()
int     getColor()

net.minecraft.world.effect.MobEffectInstance raw()
```

## 示例

```java theme={null}
for (eff : me.getPlayer().getPotionEffects()) {
    me.log(eff.getName() + " lvl " + (eff.getAmplifier() + 1)
           + " " + (eff.getDuration() / 20) + "s");
}
```
