dev.polymodloader.api.content.effect
자동 생성
이 페이지는 소스의 Javadoc에서 ./gradlew apiReference로 만든 것입니다. 설명은 코드에 적힌 영어 그대로입니다. 직접 고치지 말고 소스의 주석을 고친 뒤 다시 만드세요.
| 형식 | 종류 | 설명 |
|---|---|---|
EffectBehavior | 함수형 인터페이스 | What a mod status effect does while active. |
EffectCategory | 열거형 | Whether an effect helps, harms, or neither (affects icons, milk, and some mob reactions). |
EffectDefinition | 레코드 | A mod status effect. |
EffectHandle | 인터페이스 | A declared status effect. |
EffectBehavior
함수형 인터페이스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public interface EffectBehavior
What a mod status effect does while active.
onTick(LivingEntityView, int)
void onTick(LivingEntityView entity, int amplifier)
추가된 버전 0.1.0-alpha.4 또는 그 이전
Called on the server every tickInterval ticks while the entity has the effect.
| 인자 | 타입 | 설명 |
|---|---|---|
entity | LivingEntityView | — |
amplifier | int | 0 for level I |
EffectCategory
열거형 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public enum EffectCategory
Whether an effect helps, harms, or neither (affects icons, milk, and some mob reactions).
| 상수 | 설명 |
|---|---|
BENEFICIAL | — |
HARMFUL | — |
NEUTRAL | — |
EffectDefinition
레코드 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public record EffectDefinition(EffectCategory category, int color, int tickInterval, EffectBehavior behavior)
A mod status effect. Its name comes from effect.<mod id>.<path> and its icon from textures/mob_effect/<path>.png in the mod's resource pack.
| 구성 요소 | 타입 | 설명 |
|---|---|---|
category | EffectCategory | helpful, harmful, or neutral |
color | int | particle colour as 0xRRGGBB |
tickInterval | int | ticks between EffectBehavior.onTick calls, at least 1 |
behavior | EffectBehavior | what the effect does |
EffectHandle
인터페이스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public interface EffectHandle extends ContentHandle
A declared status effect.
상위 형식: ContentHandle