dev.polymodloader.api.content.rule
자동 생성
이 페이지는 소스의 Javadoc에서 ./gradlew apiReference로 만든 것입니다. 설명은 코드에 적힌 영어 그대로입니다. 직접 고치지 말고 소스의 주석을 고친 뒤 다시 만드세요.
| 형식 | 종류 | 설명 |
|---|---|---|
GameRuleCategory | 열거형 | The section a game rule is listed under in the game's rule screen. |
GameRuleKey | 레코드 | A declared game rule, set per world with /gamerule <id> <value> and read with WorldView.gameRule(key). |
GameRuleCategory
열거형 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public enum GameRuleCategory
The section a game rule is listed under in the game's rule screen.
| 상수 | 설명 |
|---|---|
PLAYER | — |
MOBS | — |
SPAWNING | — |
DROPS | — |
UPDATES | — |
CHAT | — |
MISC | — |
GameRuleKey
레코드 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public record GameRuleKey<T>(ResourceId id, Class<T> type, T defaultValue, int min, int max, GameRuleCategory category)
A declared game rule, set per world with /gamerule <id> <value> and read with WorldView.gameRule(key).
| 구성 요소 | 타입 | 설명 |
|---|---|---|
id | ResourceId | rule ID, <mod id>:<path> |
type | Class<T> | value class |
defaultValue | T | value in new worlds |
min | int | smallest allowed integer (ignored for booleans) |
max | int | largest allowed integer (ignored for booleans) |
category | GameRuleCategory | rule screen section |