LeviLamina
Loading...
Searching...
No Matches
ITickingArea.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/world/level/ticking/TickingAreaLoadMode.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockSource;
14class LevelStorage;
15class Random;
16class Vec3;
17struct ActorUniqueID;
18struct Bounds;
19struct Tick;
21namespace mce { class UUID; }
22// clang-format on
23
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~ITickingArea() = default;
29
30 virtual ::mce::UUID const& getId() const = 0;
31
32 virtual ::std::string const& getName() const = 0;
33
34 virtual ::ActorUniqueID const& getEntityId() const = 0;
35
36 virtual bool isEntityOwned() const = 0;
37
38 virtual ::WeakRef<::BlockSource> const getBlockSource() const = 0;
39
40 virtual ::WeakRef<::BlockSource> getBlockSource() = 0;
41
42 virtual ::Bounds const getBoundsCopy() const = 0;
43
44 virtual bool isAlwaysActive() const = 0;
45
46 virtual float getMaxDistToPlayers() const = 0;
47
48 virtual ::ITickingAreaView const& getView() const = 0;
49
50 virtual ::ITickingAreaView& getView() = 0;
51
52 virtual ::TickingAreaDescription getDescription() const = 0;
53
54 virtual ::TickingAreaLoadMode getLoadMode() const = 0;
55
56 virtual void setLoadMode(::TickingAreaLoadMode loadMode, ::LevelStorage& levelStorage) = 0;
57
58 virtual bool isPreloadDone() const = 0;
59
60 virtual void tick(::Tick const& currentTick, bool randomize) = 0;
61
62 virtual void tickSeasons(::Random& random) = 0;
63
64 virtual void updatePosition(::Vec3 const& pos) = 0;
65
66 virtual void updateAndCenter(::LevelStorage& levelStorage, ::Tick currentLevelTick) = 0;
67
68 virtual ::Actor* findOwner(uchar& pendingChunks) = 0;
69
70 virtual bool entityHasBeenFound() const = 0;
71
72 virtual void setEntityFound() = 0;
73
74 virtual bool isRemoved() = 0;
75
76 virtual void remove(::LevelStorage& levelStorage) = 0;
77
78 virtual void
79 onComponentChanged(uint radius, float maxDistToPlayers, bool alwaysActive, ::LevelStorage& levelStorage) = 0;
80
81 virtual bool isScoped() const = 0;
82
83 virtual ::std::optional<uint64> const& getScope() const = 0;
84
85 virtual bool isDoneLoadingScoped() const = 0;
86
87 virtual bool isStandalone() const = 0;
88 // NOLINTEND
89};
Definition Actor.h:113
Definition BlockSource.h:71
Definition ITickingAreaView.h:17
Definition ITickingArea.h:24
Definition LevelStorage.h:25
Definition Random.h:10
Definition Vec3.h:10
Definition UUID.h:8
Definition ActorUniqueID.h:5
Definition Bounds.h:8
Definition Tick.h:5
Definition TickingAreaDescription.h:9