Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
Typedefs
Enumerations
a
e
f
h
i
l
m
n
o
p
s
t
w
Enumerator
a
b
c
e
f
g
h
i
l
m
o
p
r
s
t
v
w
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
c
d
e
m
n
p
s
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Related Functions
:
b
c
d
e
f
h
i
l
m
n
p
r
s
t
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Variables
b
c
d
g
i
m
n
o
p
q
r
s
t
Typedefs
a
b
c
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
b
c
d
e
i
m
s
Enumerator
a
b
d
e
g
i
m
n
p
r
s
t
w
x
y
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
r
s
t
u
v
w
x
src
UI
EnderChestWindow.h
Go to the documentation of this file.
1
2
// EnderChestWindow.h
3
4
// Representing the UI window for the enderchest block
5
6
7
8
9
10
#pragma once
11
12
#include "
Window.h
"
13
#include "../BlockEntities/EnderChestEntity.h"
14
15
16
17
18
19
class
cEnderChestWindow
:
20
public
cWindow
21
{
22
using
Super
=
cWindow
;
23
24
public
:
25
26
cEnderChestWindow
(
cEnderChestEntity
* a_EnderChest);
27
28
virtual
~cEnderChestWindow
()
override
;
29
30
virtual
void
DistributeStack
(
cItem
& a_ItemStack,
int
a_Slot,
cPlayer
& a_Player,
cSlotArea
* a_ClickedArea,
bool
a_ShouldApply)
override
;
31
32
protected
:
33
cWorld
*
m_World
;
34
Vector3i
m_BlockPos
;
// Position of the enderchest, for the window-close packet
35
};
36
37
38
39
Window.h
cEnderChestEntity
Definition:
EnderChestEntity.h:15
cPlayer
Definition:
Player.h:29
cItem
Definition:
Item.h:37
cEnderChestWindow
Definition:
EnderChestWindow.h:21
cEnderChestWindow::~cEnderChestWindow
virtual ~cEnderChestWindow() override
Definition:
EnderChestWindow.cpp:40
cEnderChestWindow::m_BlockPos
Vector3i m_BlockPos
Definition:
EnderChestWindow.h:34
cEnderChestWindow::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:
EnderChestWindow.cpp:57
cEnderChestWindow::m_World
cWorld * m_World
Definition:
EnderChestWindow.h:33
cEnderChestWindow::cEnderChestWindow
cEnderChestWindow(cEnderChestEntity *a_EnderChest)
Definition:
EnderChestWindow.cpp:15
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
Vector3< int >
cWorld
Definition:
World.h:53
Generated on Fri Oct 25 2024 05:01:18 for Cuberite by
1.9.1