MinecraftServerSettingsService.java
net.minecraft.server.jsonrpc.internalapi.MinecraftServerSettingsService
信息
- 全限定名:net.minecraft.server.jsonrpc.internalapi.MinecraftServerSettingsService
- 类型:public interface
- 包:net.minecraft.server.jsonrpc.internalapi
- 源码路径:src/main/java/net/minecraft/server/jsonrpc/internalapi/MinecraftServerSettingsService.java
- 起始行号:L8
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
boolean isAutoSave() @ L9
- 方法名:isAutoSave
- 源码定位:L9
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setAutoSave(boolean enabled, ClientInfo clientInfo) @ L11
- 方法名:setAutoSave
- 源码定位:L11
- 返回类型:boolean
- 修饰符:package-private
参数:
- enabled: boolean
- clientInfo: ClientInfo
说明:
TODO
Difficulty getDifficulty() @ L13
- 方法名:getDifficulty
- 源码定位:L13
- 返回类型:Difficulty
- 修饰符:package-private
参数:
- 无
说明:
TODO
Difficulty setDifficulty(Difficulty difficulty, ClientInfo clientInfo) @ L15
- 方法名:setDifficulty
- 源码定位:L15
- 返回类型:Difficulty
- 修饰符:package-private
参数:
- difficulty: Difficulty
- clientInfo: ClientInfo
说明:
TODO
boolean isEnforceWhitelist() @ L17
- 方法名:isEnforceWhitelist
- 源码定位:L17
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setEnforceWhitelist(boolean enforce, ClientInfo clientInfo) @ L19
- 方法名:setEnforceWhitelist
- 源码定位:L19
- 返回类型:boolean
- 修饰符:package-private
参数:
- enforce: boolean
- clientInfo: ClientInfo
说明:
TODO
boolean isUsingWhitelist() @ L21
- 方法名:isUsingWhitelist
- 源码定位:L21
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setUsingWhitelist(boolean use, ClientInfo clientInfo) @ L23
- 方法名:setUsingWhitelist
- 源码定位:L23
- 返回类型:boolean
- 修饰符:package-private
参数:
- use: boolean
- clientInfo: ClientInfo
说明:
TODO
int getMaxPlayers() @ L25
- 方法名:getMaxPlayers
- 源码定位:L25
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setMaxPlayers(int maxPlayers, ClientInfo clientInfo) @ L27
- 方法名:setMaxPlayers
- 源码定位:L27
- 返回类型:int
- 修饰符:package-private
参数:
- maxPlayers: int
- clientInfo: ClientInfo
说明:
TODO
int getPauseWhenEmptySeconds() @ L29
- 方法名:getPauseWhenEmptySeconds
- 源码定位:L29
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setPauseWhenEmptySeconds(int emptySeconds, ClientInfo clientInfo) @ L31
- 方法名:setPauseWhenEmptySeconds
- 源码定位:L31
- 返回类型:int
- 修饰符:package-private
参数:
- emptySeconds: int
- clientInfo: ClientInfo
说明:
TODO
int getPlayerIdleTimeout() @ L33
- 方法名:getPlayerIdleTimeout
- 源码定位:L33
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setPlayerIdleTimeout(int idleTime, ClientInfo clientInfo) @ L35
- 方法名:setPlayerIdleTimeout
- 源码定位:L35
- 返回类型:int
- 修饰符:package-private
参数:
- idleTime: int
- clientInfo: ClientInfo
说明:
TODO
boolean allowFlight() @ L37
- 方法名:allowFlight
- 源码定位:L37
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setAllowFlight(boolean allow, ClientInfo clientInfo) @ L39
- 方法名:setAllowFlight
- 源码定位:L39
- 返回类型:boolean
- 修饰符:package-private
参数:
- allow: boolean
- clientInfo: ClientInfo
说明:
TODO
int getSpawnProtectionRadius() @ L41
- 方法名:getSpawnProtectionRadius
- 源码定位:L41
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setSpawnProtectionRadius(int spawnProtection, ClientInfo clientInfo) @ L43
- 方法名:setSpawnProtectionRadius
- 源码定位:L43
- 返回类型:int
- 修饰符:package-private
参数:
- spawnProtection: int
- clientInfo: ClientInfo
说明:
TODO
String getMotd() @ L45
- 方法名:getMotd
- 源码定位:L45
- 返回类型:String
- 修饰符:package-private
参数:
- 无
说明:
TODO
String setMotd(String motd, ClientInfo clientInfo) @ L47
- 方法名:setMotd
- 源码定位:L47
- 返回类型:String
- 修饰符:package-private
参数:
- motd: String
- clientInfo: ClientInfo
说明:
TODO
boolean forceGameMode() @ L49
- 方法名:forceGameMode
- 源码定位:L49
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setForceGameMode(boolean force, ClientInfo clientInfo) @ L51
- 方法名:setForceGameMode
- 源码定位:L51
- 返回类型:boolean
- 修饰符:package-private
参数:
- force: boolean
- clientInfo: ClientInfo
说明:
TODO
GameType getGameMode() @ L53
- 方法名:getGameMode
- 源码定位:L53
- 返回类型:GameType
- 修饰符:package-private
参数:
- 无
说明:
TODO
GameType setGameMode(GameType gameMode, ClientInfo clientInfo) @ L55
- 方法名:setGameMode
- 源码定位:L55
- 返回类型:GameType
- 修饰符:package-private
参数:
- gameMode: GameType
- clientInfo: ClientInfo
说明:
TODO
int getViewDistance() @ L57
- 方法名:getViewDistance
- 源码定位:L57
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setViewDistance(int viewDistance, ClientInfo clientInfo) @ L59
- 方法名:setViewDistance
- 源码定位:L59
- 返回类型:int
- 修饰符:package-private
参数:
- viewDistance: int
- clientInfo: ClientInfo
说明:
TODO
int getSimulationDistance() @ L61
- 方法名:getSimulationDistance
- 源码定位:L61
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setSimulationDistance(int simulationDistance, ClientInfo clientInfo) @ L63
- 方法名:setSimulationDistance
- 源码定位:L63
- 返回类型:int
- 修饰符:package-private
参数:
- simulationDistance: int
- clientInfo: ClientInfo
说明:
TODO
boolean acceptsTransfers() @ L65
- 方法名:acceptsTransfers
- 源码定位:L65
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setAcceptsTransfers(boolean accept, ClientInfo clientInfo) @ L67
- 方法名:setAcceptsTransfers
- 源码定位:L67
- 返回类型:boolean
- 修饰符:package-private
参数:
- accept: boolean
- clientInfo: ClientInfo
说明:
TODO
int getStatusHeartbeatInterval() @ L69
- 方法名:getStatusHeartbeatInterval
- 源码定位:L69
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setStatusHeartbeatInterval(int statusHeartbeatInterval, ClientInfo clientInfo) @ L71
- 方法名:setStatusHeartbeatInterval
- 源码定位:L71
- 返回类型:int
- 修饰符:package-private
参数:
- statusHeartbeatInterval: int
- clientInfo: ClientInfo
说明:
TODO
LevelBasedPermissionSet getOperatorUserPermissions() @ L73
- 方法名:getOperatorUserPermissions
- 源码定位:L73
- 返回类型:LevelBasedPermissionSet
- 修饰符:package-private
参数:
- 无
说明:
TODO
LevelBasedPermissionSet setOperatorUserPermissions(LevelBasedPermissionSet level, ClientInfo clientInfo) @ L75
- 方法名:setOperatorUserPermissions
- 源码定位:L75
- 返回类型:LevelBasedPermissionSet
- 修饰符:package-private
参数:
- level: LevelBasedPermissionSet
- clientInfo: ClientInfo
说明:
TODO
boolean hidesOnlinePlayers() @ L77
- 方法名:hidesOnlinePlayers
- 源码定位:L77
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setHidesOnlinePlayers(boolean hide, ClientInfo clientInfo) @ L79
- 方法名:setHidesOnlinePlayers
- 源码定位:L79
- 返回类型:boolean
- 修饰符:package-private
参数:
- hide: boolean
- clientInfo: ClientInfo
说明:
TODO
boolean repliesToStatus() @ L81
- 方法名:repliesToStatus
- 源码定位:L81
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean setRepliesToStatus(boolean enable, ClientInfo clientInfo) @ L83
- 方法名:setRepliesToStatus
- 源码定位:L83
- 返回类型:boolean
- 修饰符:package-private
参数:
- enable: boolean
- clientInfo: ClientInfo
说明:
TODO
int getEntityBroadcastRangePercentage() @ L85
- 方法名:getEntityBroadcastRangePercentage
- 源码定位:L85
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int setEntityBroadcastRangePercentage(int percentage, ClientInfo clientInfo) @ L87
- 方法名:setEntityBroadcastRangePercentage
- 源码定位:L87
- 返回类型:int
- 修饰符:package-private
参数:
- percentage: int
- clientInfo: ClientInfo
说明:
TODO
代码
public interface MinecraftServerSettingsService {
boolean isAutoSave();
boolean setAutoSave(boolean enabled, ClientInfo clientInfo);
Difficulty getDifficulty();
Difficulty setDifficulty(Difficulty difficulty, ClientInfo clientInfo);
boolean isEnforceWhitelist();
boolean setEnforceWhitelist(boolean enforce, ClientInfo clientInfo);
boolean isUsingWhitelist();
boolean setUsingWhitelist(boolean use, ClientInfo clientInfo);
int getMaxPlayers();
int setMaxPlayers(int maxPlayers, ClientInfo clientInfo);
int getPauseWhenEmptySeconds();
int setPauseWhenEmptySeconds(int emptySeconds, ClientInfo clientInfo);
int getPlayerIdleTimeout();
int setPlayerIdleTimeout(int idleTime, ClientInfo clientInfo);
boolean allowFlight();
boolean setAllowFlight(boolean allow, ClientInfo clientInfo);
int getSpawnProtectionRadius();
int setSpawnProtectionRadius(int spawnProtection, ClientInfo clientInfo);
String getMotd();
String setMotd(String motd, ClientInfo clientInfo);
boolean forceGameMode();
boolean setForceGameMode(boolean force, ClientInfo clientInfo);
GameType getGameMode();
GameType setGameMode(GameType gameMode, ClientInfo clientInfo);
int getViewDistance();
int setViewDistance(int viewDistance, ClientInfo clientInfo);
int getSimulationDistance();
int setSimulationDistance(int simulationDistance, ClientInfo clientInfo);
boolean acceptsTransfers();
boolean setAcceptsTransfers(boolean accept, ClientInfo clientInfo);
int getStatusHeartbeatInterval();
int setStatusHeartbeatInterval(int statusHeartbeatInterval, ClientInfo clientInfo);
LevelBasedPermissionSet getOperatorUserPermissions();
LevelBasedPermissionSet setOperatorUserPermissions(LevelBasedPermissionSet level, ClientInfo clientInfo);
boolean hidesOnlinePlayers();
boolean setHidesOnlinePlayers(boolean hide, ClientInfo clientInfo);
boolean repliesToStatus();
boolean setRepliesToStatus(boolean enable, ClientInfo clientInfo);
int getEntityBroadcastRangePercentage();
int setEntityBroadcastRangePercentage(int percentage, ClientInfo clientInfo);
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数/返回值
- 引用位置:
-
- 引用位置:
参数/返回值
- 引用位置:
-
- 引用位置:
参数/返回值
- 引用位置: