본문으로 건너뛰기
버전: Minecraft 26.2

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.

인자타입설명
entityLivingEntityView—
amplifierint0 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.

구성 요소타입설명
categoryEffectCategoryhelpful, harmful, or neutral
colorintparticle colour as 0xRRGGBB
tickIntervalintticks between EffectBehavior.onTick calls, at least 1
behaviorEffectBehaviorwhat the effect does

EffectHandle​

인터페이스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전

public interface EffectHandle extends ContentHandle

A declared status effect.

상위 형식: ContentHandle

Buy me a coffee