Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
UI
DropSpenserWindow.h
Go to the documentation of this file.
1
2
// DropSpenserWindow.h
3
4
// Representing the UI window for the dropper / dispenser block
5
6
7
8
9
10
#pragma once
11
12
#include "
Window.h
"
13
#include "../BlockEntities/DropSpenserEntity.h"
14
15
16
17
18
19
class
cDropSpenserWindow
:
20
public
cWindow
21
{
22
using
super
=
cWindow
;
23
24
public
:
25
cDropSpenserWindow
(
cDropSpenserEntity
* a_DropSpenser);
26
27
virtual
void
DistributeStack
(
cItem
& a_ItemStack,
int
a_Slot,
cPlayer
& a_Player,
cSlotArea
* a_ClickedArea,
bool
a_ShouldApply)
override
;
28
};
29
30
31
32
Window.h
cPlayer
Definition:
Player.h:27
cDropSpenserEntity
Definition:
DropSpenserEntity.h:26
cDropSpenserWindow::cDropSpenserWindow
cDropSpenserWindow(cDropSpenserEntity *a_DropSpenser)
Definition:
DropSpenserWindow.cpp:14
cWindow::cWindow
cWindow(WindowType a_WindowType, const AString &a_WindowTitle)
Definition:
Window.cpp:30
cWindow
Represents a UI window.
Definition:
Window.h:53
cSlotArea
Definition:
SlotArea.h:33
cItem
Definition:
Item.h:36
cDropSpenserWindow
Definition:
DropSpenserWindow.h:19
cDropSpenserWindow::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:
DropSpenserWindow.cpp:26
Generated on Mon Feb 24 2020 09:04:17 for Cuberite by
1.8.11