LeviLamina
Loading...
Searching...
No Matches
SparseContainerClient.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/BidirectionalUnorderedMap.h"
7#include "mc/world/inventory/network/SparseContainer.h"
8#include "mc/world/inventory/network/TypedClientNetId.h"
9#include "mc/world/inventory/network/TypedServerNetId.h"
10
11// auto generated forward declare list
12// clang-format off
13class ItemStack;
14class Player;
17namespace Bedrock::Safety { class RedactableString; }
18// clang-format on
19
20class SparseContainerClient : public ::SparseContainer {
21public:
22 // SparseContainerClient inner types define
23 enum class PushSlotPredictionResult : int {
24 Succeeded = 0,
25 FailedWithFuturePrediction = 1,
26 FailedWithError = 2,
27 };
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~SparseContainerClient() /*override*/ = default;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI void _networkUpdateItem(int slot, ::ItemStack const& newItem);
39
40#ifdef LL_PLAT_C
41 MCNAPI void _pushHistoricPredictionItem(
42 int slot,
43 int amount,
44 ::ItemStackNetId const& itemStackNetId,
46 short durabilityCorrection,
47 ::ItemStack&& item
48 );
49
50 MCNAPI ::ItemStack const&
51 _setCreatedItem(::ItemStackRequestId const& currentRequestId, int slot, ::ItemStack const& item);
52
53 MCNAPI void clearAllPredictions(::ItemStackRequestId const& requestId, bool shouldBeEmpty, ::Player& player);
54
55 MCNAPI ::SparseContainerClient::PushSlotPredictionResult tryPushSlotPrediction(
56 ::ItemStackRequestId const& requestId,
57 int requestedSlot,
58 int backingSlot,
59 int amount,
60 ::ItemStackNetId const& itemStackNetId,
62 ::ItemStack* zeroedOutItem,
63 short durabilityCorrection
64 );
65#endif
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71#ifdef LL_PLAT_C
72 MCNAPI static ::std::string const
73 getPushSlotPredictionResultName(::SparseContainerClient::PushSlotPredictionResult result);
74#endif
75 // NOLINTEND
76
77public:
78 // static variables
79 // NOLINTBEGIN
80 MCNAPI static ::BidirectionalUnorderedMap<::SparseContainerClient::PushSlotPredictionResult, ::std::string> const&
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
88
89 MCNAPI static void** $vftableForContainer();
90 // NOLINTEND
91};
Definition RedactableString.h:10
Definition ItemStack.h:26
Definition Player.h:129
Definition SparseContainerClient.h:20
static MCAPI ::BidirectionalUnorderedMap<::SparseContainerClient::PushSlotPredictionResult, ::std::string > const & pushSlotPredictionResultMap()
static MCAPI void ** $vftableForContainer()
MCAPI void _networkUpdateItem(int slot, ::ItemStack const &newItem)
static MCAPI void ** $vftableForContainerContentChangeListener()
Definition ItemStackNetIdTag.h:5
Definition ItemStackRequestIdTag.h:5