| 1 | package net.minecraft.server.jsonrpc.internalapi;
|
| 2 |
|
| 3 | import net.minecraft.server.jsonrpc.methods.ClientInfo;
|
| 4 | import net.minecraft.server.permissions.LevelBasedPermissionSet;
|
| 5 | import net.minecraft.world.Difficulty;
|
| 6 | import net.minecraft.world.level.GameType;
|
| 7 |
|
| 8 | public interface MinecraftServerSettingsService {
|
| 9 | boolean isAutoSave();
|
| 10 |
|
| 11 | boolean setAutoSave(boolean enabled, ClientInfo clientInfo);
|
| 12 |
|
| 13 | Difficulty getDifficulty();
|
| 14 |
|
| 15 | Difficulty setDifficulty(Difficulty difficulty, ClientInfo clientInfo);
|
| 16 |
|
| 17 | boolean isEnforceWhitelist();
|
| 18 |
|
| 19 | boolean setEnforceWhitelist(boolean enforce, ClientInfo clientInfo);
|
| 20 |
|
| 21 | boolean isUsingWhitelist();
|
| 22 |
|
| 23 | boolean setUsingWhitelist(boolean use, ClientInfo clientInfo);
|
| 24 |
|
| 25 | int getMaxPlayers();
|
| 26 |
|
| 27 | int setMaxPlayers(int maxPlayers, ClientInfo clientInfo);
|
| 28 |
|
| 29 | int getPauseWhenEmptySeconds();
|
| 30 |
|
| 31 | int setPauseWhenEmptySeconds(int emptySeconds, ClientInfo clientInfo);
|
| 32 |
|
| 33 | int getPlayerIdleTimeout();
|
| 34 |
|
| 35 | int setPlayerIdleTimeout(int idleTime, ClientInfo clientInfo);
|
| 36 |
|
| 37 | boolean allowFlight();
|
| 38 |
|
| 39 | boolean setAllowFlight(boolean allow, ClientInfo clientInfo);
|
| 40 |
|
| 41 | int getSpawnProtectionRadius();
|
| 42 |
|
| 43 | int setSpawnProtectionRadius(int spawnProtection, ClientInfo clientInfo);
|
| 44 |
|
| 45 | String getMotd();
|
| 46 |
|
| 47 | String setMotd(String motd, ClientInfo clientInfo);
|
| 48 |
|
| 49 | boolean forceGameMode();
|
| 50 |
|
| 51 | boolean setForceGameMode(boolean force, ClientInfo clientInfo);
|
| 52 |
|
| 53 | GameType getGameMode();
|
| 54 |
|
| 55 | GameType setGameMode(GameType gameMode, ClientInfo clientInfo);
|
| 56 |
|
| 57 | int getViewDistance();
|
| 58 |
|
| 59 | int setViewDistance(int viewDistance, ClientInfo clientInfo);
|
| 60 |
|
| 61 | int getSimulationDistance();
|
| 62 |
|
| 63 | int setSimulationDistance(int simulationDistance, ClientInfo clientInfo);
|
| 64 |
|
| 65 | boolean acceptsTransfers();
|
| 66 |
|
| 67 | boolean setAcceptsTransfers(boolean accept, ClientInfo clientInfo);
|
| 68 |
|
| 69 | int getStatusHeartbeatInterval();
|
| 70 |
|
| 71 | int setStatusHeartbeatInterval(int statusHeartbeatInterval, ClientInfo clientInfo);
|
| 72 |
|
| 73 | LevelBasedPermissionSet getOperatorUserPermissions();
|
| 74 |
|
| 75 | LevelBasedPermissionSet setOperatorUserPermissions(LevelBasedPermissionSet level, ClientInfo clientInfo);
|
| 76 |
|
| 77 | boolean hidesOnlinePlayers();
|
| 78 |
|
| 79 | boolean setHidesOnlinePlayers(boolean hide, ClientInfo clientInfo);
|
| 80 |
|
| 81 | boolean repliesToStatus();
|
| 82 |
|
| 83 | boolean setRepliesToStatus(boolean enable, ClientInfo clientInfo);
|
| 84 |
|
| 85 | int getEntityBroadcastRangePercentage();
|
| 86 |
|
| 87 | int setEntityBroadcastRangePercentage(int percentage, ClientInfo clientInfo);
|
| 88 | }
|
| 89 |
|