Cuberite
A lightweight, fast and extensible game server for Minecraft
InventoryWindow.h
Go to the documentation of this file.
1 
2 // InventoryWindow.h
3 
4 // Representing the UI window for the player inventory
5 
6 
7 
8 
9 
10 #pragma once
11 
12 #include "Window.h"
13 
14 
15 
16 
17 
19  public cWindow
20 {
21  typedef cWindow super;
22 
23 public:
24  cInventoryWindow(cPlayer & a_Player);
25 
26  virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override;
27 
28 protected:
30 };
31 
32 
33 
34 
cInventoryWindow(cPlayer &a_Player)
Definition: Player.h:27
virtual void DistributeStack(cItem &a_ItemStack, int a_Slot, cPlayer &a_Player, cSlotArea *a_ClickedArea, bool a_ShouldApply) override
Called on shift-clicking to distribute the stack into other areas; Modifies a_ItemStack as it is dist...
Represents a UI window.
Definition: Window.h:53
Definition: Item.h:36