3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/events/ActorEventListener.h"
7#include "mc/world/events/EventListenerDispatcher.h"
8#include "mc/world/events/EventResult.h"
9#include "mc/world/events/IRealmEventLogger.h"
10#include "mc/world/events/PlayerEventListener.h"
11#include "mc/world/level/storage/RealmEventId.h"
12#include "mc/world/level/storage/RealmsStoriesData.h"
29namespace Json {
class Value; }
37 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::Vec3>> mLastPosChecked;
38 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RealmsStoriesData>> mRealmsStoriesData;
39 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IRealmEventLogger>> mRealmEventLogger;
44 RealmsStoriesGameplayEventListener();
55 virtual ::EventResult onPlayerMove(
::Player& player) ;
62 virtual ::EventResult onPlayerPoweredBeacon(
::Player const& player,
int level) ;
64 virtual ::EventResult onPlayerCraftedItem(
69 bool craftedAutomatically,
75 ::std::vector<short>
const& ingredientItemIDs
87 ::std::unique_ptr<::IRealmEventLogger> realmEventLogger
119 MCNAPI
void*
$ctor(
::LevelStorage& levelStorage, ::std::unique_ptr<::IRealmEventLogger> realmEventLogger);
144 bool hadSearchString,
145 bool craftedAutomatically,
150 bool recipeBookShown,
151 ::std::vector<short>
const& ingredientItemIDs
Definition EventListenerDispatcher.h:6
Definition IRealmEventLogger.h:5
Definition ItemEnchants.h:15
Definition ItemInstance.h:15
Definition ItemStack.h:35
Definition LevelStorage.h:26
Definition RealmsStoriesData.h:13
MCAPI::EventResult $onPlayerEnchantedItem(::Player &player, ::ItemStack const &item, ::ItemEnchants const &enchants)
MCAPI::EventResult $onEvent(::ActorKilledEvent const &actorKilledEvent)
MCAPI void _publishLocationWorldEventIfFirstTime(::RealmEventId id, ::Player const &player)
MCAPI::EventResult $onEvent(::PlayerUseNameTagEvent const &playerUseNameTagEvent)
MCAPI void _handleDragonKilledEvent(::Actor const &killedActor)
static MCAPI void ** $vftableForEventListenerDispatcherActorEventListener()
MCAPI::EventResult $onPlayerPortalUsed(::Player &player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCAPI void _handlePillagerKilledEvent(::Actor const &killedActor, ::ActorKilledEvent const &actorKilledEvent)
MCAPI::EventResult $onPlayerCraftedItem(::Player &player, ::ItemInstance const &craftedItem, bool recipeBook, bool hadSearchString, bool craftedAutomatically, int startingTabId, int endingTabId, int numTabsChanged, bool filterOn, bool recipeBookShown, ::std::vector< short > const &ingredientItemIDs)
static MCAPI ::std::set<::std::string > _getXuidsInKillProximity(::Actor const &killedActor, float xz, float y)
MCAPI::EventResult $onPlayerPoweredBeacon(::Player const &player, int level)
MCAPI::EventResult $onPlayerMove(::Player &player)
static MCAPI ::std::string _playerXuidsToString(::std::set<::std::string > const &xuids)
MCAPI void _checkForStructureRealmEvents(::Player const &player)
MCAPI void * $ctor(::LevelStorage &levelStorage, ::std::unique_ptr<::IRealmEventLogger > realmEventLogger)
MCAPI::EventResult $onPlayerPortalBuilt(::Player &player, ::DimensionType dimensionBuiltIn)
MCAPI RealmsStoriesGameplayEventListener(::LevelStorage &levelStorage, ::std::unique_ptr<::IRealmEventLogger > realmEventLogger)
MCAPI void _checkForBiomeRealmEvents(::Player const &player)
MCAPI void _publishEventForRealmsService(::RealmEventId id, ::std::string const &xuid, ::Json::Value const &metadata) const
MCAPI void _handleWitherKilledEvent(::Actor const &killedActor)
MCAPI::EventResult $onEvent(::ActorAcquiredItemEvent const &actorAcquiredItemEvent)
static MCAPI void ** $vftableForEventListenerDispatcherPlayerEventListener()
static MCAPI ::Player const * _getActorFullyAuthenticatedPlayer(::Actor const *actor)
Definition ActorAcquiredItemEvent.h:15
Definition ActorKilledEvent.h:14
Definition DimensionType.h:5