NautilusInventoryScreen .java

net.minecraft.client.gui.screens.inventory.NautilusInventoryScreen (class, 46 lines): members: NAUTILUS_INVENTORY_LOCATION, getBackgroundTextureLocation.

net.minecraft.client.gui.screens.inventoryclass46 linesclientextends AbstractMountInventoryScreen<NautilusInventoryMenu>1.5 KB

API Surface (4)

Identifier getBackgroundTextureLocation()
Identifier getSlotSpriteLocation()
boolean shouldRenderSaddleSlot()
boolean shouldRenderArmorSlot()

Fields & Constants (2)

SLOT_SPRITE
NAUTILUS_INVENTORY_LOCATION

String literals (2)

"container/slot"
"textures/gui/container/nautilus.png"

Full Source

NautilusInventoryScreen.java46 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.screens.inventory;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.resources.Identifier;
6
import net.minecraft.world.entity.EquipmentSlot;
7
import net.minecraft.world.entity.animal.nautilus.AbstractNautilus;
8
import net.minecraft.world.entity.player.Inventory;
9
import net.minecraft.world.inventory.NautilusInventoryMenu;
10
import org.jspecify.annotations.Nullable;
11
12
@Environment(EnvType.CLIENT)
13
public class NautilusInventoryScreen extends AbstractMountInventoryScreen<NautilusInventoryMenu> {
14
	private static final Identifier SLOT_SPRITE = Identifier.withDefaultNamespace("container/slot");
15
	private static final Identifier NAUTILUS_INVENTORY_LOCATION = Identifier.withDefaultNamespace("textures/gui/container/nautilus.png");
16
17
	public NautilusInventoryScreen(final NautilusInventoryMenu menu, final Inventory inventory, final AbstractNautilus nautilus, final int inventoryColumns) {
18
		super(menu, inventory, nautilus.getDisplayName(), inventoryColumns, nautilus);
19
	}
20
21
	@Override
22
	protected Identifier getBackgroundTextureLocation() {
23
		return NAUTILUS_INVENTORY_LOCATION;
24
	}
25
26
	@Override
27
	protected Identifier getSlotSpriteLocation() {
28
		return SLOT_SPRITE;
29
	}
30
31
	@Override
32
	protected @Nullable Identifier getChestSlotsSpriteLocation() {
33
		return null;
34
	}
35
36
	@Override
37
	protected boolean shouldRenderSaddleSlot() {
38
		return this.mount.canUseSlot(EquipmentSlot.SADDLE);
39
	}
40
41
	@Override
42
	protected boolean shouldRenderArmorSlot() {
43
		return this.mount.canUseSlot(EquipmentSlot.BODY);
44
	}
45
}
46

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