Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SimplePlayerContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/SimpleContainer.h"
7
8// auto generated forward declare list
9// clang-format off
10class ItemStack;
11class Player;
12// clang-format on
13
14class SimplePlayerContainer : public ::SimpleContainer {
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 SimplePlayerContainer& operator=(SimplePlayerContainer const&);
24 SimplePlayerContainer(SimplePlayerContainer const&);
25 SimplePlayerContainer();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~SimplePlayerContainer() /*override*/ = default;
31
32 virtual ::ItemStack const& getItem(int slot) const /*override*/;
33
34 virtual void setItem(int slot, ::ItemStack const& item) /*override*/;
35 // NOLINTEND
36
37public:
38 // virtual function thunks
39 // NOLINTBEGIN
40 MCNAPI ::ItemStack const& $getItem(int slot) const;
41
42 MCNAPI void $setItem(int slot, ::ItemStack const& item);
43
44
45 // NOLINTEND
46
47public:
48 // vftables
49 // NOLINTBEGIN
50 MCNAPI static void** $vftable();
51 // NOLINTEND
52};
Definition ItemStack.h:26
Definition Player.h:131
Definition SimpleContainer.h:14
static MCAPI void ** $vftable()
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void $setItem(int slot, ::ItemStack const &item)