WorldCreationGameRulesScreen.java
net.minecraft.client.gui.screens.worldselection.WorldCreationGameRulesScreen
信息
- 全限定名:net.minecraft.client.gui.screens.worldselection.WorldCreationGameRulesScreen
- 类型:public class
- 包:net.minecraft.client.gui.screens.worldselection
- 源码路径:src/main/java/net/minecraft/client/gui/screens/worldselection/WorldCreationGameRulesScreen.java
- 起始行号:L10
- 继承:AbstractGameRulesScreen
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public WorldCreationGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> exitCallback) @ L11
- 构造器名:WorldCreationGameRulesScreen
- 源码定位:L11
- 修饰符:public
参数:
- gameRules: GameRules
- exitCallback: Consumer<Optional
>
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected void initContent() @ L15
- 方法名:initContent
- 源码定位:L15
- 返回类型:void
- 修饰符:protected
参数:
- 无
说明:
TODO
protected void onDone() @ L20
- 方法名:onDone
- 源码定位:L20
- 返回类型:void
- 修饰符:protected
参数:
- 无
说明:
TODO
public void onClose() @ L25
- 方法名:onClose
- 源码定位:L25
- 返回类型:void
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class WorldCreationGameRulesScreen extends AbstractGameRulesScreen {
public WorldCreationGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> exitCallback) {
super(gameRules, exitCallback);
}
@Override
protected void initContent() {
this.ruleList = this.layout.addToContents(new AbstractGameRulesScreen.RuleList(this.gameRules));
}
@Override
protected void onDone() {
this.closeAndApplyChanges();
}
@Override
public void onClose() {
this.closeAndDiscardChanges();
}
}引用的其他类
-
- 引用位置:
方法调用/构造调用/继承 - 关联成员:
AbstractGameRulesScreen.RuleList(), RuleList()
- 引用位置:
-
- 引用位置:
参数
- 引用位置: