SmokerScreen .java

net.minecraft.client.gui.screens.inventory.SmokerScreen (class, 29 lines): members: BURN_PROGRESS_SPRITE, LIT_PROGRESS_SPRITE, FILTER_NAME, TABS, TEXTURE.

net.minecraft.client.gui.screens.inventoryclass29 linesclientextends AbstractFurnaceScreen<SmokerMenu>1.5 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (5)

LIT_PROGRESS_SPRITE
BURN_PROGRESS_SPRITE
TEXTURE
FILTER_NAME
TABS

String literals (4)

"container/smoker/lit_progress"
"container/smoker/burn_progress"
"textures/gui/container/smoker.png"
"gui.recipebook.toggleRecipes.smokable"

Full Source

SmokerScreen.java29 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.screens.inventory;
2
3
import java.util.List;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.client.gui.screens.recipebook.RecipeBookComponent;
7
import net.minecraft.client.gui.screens.recipebook.SearchRecipeBookCategory;
8
import net.minecraft.network.chat.Component;
9
import net.minecraft.resources.Identifier;
10
import net.minecraft.world.entity.player.Inventory;
11
import net.minecraft.world.inventory.SmokerMenu;
12
import net.minecraft.world.item.Items;
13
import net.minecraft.world.item.crafting.RecipeBookCategories;
14
15
@Environment(EnvType.CLIENT)
16
public class SmokerScreen extends AbstractFurnaceScreen<SmokerMenu> {
17
	private static final Identifier LIT_PROGRESS_SPRITE = Identifier.withDefaultNamespace("container/smoker/lit_progress");
18
	private static final Identifier BURN_PROGRESS_SPRITE = Identifier.withDefaultNamespace("container/smoker/burn_progress");
19
	private static final Identifier TEXTURE = Identifier.withDefaultNamespace("textures/gui/container/smoker.png");
20
	private static final Component FILTER_NAME = Component.translatable("gui.recipebook.toggleRecipes.smokable");
21
	private static final List<RecipeBookComponent.TabInfo> TABS = List.of(
22
		new RecipeBookComponent.TabInfo(SearchRecipeBookCategory.SMOKER), new RecipeBookComponent.TabInfo(Items.PORKCHOP, RecipeBookCategories.SMOKER_FOOD)
23
	);
24
25
	public SmokerScreen(final SmokerMenu menu, final Inventory inventory, final Component title) {
26
		super(menu, inventory, title, FILTER_NAME, TEXTURE, LIT_PROGRESS_SPRITE, BURN_PROGRESS_SPRITE, TABS);
27
	}
28
}
29

Decompiled Minecraft 26.3 source of SmokerScreen (net/minecraft/client/gui/screens/inventory/SmokerScreen.java) with Mojang official mappings, stored verbatim on the site.