YATS/Forge Documentation
|
Public Member Functions | |
void | sendContainerAndContentsToPlayer (Container container, List list) |
void | sendSlotContents (Container container, int i, ItemStack itemstack) |
void | sendProgressBarUpdate (Container container, int i, int j) |
void net.minecraft.inventory.ICrafting.sendContainerAndContentsToPlayer | ( | Container | container, |
List | list | ||
) |
void net.minecraft.inventory.ICrafting.sendProgressBarUpdate | ( | Container | container, |
int | i, | ||
int | j | ||
) |
Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, and enchanting level. Normally the first int identifies which variable to update, and the second contains the new value. Both are truncated to shorts in non-local SMP.
Implemented in net.minecraft.entity.player.EntityPlayerMP, net.minecraft.client.gui.GuiRepair, and net.minecraft.client.gui.inventory.CreativeCrafting.
void net.minecraft.inventory.ICrafting.sendSlotContents | ( | Container | container, |
int | i, | ||
ItemStack | itemstack | ||
) |
Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot. Args: Container, slot number, slot contents
Implemented in net.minecraft.entity.player.EntityPlayerMP, net.minecraft.client.gui.GuiRepair, and net.minecraft.client.gui.inventory.CreativeCrafting.