LeviLamina
Loading...
Searching...
No Matches
WardenSpawnTrackerComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class BlockSource;
13class CompoundTag;
14class DataLoadHelper;
15// clang-format on
16
17class WardenSpawnTrackerComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mThreatLevel;
22 ::ll::TypedStorage<4, 4, int> mThreatLevelIncreaseCooldown;
23 ::ll::TypedStorage<4, 4, int> mThreatLevelDecreaseTimer;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI WardenSpawnTrackerComponent();
30
31 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
32
33 MCAPI bool canIncreaseThreatLevel() const;
34
35 MCFOLD void copyDataFrom(::WardenSpawnTrackerComponent const& copyFrom);
36
37 MCAPI void readAdditionalSaveData(::Actor&, ::CompoundTag const& tag, ::DataLoadHelper&);
38
39 MCAPI void tick();
40
41 MCAPI int tryIncreaseThreatLevel();
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static ::std::optional<::SharedTypes::Legacy::LevelSoundEvent> getSoundEventForThreatLevel(int threatLevel);
48
49 MCAPI static bool hasNearbyWarden(::BlockSource& region, ::BlockPos const& pos);
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCFOLD void* $ctor();
56 // NOLINTEND
57};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20