Cuberite
A lightweight, fast and extensible game server for Minecraft
BeaconWindow.h
Go to the documentation of this file.
1 
2 // BeaconWindow.h
3 
4 // Representing the UI window for the beacon block
5 
6 
7 
8 
9 
10 #pragma once
11 
12 #include "Window.h"
13 #include "../Entities/Player.h"
14 
15 
16 
17 
18 
20  public cWindow
21 {
22  using Super = cWindow;
23 
24 public:
25  cBeaconWindow(cBeaconEntity * a_Beacon);
26 
27  cBeaconEntity * GetBeaconEntity(void) const { return m_Beacon; }
28 
29  virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override;
30 
31  // cWindow Overrides:
32  virtual void OpenedByPlayer(cPlayer & a_Player) override;
33 
34 protected:
36 };
37 
38 
39 
40 
Definition: Player.h:29
Definition: Item.h:37
virtual void OpenedByPlayer(cPlayer &a_Player) override
cBeaconEntity * GetBeaconEntity(void) const
Definition: BeaconWindow.h:27
cBeaconEntity * m_Beacon
Definition: BeaconWindow.h:35
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...
cBeaconWindow(cBeaconEntity *a_Beacon)
Represents a UI window.
Definition: Window.h:54
cWindow(WindowType a_WindowType, const AString &a_WindowTitle)
Definition: Window.cpp:30