SmokerScreen.java

net.minecraft.client.gui.screens.inventory.SmokerScreen

信息

  • 全限定名:net.minecraft.client.gui.screens.inventory.SmokerScreen
  • 类型:public class
  • 包:net.minecraft.client.gui.screens.inventory
  • 源码路径:src/main/java/net/minecraft/client/gui/screens/inventory/SmokerScreen.java
  • 起始行号:L16
  • 继承:AbstractFurnaceScreen
  • 职责:

    TODO

字段/常量

  • LIT_PROGRESS_SPRITE

    • 类型: Identifier
    • 修饰符: private static final
    • 源码定位: L17
    • 说明:

      TODO

  • BURN_PROGRESS_SPRITE

    • 类型: Identifier
    • 修饰符: private static final
    • 源码定位: L18
    • 说明:

      TODO

  • TEXTURE

    • 类型: Identifier
    • 修饰符: private static final
    • 源码定位: L19
    • 说明:

      TODO

  • FILTER_NAME

    • 类型: Component
    • 修饰符: private static final
    • 源码定位: L20
    • 说明:

      TODO

  • TABS

    • 类型: List<RecipeBookComponent.TabInfo>
    • 修饰符: private static final
    • 源码定位: L21
    • 说明:

      TODO

内部类/嵌套类型

构造器

public SmokerScreen(SmokerMenu menu, Inventory inventory, Component title) @ L25

  • 构造器名:SmokerScreen
  • 源码定位:L25
  • 修饰符:public

参数:

  • menu: SmokerMenu
  • inventory: Inventory
  • title: Component

说明:

TODO

方法

下面的方法块按源码顺序生成。

代码

@OnlyIn(Dist.CLIENT)
public class SmokerScreen extends AbstractFurnaceScreen<SmokerMenu> {
    private static final Identifier LIT_PROGRESS_SPRITE = Identifier.withDefaultNamespace("container/smoker/lit_progress");
    private static final Identifier BURN_PROGRESS_SPRITE = Identifier.withDefaultNamespace("container/smoker/burn_progress");
    private static final Identifier TEXTURE = Identifier.withDefaultNamespace("textures/gui/container/smoker.png");
    private static final Component FILTER_NAME = Component.translatable("gui.recipebook.toggleRecipes.smokable");
    private static final List<RecipeBookComponent.TabInfo> TABS = List.of(
        new RecipeBookComponent.TabInfo(SearchRecipeBookCategory.SMOKER), new RecipeBookComponent.TabInfo(Items.PORKCHOP, RecipeBookCategories.SMOKER_FOOD)
    );
 
    public SmokerScreen(SmokerMenu menu, Inventory inventory, Component title) {
        super(menu, inventory, title, FILTER_NAME, TEXTURE, LIT_PROGRESS_SPRITE, BURN_PROGRESS_SPRITE, TABS);
    }
}

引用的其他类

  • AbstractFurnaceScreen

    • 引用位置: 继承
  • RecipeBookComponent

    • 引用位置: 字段/方法调用/构造调用
    • 关联成员: RecipeBookComponent.TabInfo(), TabInfo()
  • Component

    • 引用位置: 参数/字段/方法调用
    • 关联成员: Component.translatable()
  • Identifier

    • 引用位置: 字段/方法调用
    • 关联成员: Identifier.withDefaultNamespace()
  • Inventory

    • 引用位置: 参数
  • SmokerMenu

    • 引用位置: 参数