CreativeCrafting .java

net.minecraft.client.gui.inventory.CreativeCrafting (class): members: sendAllWindowProperties, updateCraftingInventory, sendProgressBarUpdate, mc.

net.minecraft.client.gui.inventoryclass48 linesclient1.5 KB

Implements

API Surface (4)

void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
void sendAllWindowProperties(Container p_175173_1_, IInventory p_175173_2_)

Fields & Constants (1)

mc

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

CreativeCrafting.java48 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.client.gui.inventory;
2
3
import java.util.List;
4
import net.minecraft.client.Minecraft;
5
import net.minecraft.inventory.Container;
6
import net.minecraft.inventory.ICrafting;
7
import net.minecraft.inventory.IInventory;
8
import net.minecraft.item.ItemStack;
9
10
public class CreativeCrafting implements ICrafting
11
{
12
    private final Minecraft mc;
13
14
    public CreativeCrafting(Minecraft mc)
15
    {
16
        this.mc = mc;
17
    }
18
19
    /**
20
     * update the crafting window inventory with the items in the list
21
     */
22
    public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
23
    {
24
    }
25
26
    /**
27
     * Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual
28
     * contents of that slot. Args: Container, slot number, slot contents
29
     */
30
    public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
31
    {
32
        this.mc.playerController.sendSlotPacket(stack, slotInd);
33
    }
34
35
    /**
36
     * Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress,
37
     * and enchanting level. Normally the first int identifies which variable to update, and the second contains the new
38
     * value. Both are truncated to shorts in non-local SMP.
39
     */
40
    public void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
41
    {
42
    }
43
44
    public void sendAllWindowProperties(Container p_175173_1_, IInventory p_175173_2_)
45
    {
46
    }
47
}
48

Deobfuscated MCP 1.8.9 source of CreativeCrafting from Marcelektro/MavenMCP-1.8.9 (net/minecraft/client/gui/inventory/CreativeCrafting.java), stored verbatim.