Cuberite
A lightweight, fast and extensible game server for Minecraft
src
UI
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
19
class
cBeaconWindow
:
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
:
35
cBeaconEntity
*
m_Beacon
;
36
};
37
38
39
40
Window.h
cBeaconEntity
Definition:
BeaconEntity.h:21
cPlayer
Definition:
Player.h:29
cItem
Definition:
Item.h:37
cBeaconWindow
Definition:
BeaconWindow.h:21
cBeaconWindow::OpenedByPlayer
virtual void OpenedByPlayer(cPlayer &a_Player) override
Definition:
BeaconWindow.cpp:65
cBeaconWindow::GetBeaconEntity
cBeaconEntity * GetBeaconEntity(void) const
Definition:
BeaconWindow.h:27
cBeaconWindow::m_Beacon
cBeaconEntity * m_Beacon
Definition:
BeaconWindow.h:35
cBeaconWindow::DistributeStack
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...
Definition:
BeaconWindow.cpp:29
cBeaconWindow::cBeaconWindow
cBeaconWindow(cBeaconEntity *a_Beacon)
Definition:
BeaconWindow.cpp:16
cSlotArea
Definition:
SlotArea.h:34
cWindow
Represents a UI window.
Definition:
Window.h:54
cWindow::cWindow
cWindow(WindowType a_WindowType, const AString &a_WindowTitle)
Definition:
Window.cpp:30
Generated on Fri Oct 25 2024 05:01:18 for Cuberite by
1.9.1