21class RaidBossComponent {
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::Village>> mVillage;
26 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwnerID;
27 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mName;
28 ::ll::TypedStorage<8, 32, ::std::string> mProgress;
29 ::ll::TypedStorage<4, 4, int> mPlayersRegistered;
30 ::ll::TypedStorage<1, 1, bool> mWaveStarted;
31 ::ll::TypedStorage<1, 1, bool> mRaidInProgress;
32 ::ll::TypedStorage<1, 1, bool> mHealthBarVisible;
33 ::ll::TypedStorage<4, 4, float> mHealthPercent;
34 ::ll::TypedStorage<4, 24, ::AABB> mBossBarVisibleBounds;
35 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastPlayerUpdate;
40 RaidBossComponent& operator=(RaidBossComponent
const&);
45 MCAPI RaidBossComponent();
47 MCAPI RaidBossComponent(::RaidBossComponent
const&);
49 MCAPI
void _broadcastBossEvent(::BossEventUpdateType type,
::Actor& owner);
51 MCAPI
void _handleRegisterPlayers(
::Actor& owner);
53 MCAPI
void _sendBossEvent(::BossEventUpdateType type,
::Player& player);
55 MCFOLD ::BossBarColor getColor();
57 MCAPI
float getHealthPercent();
59 MCAPI ::Bedrock::Safety::RedactableString getName();
61 MCFOLD ::ActorUniqueID getOwnerUniqueID();
63 MCFOLD
bool getRaidInProgress();
65 MCFOLD ::std::shared_ptr<::Village> getVillage();
67 MCFOLD
bool getWaveStarted();
71 MCAPI
bool isWithinRange(
::Mob const& player);
73 MCAPI
void registerPlayer(
::Player* player);
75 MCAPI
void removeBossBar(
::Actor& owner);
77 MCAPI
void resendRaidBossEventData(
::Player& player);
79 MCAPI
void sendRegistryMessages(
::Actor& owner);
81 MCFOLD
void setVillage(::std::weak_ptr<::Village> village);
83 MCFOLD
void setWaveStarted(
bool val);
89 MCAPI
void unRegisterPlayer(
::Player* player);
91 MCAPI
void updateBossBarStats(
::Actor& owner,
::Raid const& raid);
93 MCAPI
void updateHealthBarVisible(
bool visible,
::Actor& owner);
95 MCAPI ~RaidBossComponent();
103 MCAPI
void* $ctor(::RaidBossComponent
const&);