LeviLamina
Loading...
Searching...
No Matches
ContainerScreenContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/StackRefResult.h"
7#include "mc/deps/shared_types/legacy/ContainerType.h"
8#include "mc/legacy/ActorUniqueID.h"
9#include "mc/world/level/BlockPos.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class BlockActor;
16class Player;
17// clang-format on
18
19class ContainerScreenContext {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::Player*> mPlayer;
24 ::ll::TypedStorage<1, 1, ::SharedTypes::Legacy::ContainerType> mScreenContainerType;
25 ::ll::TypedStorage<8, 24, ::std::variant<::std::monostate, ::ActorUniqueID, ::BlockPos>> mOwner;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ContainerScreenContext();
32
33 MCAPI ContainerScreenContext(
34 ::Player& player,
35 ::SharedTypes::Legacy::ContainerType screenContainerType,
36 ::ActorUniqueID const& actorId
37 );
38
39 MCAPI ContainerScreenContext(
40 ::Player& player,
41 ::SharedTypes::Legacy::ContainerType screenContainerType,
42 ::BlockPos const& blockPos
43 );
44
45 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryAccess>> getContainerRegistryAccess() const;
46
47 MCFOLD ::Player& getPlayer() const;
48
49 MCFOLD ::SharedTypes::Legacy::ContainerType getScreenContainerType() const;
50
51#ifdef LL_PLAT_C
52 MCAPI bool operator==(::SharedTypes::Legacy::ContainerType screenContainerType) const;
53#endif
54
55 MCAPI ::Actor* tryGetActor() const;
56
57 MCAPI ::BlockActor* tryGetBlockActor() const;
58
59 MCAPI ::BlockPos const* tryGetBlockActorPos() const;
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor();
66
67 MCAPI void*
68 $ctor(::Player& player, ::SharedTypes::Legacy::ContainerType screenContainerType, ::ActorUniqueID const& actorId);
69
70 MCAPI void*
71 $ctor(::Player& player, ::SharedTypes::Legacy::ContainerType screenContainerType, ::BlockPos const& blockPos);
72 // NOLINTEND
73};
Definition Actor.h:125
Definition BlockActor.h:30
Definition BlockPos.h:21
Definition IContainerRegistryAccess.h:14
Definition Player.h:137
Definition ActorUniqueID.h:10