dev.polymodloader.api.content.particle
이 페이지는 소스의 Javadoc에서 ./gradlew apiReference로 만든 것입니다. 설명은 코드에 적힌 영어 그대로입니다. 직접 고치지 말고 소스의 주석을 고친 뒤 다시 만드세요.
| 형식 | 종류 | 설명 |
|---|---|---|
ParticleDefinition | 레코드 | A particle type. |
ParticleDefinition
레코드 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public record ParticleDefinition(int lifetimeTicks, float gravity, float scale, boolean glowing, int tint)
A particle type. Clients draw it with the sprites listed in assets/<mod id>/particles/<path>.json (textures under textures/particle/), changing sprite over its life when several are listed. Spawn it with WorldView.spawnParticles.
| 구성 요소 | 타입 | 설명 |
|---|---|---|
lifetimeTicks | int | how long one particle lives |
gravity | float | downward acceleration (0 floats, 0.04 like falling dust) |
scale | float | size multiplier (1 is the game's default) |
glowing | boolean | drawn at full brightness, also in the dark |
tint | int | colour multiplied into the sprite, 0xRRGGBB (0xFFFFFF keeps it) |
of(int)
public static ParticleDefinition of(int lifetimeTicks)
추가된 버전 0.1.0-alpha.4 또는 그 이전
Lives lifetimeTicks, no gravity, default size, normal lighting, no tint.
| 인자 | 타입 | 설명 |
|---|---|---|
lifetimeTicks | int | — |
반환 ParticleDefinition
withGravity(float)
public ParticleDefinition withGravity(float value)
추가된 버전 0.1.0-alpha.4 또는 그 이전
A copy with this downward acceleration (0 floats).
| 인자 | 타입 | 설명 |
|---|---|---|
value | float | — |
반환 ParticleDefinition
withScale(float)
public ParticleDefinition withScale(float value)
추가된 버전 0.1.0-alpha.4 또는 그 이전
A copy with this size multiplier.
| 인자 | 타입 | 설명 |
|---|---|---|
value | float | — |
반환 ParticleDefinition
asGlowing()
public ParticleDefinition asGlowing()
추가된 버전 0.1.0-alpha.4 또는 그 이전
A copy drawn at full brightness, also in the dark.
반환 ParticleDefinition
withTint(int)
public ParticleDefinition withTint(int rgb)
추가된 버전 0.1.0-alpha.4 또는 그 이전
A copy with this colour, 0xRRGGBB, multiplied into the sprite.
| 인자 | 타입 | 설명 |
|---|---|---|
rgb | int | — |
반환 ParticleDefinition