LeviLamina
Loading...
Searching...
No Matches
BribeableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
10class CompoundTag;
11class DataLoadHelper;
13class ItemStack;
14class Player;
15// clang-format on
16
17class BribeableComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::BribeableDefinition const*> mStaticData;
22 ::ll::TypedStorage<4, 4, int> mBribeTimer;
23 ::ll::TypedStorage<4, 4, int> mBribeCooldown;
24 ::ll::TypedStorage<4, 4, int> mBribeCooldownTime;
25 // NOLINTEND
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI BribeableComponent();
31
32 MCAPI void _bribe(::Actor& owner, ::Player& player);
33
34 MCAPI bool _canBribe(::ItemStack const& item);
35
36 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
37
38 MCAPI bool clientBribeCheck(::Actor& owner);
39
40 MCFOLD int& getBribeCooldown();
41
42 MCFOLD int& getBribeTimer();
43
44 MCAPI ::InteractionResult getInteraction(::Actor& owner, ::Player& player, ::ActorInteraction& interaction);
45
46 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
47
48 MCAPI void resetBribe(::Actor& owner);
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCFOLD void* $ctor();
55 // NOLINTEND
56};
Definition ActorInteraction.h:8
Definition Actor.h:125
Definition BribeableDefinition.h:16
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition InteractionResult.h:5
Definition ItemStack.h:35
Definition Player.h:137