MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / putStack

Method putStack

src/main/java/gregapi/gui/Slot_Render.java:39–45  ·  view source on GitHub ↗

NEI has a nice and "useful" Delete-All Function, which would delete the Content of this Slot. This is here to prevent that.

(ItemStack aStack)

Source from the content-addressed store, hash-verified

37 * NEI has a nice and "useful" Delete-All Function, which would delete the Content of this Slot. This is here to prevent that.
38 */
39 @Override
40 public void putStack(ItemStack aStack) {
41 if (inventory instanceof TileEntity && ((TileEntity)inventory).getWorldObj().isRemote) {
42 inventory.setInventorySlotContents(getSlotIndex(), aStack);
43 }
44 onSlotChanged();
45 }
46}

Callers

nothing calls this directly

Calls 3

getSlotIndexMethod · 0.80
onSlotChangedMethod · 0.80

Tested by

no test coverage detected