SkinCustomizationScreen.java
net.minecraft.client.gui.screens.options.SkinCustomizationScreen
信息
- 全限定名:net.minecraft.client.gui.screens.options.SkinCustomizationScreen
- 类型:public class
- 包:net.minecraft.client.gui.screens.options
- 源码路径:src/main/java/net/minecraft/client/gui/screens/options/SkinCustomizationScreen.java
- 起始行号:L15
- 继承:OptionsSubScreen
- 职责:
TODO
字段/常量
TITLE- 类型:
Component - 修饰符:
private static final - 源码定位:
L16 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
public SkinCustomizationScreen(Screen lastScreen, Options options) @ L18
- 构造器名:SkinCustomizationScreen
- 源码定位:L18
- 修饰符:public
参数:
- lastScreen: Screen
- options: Options
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected void addOptions() @ L22
- 方法名:addOptions
- 源码定位:L22
- 返回类型:void
- 修饰符:protected
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class SkinCustomizationScreen extends OptionsSubScreen {
private static final Component TITLE = Component.translatable("options.skinCustomisation.title");
public SkinCustomizationScreen(Screen lastScreen, Options options) {
super(lastScreen, options, TITLE);
}
@Override
protected void addOptions() {
List<AbstractWidget> widgets = new ArrayList<>();
for (PlayerModelPart part : PlayerModelPart.values()) {
widgets.add(
CycleButton.onOffBuilder(this.options.isModelPartEnabled(part))
.create(part.getName(), (button, value) -> this.options.setModelPart(part, value))
);
}
widgets.add(this.options.mainHand().createButton(this.options));
this.list.addSmall(widgets);
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
CycleButton.onOffBuilder()
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
字段/方法调用 - 关联成员:
Component.translatable()
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
PlayerModelPart.values()
- 引用位置: