LeviLamina
Loading...
Searching...
No Matches
AchievementEventing.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/events/MinecraftEventing.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class ItemDescriptor;
13class ItemInstance;
14class Mob;
16class Player;
17struct DimensionType;
18// clang-format on
19
20namespace Social::Events {
21
22class AchievementEventing {
23public:
24 // member variables
25 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 AchievementEventing& operator=(AchievementEventing const&);
32 AchievementEventing(AchievementEventing const&);
33
34public:
35 // member functions
36 // NOLINTBEGIN
38
39 MCNAPI void AwardAchievement(::Player& player, ::MinecraftEventing::AchievementIds achievementId);
40
41 MCNAPI void
42 BlockBroken(::Player const& player, ::Block const& destroyedBlock, int method, int variantData, ushort auxType);
43
44#ifdef LL_PLAT_C
45 MCNAPI void BlockPlaced(::Player const& player, ::Block const& placedBlock, bool underWater, ushort auxType);
46
47 MCNAPI void BossKilled(::Player const& player, int partySize, int64 bossUniqueId, int bossType);
48
49 MCNAPI void CaravanChanged(::Mob& mob, int caravanSize);
50
51 MCNAPI void CauldronUsed(::Player const& player, short contentsType, uint contentsColor, short fillLevel);
52
53 MCNAPI void EndOfDay(::Player const& player);
54
55 MCNAPI void ItemAcquired(
56 ::Player const& player,
57 ::ItemDescriptor const& item,
58 int auxType,
59 uint amountAcquired,
60 int acquisitionMethod
61 );
62
63 MCNAPI void ItemCrafted(
64 ::Player const& player,
65 int craftingSessionId,
66 bool craftingTable,
67 ::ItemInstance const& item,
68 bool recipeBook,
69 bool hadSearchString,
70 bool craftedAutomatically,
71 int startingTabId,
72 int endingTabId,
73 int numTabsChanged,
74 bool filterOn,
75 bool recipeBookShown
76 );
77
78 MCNAPI void ItemNamed(::Player const& player, ::ItemDescriptor const& item);
79
80 MCNAPI void ItemSmelted(::Player const& player, ::ItemDescriptor const& item, ::ItemDescriptor const& lastFuelItem);
81
82 MCNAPI void ItemSmithied(::Player& player, ::ItemDescriptor const& templateItem);
83#endif
84
85 MCNAPI void ItemUsed(::Player const& player, ::ItemDescriptor const& item, uint useMethod);
86
87 MCNAPI void MobEffectChanged(::Player const& player, ::MobEffectInstance const& effectInstance, int change);
88
89#ifdef LL_PLAT_C
90 MCNAPI void MobInteracted(
91 ::Player const& player,
92 int legacyInteractedEntityType,
93 int interactionType,
94 int interactedEntityVariant,
95 uchar interactedEntityColor
96 );
97
98 MCNAPI void MobKilled(
99 ::Player const& player,
100 ::Actor* entKiller,
101 ::Mob& mobKilled,
102 uint method,
103 ::std::string const& traderName,
104 int traderTier
105 );
106
107 MCNAPI void PiglinBarter(::Player const& player, ::std::string const& itemUsed, bool wasTargetingBarteringPlayer);
108#endif
109
110 MCNAPI void PlayerBounced(::Player const& player, ::Block const& block, int bounceHeight, int auxType);
111
112#ifdef LL_PLAT_C
113 MCNAPI void PlayerSaved(::Player& player);
114#endif
115
116 MCNAPI void PlayerTeleported(::Player& player, float metersTravelled, int cause, int sourceType);
117
118 MCNAPI void
119 PlayerTravelled(::Player const& player, float metersTravelledSinceLastEvent, int travelMethodType, int newBiome);
120
121#ifdef LL_PLAT_C
122 MCNAPI void PortalUsed(::Player& player, ::DimensionType const& dimToId, ::DimensionType const& dimFromId);
123
124 MCNAPI void PotionBrewed(::Player const& player, ::ItemDescriptor const& item, uint itemCount);
125
126 MCNAPI void RaidUpdated(::Player const& player, int currentwave, int totalWaves, bool success);
127
128 MCNAPI void TargetBlockHit(::Player& player, int redstoneLevel);
129
130 MCNAPI void TradeCompleted(
131 ::Player const& player,
132 ::Actor* trader,
133 ::ItemDescriptor const& itemA,
134 ::ItemDescriptor const& itemB,
135 ::ItemInstance const& tradedFor,
136 int traderEmeraldCount
137 );
138
139 MCNAPI void waxedOrWaxedOf(::Player& player, int blockID);
140#endif
141 // NOLINTEND
142
143public:
144 // constructor thunks
145 // NOLINTBEGIN
146 MCNAPI void* $ctor();
147 // NOLINTEND
148};
149
150} // namespace Social::Events
Definition Actor.h:125
Definition Block.h:69
Definition ItemDescriptor.h:25
Definition ItemInstance.h:15
Definition MobEffectInstance.h:20
Definition Mob.h:57
Definition Player.h:137
MCAPI void ItemUsed(::Player const &player, ::ItemDescriptor const &item, uint useMethod)
MCAPI void BlockBroken(::Player const &player, ::Block const &destroyedBlock, int method, int variantData, ushort auxType)
MCAPI void AwardAchievement(::Player &player, ::MinecraftEventing::AchievementIds achievementId)
MCAPI void PlayerBounced(::Player const &player, ::Block const &block, int bounceHeight, int auxType)
MCAPI void PlayerTeleported(::Player &player, float metersTravelled, int cause, int sourceType)
MCAPI void MobEffectChanged(::Player const &player, ::MobEffectInstance const &effectInstance, int change)
MCAPI void PlayerTravelled(::Player const &player, float metersTravelledSinceLastEvent, int travelMethodType, int newBiome)
Definition DimensionType.h:5
Definition Alias.h:14