3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/certificates/identity/edu/Role.h"
7#include "mc/client/gui/DirtyFlag.h"
8#include "mc/client/gui/HowToPlayTopicIndex.h"
9#include "mc/client/gui/UIDefType.h"
10#include "mc/client/gui/UIOperation.h"
11#include "mc/client/gui/screens/ControlCollectionFlag.h"
12#include "mc/client/gui/screens/LayoutVariableType.h"
13#include "mc/client/renderer/actor/v2/Destination.h"
14#include "mc/client/renderer/game/ShadowRenderingParameters.h"
15#include "mc/client/renderer/game/TerrainVariation.h"
16#include "mc/client/resources/ContentCatalogQueryData.h"
17#include "mc/client/services/download/DlcCheckResult.h"
18#include "mc/client/services/download/IMarketplacePackDownloader.h"
19#include "mc/client/services/download/InitiatorCategory.h"
20#include "mc/client/services/download/ProcessState.h"
21#include "mc/client/services/requests/payment/ReceiptFulfillment.h"
22#include "mc/client/store/iap/OfferCategory.h"
23#include "mc/client/store/iap/ProductType.h"
24#include "mc/common/SubClientId.h"
25#include "mc/deps/core/debug/log/LogLevel.h"
26#include "mc/deps/core/file/file_system/FileType.h"
27#include "mc/deps/core/resource/PackType.h"
28#include "mc/deps/core/sem_ver/SemVersionBase.h"
29#include "mc/deps/core/threading/Async.h"
30#include "mc/deps/core/utility/NonOwnerPointer.h"
31#include "mc/deps/core_graphics/MipMapSupport.h"
32#include "mc/deps/core_graphics/TextureSetLayerType.h"
33#include "mc/deps/ecs/Optional.h"
34#include "mc/deps/ecs/ViewT.h"
35#include "mc/deps/ecs/strict/EntityModifier.h"
36#include "mc/deps/json/ValueType.h"
37#include "mc/deps/profiler/ThreadFrameType.h"
38#include "mc/deps/shared_types/item/CreativeItemCategory.h"
39#include "mc/deps/shared_types/legacy/FilterSubject.h"
40#include "mc/deps/shared_types/legacy/item/UseAnimation.h"
41#include "mc/events/TextProcessingEventOrigin.h"
42#include "mc/external/cgltf/cgltf_component_type.h"
43#include "mc/external/cgltf/cgltf_result.h"
44#include "mc/external/cgltf/cgltf_type.h"
45#include "mc/external/lib_http_client/http_stl_allocator.h"
46#include "mc/external/libsrtp/srtp_err_status_t.h"
47#include "mc/molang/MolangVersion.h"
48#include "mc/network/packet/AgentActionType.h"
49#include "mc/network/packet/TextPacketType.h"
50#include "mc/options/DiscoveryEnvironment.h"
51#include "mc/options/option_types/OptionID.h"
52#include "mc/platform/Result.h"
53#include "mc/platform/brstd/function_ref.h"
54#include "mc/util/HudElement.h"
55#include "mc/util/json_util/JsonSchemaObjectNode.h"
56#include "mc/util/molang/ExpressionOp.h"
57#include "mc/world/ContainerID.h"
58#include "mc/world/Direction.h"
59#include "mc/world/actor/ActorFilterGroup.h"
60#include "mc/world/actor/ActorType.h"
61#include "mc/world/actor/ActorTypeNamespaceRules.h"
62#include "mc/world/actor/item/MinecartType.h"
63#include "mc/world/containers/ContainerEnumName.h"
64#include "mc/world/filters/FilterGroup.h"
65#include "mc/world/filters/FilterOperator.h"
66#include "mc/world/level/chunk/ChunkState.h"
67#include "mc/world/level/chunk/LevelChunkTag.h"
68#include "mc/world/level/chunk/SubChunk.h"
69#include "mc/world/level/chunk/SubChunkDelayedDeleter.h"
70#include "mc/world/level/chunk/SubChunkStorage.h"
71#include "mc/world/level/levelgen/flat/FlatWorldPresetID.h"
72#include "mc/world/level/storage/loot/functions/SpecificEnchantFunction.h"
73#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
228namespace Core {
class File; }
230namespace Core {
class Path; }
232namespace Json {
class Value; }
234namespace Puv {
class Input; }
235namespace Puv {
class Logger; }
240namespace SharedTypes::v1_21_20::PoolAliases {
struct Direct; }
241namespace SharedTypes::v1_21_20::PoolAliases {
struct Random; }
242namespace SharedTypes::v1_21_30 {
struct TradeGroup; }
243namespace SharedTypes::v1_21_30 {
struct TradeItem; }
246namespace Social::Events {
class Event; }
248namespace cohtml {
class Binder; }
249namespace mce {
class Color; }
250namespace mce {
class UUID; }
284namespace MainGameCore {
class WinMain; }
296MCAPI
void BedrockLogOut(uint
const _priority,
char const* pszFormat, ...);
303MCAPI
void CoherentBind(
317MCAPI ::SharedTypes::CreativeItemCategory CreativeItemCategoryFromString(::std::string
const& str);
320MCAPI
void* DefaultMemAllocFunction(uint64 size, uint memoryType);
322MCAPI
void DefaultMemFreeFunction(
void* pointer, uint memoryType);
324MCAPI
bool DoesMockCallMatch(
::HC_CALL const* mockCall,
::HC_CALL const* originalCall);
327MCAPI ::HashedString
const& EntityCanonicalName(::ActorType entityType);
329MCAPI ::ActorType EntityTypeFromString(::std::string
const& str);
331MCAPI ::std::string EntityTypeIdWithoutCategories(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
333MCAPI ::std::string EntityTypeToFormattedLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
335MCAPI ::std::string EntityTypeToLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
337MCAPI ::std::string EntityTypeToString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
339MCAPI
void EntityTypeToStringAndNamespace(::ActorType entityType, ::std::string& nameOut, ::std::string& namespaceOut);
341MCAPI
double GetEngagementMetricsTimeSinceAppStart_DEPRECATED();
343MCAPI ::std::map<::std::string, ::std::string> GetMobProperties(
::Actor const* mob);
346MCAPI ::TraceState& GetTraceState();
350MCAPI
long InitializeGameRuntimeDll(uint64 flags, ::_INITIALIZE_OPTIONS*
const options);
353MCAPI ::InventoryContentPacket InventoryContentPacketFromPlayerInventoryId(::ContainerID
id,
::Player& player);
356MCAPI
long LoadGameRuntimeDll();
360MCAPI ::std::optional<::LogLevel> LogLevelFromString(::std::string
const& str);
362MCAPI
bool Mock_Internal_HCHttpCallPerformAsync(
::HC_CALL* originalCall);
364MCAPI
long Mock_Internal_ReadRequestBodyIntoMemory(
371MCAPI
void NGXInvalidParameterHandler(
372 wchar_t const* expression,
373 wchar_t const* function,
379MCAPI
bool NGXSafeInitializeLog(
380 wchar_t const* InPathToValidate,
381 wchar_t const* InFileName,
382 int MinimumLoggingLevel,
383 void (*logcallback)(
char const*, ::NVSDK_NGX_Logging_Level, ::NVSDK_NGX_Feature),
384 bool DisableOtherLoggingSinks
388MCAPI ::PackType PackTypeFromString(::std::string
const& value);
391MCAPI
void PlatformBedrockLogOut(
char const* buf, uint64 nullTerminatorPos);
395MCAPI
void PlatformBedrockLogOut(uint
const _priority,
char const* buf, uint64 nullTerminatorPos);
398MCAPI
void PushCircularReference(
399 ::std::unordered_map<::BlockPos, ::RedstoneTorchCapacitor*>& relatedTorches,
405MCAPI
bool ReadJpegFile(
::Core::Path const& fileName,
int readMode);
407MCAPI
long StringCchCatW(
wchar_t* pszDest, uint64 cchDest,
wchar_t const* pszSrc);
409MCAPI
long StringCchCopyW(
wchar_t* pszDest, uint64 cchDest,
wchar_t const* pszSrc);
412MCAPI ::std::string
const& StringFromPackType(::PackType value);
415MCAPI ::edu::Role StringToADRole(::std::string
const& str);
418MCAPI uint SuperFastHashIncremental(
char const* data, uint64 len, uint lastHash);
420MCAPI ::SharedTypes::Legacy::UseAnimation UseAnimationFromString(::std::string
const& str);
425MCAPI ::Bedrock::Threading::Async<::ContentCatalogQueryData::Done> _addCatalogItemsFromSearch(
428 ::std::shared_ptr<::ContentCatalogQueryData> request
432MCAPI
void _addEnvironmentSubfilter(
433 ::std::string
const& legacyPredicate,
434 ::FilterGroup::CollectionType type,
435 ::std::string
const& filterName,
436 ::SharedTypes::Legacy::FilterSubject subject,
438 ::ActorFilterGroup::Processing process
441MCAPI
void _addLegacyFilterDefinition(
442 ::std::string
const& legacyPredicate,
443 ::FilterGroup::CollectionType type,
444 ::std::string
const& filterName,
445 ::SharedTypes::Legacy::FilterSubject subject,
447 ::ActorFilterGroup::Processing process
451MCAPI
void _addToMessageHistory(::std::deque<::std::string>& messages, ::std::string
const& message);
453MCAPI ::std::string _appendToLocTable(
454 ::std::unordered_map<::std::string, ::std::string>
const& dictionary,
455 ::std::string
const& keyPrefix,
456 ::std::string
const& keySuffix
459MCAPI ::ShadowRenderingParameters::ShadowMap _calculateCascade(
464 ::glm::mat4x4
const& playerView,
465 ::glm::vec3
const& viewPos,
466 ::glm::vec3
const& up,
467 ::glm::mat4x4
const& worldToLight,
468 ::glm::mat4x4
const& lightToWorld,
469 ::glm::vec3
const& playerPosition,
470 float maxWorldTexelSnappingPosition,
472 float const maxShadowFrustumRadius,
482MCAPI ::glm::vec3 _clampShadowAngle(::glm::vec3
const& lightDir, ::glm::vec3
const& up,
float shadowClampAngle);
486MCAPI
void _computeLookAtXYZMat(
::Matrix& rotationMatrix,
::Vec3 const& lookAtDelta);
488MCAPI
bool _extractConstructionData(
499MCAPI
bool _extractConstructionData(
509MCAPI
void _fillCommonScriptPluginProperties(
516MCAPI
void _forEachObject(
521MCAPI ::std::vector<::BlockPos> _generateChunkStartPositions(
::AABB const& area);
523MCAPI ::cg::MipMapSupport _globalMipMapSupport();
525MCAPI
bool _haveSameScrollSection(::std::weak_ptr<::UIControl>
const& a, ::std::weak_ptr<::UIControl>
const& b);
527MCAPI
bool _isCoinBundleSku(::ProductSku
const& sku);
529MCAPI
bool _isLegacyDurableSku(::ProductSku
const& sku);
532MCAPI ::Block
const* _loadLayerBlock(
::Json::Value const& layer);
536MCAPI ::std::optional<::std::vector<::BlockLayer>>
540MCAPI ::glm::vec3 _quantizeLightDirection(
float angle,
float perpendicularAngle,
int step);
543MCAPI ::std::string _resultItemName(
::Recipe const& recipe);
545MCAPI
void _runActorLegacyTick(
555MCAPI ::std::unique_ptr<::ListTag> _saveBlockList(::std::vector<::BlockType const*>
const& blockList);
558MCAPI
void _saveToOptions(::std::deque<::std::string>& messages,
::IOptionRegistry& options, ::OptionID optionId);
561MCAPI
bool _spawnMinecart(
570MCAPI
bool _stringLessThan(::std::string
const& str1, ::std::string
const& str2);
573MCAPI
void _tickAbilitiesComponent(
583MCAPI
void _tickBodyControlComponent(
594MCAPI
void _tickBossComponent(
607MCAPI
void _tickBurnsInDaylightComponent(
614MCAPI
void _tickDamageOverTimeComponent(
619MCAPI
void _tickDanceComponent(
637MCAPI
void _tickTimerComponent(
643MCAPI
void _tickTransformationComponent(
649MCAPI ::OfferCategory _tryDetermineOfferCategory(::ProductSku
const& sku);
651MCAPI ::ProductType _tryDetermineProductType(::ProductSku
const& sku);
653MCAPI
void _updateFramePacing(::std::shared_ptr<::OptionRegistry>
const& Options);
655MCAPI
void _validateControlNamesRecursive(
657 ::std::string
const& namePath,
658 ::std::vector<::std::string>& invalidControlNames
661MCAPI ::Destination addExpressionOrConstantResources(
662 ::std::vector<float>& constantBuffer,
663 ::std::vector<::ExpressionNode>& expressionBuffer,
665 char const* defaultExpression,
669MCAPI
void addToCollection(
670 ::std::vector<::std::shared_ptr<::UIControl>>& controls,
672 ::ControlCollectionFlag flag
675MCAPI
void addToCollectionSortedByZOrder(
676 ::std::vector<::std::shared_ptr<::UIControl>>& controls,
678 ::ControlCollectionFlag flag
682MCAPI
void addToFillQueue(
695MCAPI
void bakeDataDrivenRenderer(
696 ::std::weak_ptr<::DataDrivenModel> weakModelPtr,
701MCAPI ushort bakeGeneratedDraws(
704 ::std::vector<::std::string>
const& materialRegex,
705 ::std::vector<::std::string>
const& partVisibilityRegex,
709MCAPI ::BakedRenderControllerResults bakeRenderController(
720MCAPI ::KeyOrNameResult
721buildActorDisplayName(::ActorType actorType, ::std::string
const& nameTag,
::Actor const* actor);
723MCAPI
void buildItemsSchema(
730MCAPI
void* cgltf_default_alloc(
void* user, uint64 size);
732MCAPI ::cgltf_result cgltf_default_file_read(
740MCAPI
void cgltf_default_file_release(
746MCAPI
void cgltf_default_free(
void* user,
void* ptr);
748MCAPI
int cgltf_element_read_float(
749 uchar
const* element,
751 ::cgltf_component_type component_type,
759MCAPI
int cgltf_json_strcmp(::jsmntok_t
const* tok, uchar
const* json_chunk,
char const* str);
764MCAPI
int cgltf_parse_json_anisotropy(
766 ::jsmntok_t
const* tokens,
768 uchar
const* json_chunk,
772MCAPI
int cgltf_parse_json_attribute_list(
774 ::jsmntok_t
const* tokens,
776 uchar
const* json_chunk,
778 uint64* out_attributes_count
781MCAPI
int cgltf_parse_json_cameras(
783 ::jsmntok_t
const* tokens,
785 uchar
const* json_chunk,
789MCAPI
int cgltf_parse_json_diffuse_transmission(
791 ::jsmntok_t
const* tokens,
793 uchar
const* json_chunk,
797MCAPI
int cgltf_parse_json_dispersion(
798 ::jsmntok_t
const* tokens,
800 uchar
const* json_chunk,
804MCAPI
int cgltf_parse_json_iridescence(
806 ::jsmntok_t
const* tokens,
808 uchar
const* json_chunk,
812MCAPI
int cgltf_parse_json_lights(
814 ::jsmntok_t
const* tokens,
816 uchar
const* json_chunk,
820MCAPI
int cgltf_parse_json_material_mapping_data(
822 ::jsmntok_t
const* tokens,
824 uchar
const* json_chunk,
829MCAPI
int cgltf_parse_json_root(
831 ::jsmntok_t
const* tokens,
833 uchar
const* json_chunk,
837MCAPI
int cgltf_parse_json_string_array(
839 ::jsmntok_t
const* tokens,
841 uchar
const* json_chunk,
846MCAPI
int cgltf_parse_json_texture_view(
848 ::jsmntok_t
const* tokens,
850 uchar
const* json_chunk,
854MCAPI
int cgltf_parse_json_unprocessed_extension(
856 ::jsmntok_t
const* tokens,
858 uchar
const* json_chunk,
862MCAPI
int cgltf_parse_json_variants(
864 ::jsmntok_t
const* tokens,
866 uchar
const* json_chunk,
870MCAPI
int cgltf_skip_json(::jsmntok_t
const* tokens,
int i);
873MCAPI
void checkAndAddConvertedVariantFilter(
875 ::std::string
const biomeName,
876 ::std::string
const& targetBiome,
880MCAPI
void checkComponent(
883 ::CircuitComponentType typeId,
892MCAPI
bool checkMinMaxClientVer(
::Json::Value const& documentObject,
bool pascalCase);
894MCAPI
bool checkMinMaxClientVer(::std::string
const& minClientVersion, ::std::string
const& maxClientVersion);
897MCAPI
void convertBiomesFilterToGenericFilter(
::Json::Value& tradeItem);
902MCAPI ::std::unordered_map<int, ::std::string> createPackParseErrorTypeEventMap();
906MCAPI ::std::unordered_map<int, ::std::string> createPackParseErrorTypeEventMap();
910MCAPI ::std::unordered_map<int, ::std::string> createPackParseErrorTypeLOCMap();
914MCAPI ::std::unordered_map<int, ::std::string> createPackParseErrorTypeLOCMap();
916MCAPI ::std::unordered_map<::PackType, ::std::string> createPackTypeToStringMap();
920MCAPI ::std::unordered_map<::PackType, ::std::string> createPackTypeToStringMap();
924MCAPI ::std::unordered_map<::std::string, ::PackType> createStringToPackTypeMap();
928MCAPI ::std::unordered_map<::std::string, ::PackType> createStringToPackTypeMap();
930MCAPI ::ExprToken createTokenFromUIDefVal(
::Json::Value const& resVal);
936MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool> createWorkerPool(
937 ::std::string_view name,
938 ::Core::Profile::ThreadFrameType frameType,
940 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>& destHandle
944MCAPI ::UIDefType defTypeFromString(::std::string
const& str);
946MCAPI ::std::string discoveryEnvironmentToString(::DiscoveryEnvironment
const& environment);
948MCAPI ::std::string dlcCheckerResultToString(::DlcCheckResult result);
951MCAPI
void doHorsePreTravelSystem(
961MCAPI
void doLavaMoveSystem(
975MCAPI
void doPlayerMovementStatsEventSystem(
982MCAPI
void doResetMoveDirectionJumpPendingSystem(
994MCAPI
void doTeleportInterpolatorResetSystem(
1002MCAPI
void doTeleportPositionModeEventSystem(
1008MCAPI
void doTickNavigationTravelSystem(
1016MCAPI
void doTickTriggerJumpSystem(
1035MCAPI
void doTrackTickingActors(
1042MCAPI
void doTravelTypeSensingSystem(
1063MCAPI
void executeOnNearestStorageAreaForPath(
1066 ::std::function<
void()> onFailure
1069MCAPI
void executeOnPrimaryUserStorageArea(
1070 ::std::function<
void(::std::shared_ptr<::Core::FileStorageArea>)> onSuccess,
1071 ::std::function<
void()> onFailure
1075MCAPI ::srtp_err_status_t external_crypto_init();
1077MCAPI ::srtp_err_status_t external_hmac_alloc(
::srtp_auth_t** a,
int key_len,
int out_len);
1079MCAPI ::srtp_err_status_t external_hmac_compute(
void*, uchar
const*,
int,
int tag_len, uchar* result);
1081MCAPI ::srtp_err_status_t external_hmac_dealloc(
::srtp_auth_t* a);
1083MCAPI ::srtp_err_status_t external_hmac_init(
void* state, uchar
const* key,
int key_len);
1085MCFOLD ::srtp_err_status_t external_hmac_start(
void*);
1087MCFOLD ::srtp_err_status_t external_hmac_update(
void*, uchar
const*,
int);
1090MCAPI ::std::optional<::ExtractedDataDataDrivenModel>
1091extractModelData(
::HashedString const& name, ::std::shared_ptr<::DataDrivenRenderer> rendererPtr);
1093MCAPI
void fillLangValue(
1094 ::std::string
const& jsonFieldStr,
1095 ::std::string
const& langCode,
1096 ::std::string
const& modifiedCode,
1098 bool const pascalCase,
1100 ::std::unordered_map<::std::string, ::std::string>& locDictionary
1103MCAPI
void fillPackIdentityListFromJson(
1104 ::std::vector<::PackIdVersion>& packIdentityListToFill,
1109MCAPI ::std::optional<::FlatWorldPresetID> flatWorldPresetIDFromString(::std::string
const& str);
1111MCAPI ::std::optional<::TradeItem> fromSharedTypes(
1115 bool usingUpcomingCreatorFeaturesExperiment
1118MCAPI
int fseek(
::Core::File& file, int64 offset,
int origin);
1122MCAPI ::std::string gatherTypeStrings(::std::vector<::Json::ValueType>
const& types);
1125MCAPI ::ResourceOffset generateExpressionOffset(
1127 ::ExpressionOp expectedOperator,
1128 ::std::vector<::ExpressionNode>& outputExpressionList
1132MCAPI ::Json::Value getBiomeFilteredChoice(
1134 ::std::vector<::std::string>
const& biomes,
1139MCAPI ::std::shared_ptr<::UIControl> getControlBreadthFirst(
::UIControl* scope, ::std::string name);
1141MCAPI
float getControlVariableValue(
::UIControl& control, ::LayoutVariableType
const type);
1143MCAPI
void getControlsInternal(
1144 ::std::vector<::std::shared_ptr<::UIControl>>& result,
1145 ::std::function<
bool(
::UIControl const&)> predicate,
1149MCAPI ::Json::Value
const& getDisplayProperties(
::Json::Value const& resultObject,
bool pascalCase);
1151MCAPI ::std::string
const getEdition();
1157MCAPI
void getFirstControlInternal(
1158 ::std::shared_ptr<::UIControl>& result,
1159 ::std::function<
bool(
::UIControl const&)>
const& predicate,
1163MCAPI
void getFirstVisibleControlInternal(
1164 ::std::shared_ptr<::UIControl>& result,
1165 ::std::function<
bool(
::UIControl const&)>
const& predicate,
1170MCAPI ::std::unordered_map<::FlatWorldPresetID, ::FlatWorldPreset>
const& getFlatWorldPresets();
1172MCFOLD ::I18n& getI18n();
1174MCAPI ::std::string getInvalidRespawnBlockMessage(
::DimensionType const& dimension);
1177MCAPI ::std::vector<::PackIdVersion> getJsonPackIdVersion(
::Json::Value const& objectArray);
1179MCAPI ::std::string getJsonString(::std::string
const& key,
::Json::Value const&
object);
1182MCAPI ::std::unordered_set<::Block const*>
const getNetherBlendBlocks();
1185MCAPI ::std::string
const& getOperationString(::UIOperation operation);
1188MCAPI ::std::unordered_set<::BlockType const*>
const getOverworldBlendBlocks();
1190MCAPI ::PackMaps
const& getPackMaps();
1193MCAPI ::std::string getPersonaFullDetailCondition();
1198MCAPI
int& getSampleCount(
1199 ::std::vector<::std::pair<::MapSample, int>>& samples,
1205MCAPI ::std::string getStringOrParsedTextObject(
1207 ::std::function<::std::string(::std::string
const&)> emoticonifyTextCallback
1210MCAPI ::SubChunk::SubChunkState getSubChunkState(
::LevelChunk& levelChunk,
short absoluteIndex);
1212MCAPI
void getVisibleControlsInternal(::std::function<
void(
::UIControl&)>
const& action,
::UIControl& control);
1214MCAPI
bool isChunkAtStage(::std::weak_ptr<::LevelChunk> lcwp, ::ChunkState stateToCheck);
1221MCAPI ::std::string join(::std::string prefix, ::std::string_view chunkKey);
1223MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag);
1226MCAPI
int jsmn_parse(
::jsmn_parser* parser,
char const* js, uint64 len, ::jsmntok_t* tokens, uint64 num_tokens);
1230MCAPI ::std::string keyLookup(
1231 ::std::unordered_map<::std::string, ::std::vector<char>
const>
const& keyMap,
1232 ::std::string
const& packIdentity
1237MCAPI ::std::string keyLookup(
1238 ::std::unordered_map<::std::string, ::std::vector<char>
const>
const& keyMap,
1239 ::std::string
const& packIdentity
1242MCAPI ::glm::vec3 makeAchromatopsiaXLinked(::glm::vec3 fragment);
1245MCAPI ::TextPacket makeAuthorMessage(
1247 ::std::string author,
1248 ::std::string message,
1250 ::std::optional<::std::string> filtered,
1252 ::std::string platformId
1256MCAPI ::glm::vec3 makeCool(::glm::vec3 fragment);
1258MCAPI ::glm::vec3 makeDeuteranopia(::glm::vec3 fragment);
1260MCAPI ::glm::vec3 makeGrayscale(::glm::vec3 fragment);
1263MCAPI ::std::string makeGuestDisplayName(::std::string hostName, ::SubClientId subclientId);
1265MCAPI ::mce::UUID makeGuestUUID(
::mce::UUID const& hostUuid, ::SubClientId subclientId);
1268MCAPI ::glm::vec3 makeInverted(::glm::vec3 fragment);
1272MCAPI ::TextPacket makeMessageOnly(
1274 ::std::string message,
1276 ::std::optional<::std::string> filtered,
1278 ::std::string platformId
1283MCAPI ::TextPacket makeMessageOnly(
1285 ::std::string message,
1287 ::std::optional<::std::string> filtered,
1289 ::std::string platformId
1294MCAPI ::TextPacket makeMessageParams(
1296 ::std::string message,
1297 ::std::vector<::std::string> params,
1300 ::std::string platformId
1305MCAPI ::TextPacket makeMessageParams(
1307 ::std::string message,
1308 ::std::vector<::std::string> params,
1311 ::std::string platformId
1314MCAPI ::glm::vec3 makeProtanopia(::glm::vec3 fragment);
1316MCAPI ::DataDrivenRendererPool makeSeededFallbackPool(::std::weak_ptr<::mce::BufferResourceService> bufferService);
1318MCAPI ::glm::vec3 makeSepia(::glm::vec3 fragment);
1322MCAPI ::std::shared_ptr<::Bedrock::Services::IDiscoveryService> makeServerDiscoveryService(
1324 ::std::shared_ptr<::Bedrock::Http::DispatcherInterface> dispatcher,
1325 ::Bedrock::NotNullNonOwnerPtr<::IMinecraftEventing> eventing
1330MCAPI ::glm::vec3 makeTritanopia(::glm::vec3 fragment);
1332MCAPI ::glm::vec3 makeWarm(::glm::vec3 fragment);
1334MCAPI
int nvFPrintf(::_iobuf* stream,
char const* fmt, ...);
1336MCAPI
int nvSWprintf(
wchar_t* dst, uint64 dstLen,
wchar_t const* fmt, ...);
1338MCAPI
int nvSprintf(
char* dst, uint64 dstLen,
char const* fmt, ...);
1340MCAPI ::std::ostream& operator<<(::std::ostream& os, ::cg::TextureSetLayerType
const& type);
1343MCAPI ::SharedTypes::v1_21_90::CameraPresetFile parseLegacy(
1346 ::MolangVersion molangVersion,
1347 ::gsl::not_null<::cereal::ReflectionCtx const*>
ctx,
1352MCAPI ::std::string parseRawText(
::Json::Value const& value);
1357MCAPI
bool parseTradeChoicesJson(
1363MCAPI
bool parseTradeGroupJson(
1371MCAPI ::std::string pascalCaseConverter(::std::string
const& inString,
bool pascalCase);
1374MCAPI ::TrimDataPacket
1378MCAPI
void readUV(::glm::vec2& uv,
::Json::Value const& value);
1380MCAPI
void receiptPrinter_Amazon(
1381 ::std::vector<::std::weak_ptr<::Purchase>>
const& purchases,
1385MCAPI
void recursiveMerge(
1388 ::std::string
const& pathName,
1397MCAPI
void removeFromCollection(
1398 ::std::vector<::std::shared_ptr<::UIControl>>& controls,
1399 ::std::map<::std::vector<::std::shared_ptr<::UIControl>>*, ::std::vector<::std::shared_ptr<::UIControl>>>&
1402 ::ControlCollectionFlag flag
1405MCAPI ::mce::framebuilder::FrameBuilder* renderDragonFrameBuilder();
1407MCFOLD uchar* resample_row_1(uchar* out, uchar* in_near, uchar* in_far,
int w,
int hs);
1409MCAPI ::ui::DirtyFlag setControlVariableValue(
1411 ::LayoutVariableType type,
1417MCAPI
void setProgressPercent(
1418 float progressPercent,
1419 ::std::function<
void(
float)> setValue,
1420 ::std::function<
float()> getMin,
1421 ::std::function<
float()> getMax
1428MCAPI ::DiscoveryEnvironment stringToDiscoveryEnvironment(::std::string
const& str);
1432MCAPI ::InitiatorCategory stringToInitiatorCategory(::std::string
const& initiatorCategoryString);
1434MCAPI ::ProcessState stringToProcessState(::std::string
const& processStateString);
1436MCAPI ::TerrainVariation terrainVariationFromString(::std::string_view terrainVariation);
1445MCAPI ::ShapedRecipePayload toShapedPayload(
::ShapedRecipe const& recipe,
bool includeUnlocking);
1447MCAPI ::ShapelessRecipePayload toShapelessPayload(
::ShapelessRecipe const& recipe,
bool includeUnlocking);
1449MCAPI ::std::string toString(::AgentActionType type);
1452MCAPI ::std::optional<uint> tryCreateDataDrivenV2Resource(
1454 ::std::shared_ptr<::DataDrivenRenderer>
const& render,
1458MCAPI
void updateLevelSettingsConsideringPlayerIntents(
1459 ::Bedrock::NotNullNonOwnerPtr<::ILevel> level,
1460 ::Bedrock::NotNullNonOwnerPtr<::IAppPlatform>
const appPlatform,
1461 ::Bedrock::NotNullNonOwnerPtr<::Social::MultiplayerServiceManager>
const&,
1462 bool const isNxAdhocMultiplayer,
1463 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager>
const userManager,
1464 ::Bedrock::NotNullNonOwnerPtr<::TrialManager>
const trialManager,
1465 bool const hasAllValidCrossPlatformSkin
1469MCAPI ::Json::Value upgradeTraderMaterialFunction(
::Json::Value& tradeItem);
1472MCAPI ::http_wstring utf16_from_utf8(::http_string
const& utf8);
1474MCAPI ::http_wstring utf16_from_utf8(
char const* utf8);
1476MCAPI ::http_wstring utf16_from_utf8(
char const* utf8, uint64 size);
1478MCAPI ::http_string utf8_from_utf16(::http_wstring
const& utf16);
1480MCAPI ::http_string utf8_from_utf16(
wchar_t const* utf16, uint64 size);
1483MCAPI int64 utf8proc_decompose_char(
int uc,
int* dst, int64 bufsize,
int options,
int* last_boundclass);
1486MCAPI ::std::vector<::std::string> validateControlNames(
::Json::Value const& root);
1488MCAPI
void visitTreeInternal(
1490 ::std::function<
bool(
::UIControl&,
int,
bool)> visitor,
1492 bool ancestorVisible
1496MCAPI ::Bedrock::Result<void> writeFileContent(
::Core::Path const& path, ::std::string
const& content);
1501MCAPI ::std::vector<::HudElement>
const& ALL_HUD_ELEMENTS();
1504MCAPI ::std::array<::LayoutVariableType, 11>
const& AllLayoutVariableTypes();
1507MCAPI ::HashedString
const& BLAST_FURNACE_TAG();
1509MCAPI ::HashedString
const& CAMPFIRE_TAG();
1511MCAPI ::std::string_view
const& CEREAL_DEFAULT_SCOPE();
1513MCAPI ::std::string_view
const& CEREAL_DOCUMENTATION_TAG();
1515MCAPI ::std::string_view
const& CEREAL_JSON_SCHEMA_PROPERTY();
1518MCAPI ::std::string_view
const& CEREAL_ROOT_SCHEMA_PROPERTY();
1521MCAPI ::std::unordered_map<::ContainerEnumName, ::std::string>& ContainerCollectionNameMap();
1524MCAPI ::std::string
const& DEFAULT_DRIVE_CONTENTS_PATH();
1527MCAPI ::HashedString
const& FURNACE_TAG();
1529MCAPI ::std::array<::std::pair<::HudElement, ::std::string>, 13>
const& HUD_ELEMENTS_TO_STRINGS();
1532MCAPI ::std::unordered_map<::std::string_view, ::HowToPlayTopicIndex>
const& HowToPlayTopicIndexMap();
1534MCAPI ::std::string
const& ICON_OVERLAY_FACTORY();
1536MCAPI ::ThirdPartyInfo
const& INVALID_THIRD_PARTY_INFO();
1539MCAPI ::MCRESULT
const& MCRESULT_ChatMuted();
1541MCAPI ::MCRESULT
const& MCRESULT_CommandNotFound();
1543MCAPI ::MCRESULT
const& MCRESULT_CommandRequestInitiated();
1545MCAPI ::MCRESULT
const& MCRESULT_CommandStepFail();
1547MCAPI ::MCRESULT
const& MCRESULT_CommandsDisabled();
1549MCAPI ::MCRESULT
const& MCRESULT_EncryptionRequired();
1551MCAPI ::MCRESULT
const& MCRESULT_ExecutionFail();
1553MCAPI ::MCRESULT
const& MCRESULT_FailedToParseCommand();
1555MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandContext();
1557MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandOrigin();
1559MCAPI ::MCRESULT
const& MCRESULT_MalformedRequest();
1561MCAPI ::MCRESULT
const& MCRESULT_Success();
1563MCAPI ::MCRESULT
const& MCRESULT_TooManyPendingRequests();
1565MCAPI ::std::bitset<39>
const& PLAYER_ACTION_MOVEMENT_BITSET();
1567MCAPI ::std::bitset<39>
const& PLAYER_ACTION_MOVEMENT_FLYING_ATTRIBUTE_BITSET();
1569MCAPI ::std::bitset<39>
const& PLAYER_ACTION_MOVEMENT_SPEED_ATTRIBUTE_BITSET();
1571MCAPI ::HashedString
const& SMOKER_TAG();
1573MCAPI ::HashedString
const& SOUL_CAMPFIRE_TAG();
1575MCAPI ::std::unordered_map<
1576 ::TextProcessingEventOrigin,
1579 ::std::equal_to<::TextProcessingEventOrigin>>
const&
1580TextProcessingEventOriginEnumMap();
1582MCAPI uint
const& UNINITIALIZED_BLOCK_NETWORKID();
1584MCAPI ::std::array<::HashedString, 25>
const& VanillaStructureFeatureTypes();
1587MCAPI ::std::unordered_map<int, ::std::string>
const& autoUpdateModeLabels();
1589MCAPI ::std::unordered_map<int, ::std::string>
const& blockLightQualityLabels();
1591MCAPI ::std::unordered_map<int, ::std::string>
const& chatDurationLabels();
1593MCAPI ::std::unordered_map<int, ::std::string>
const& cloudQualityLabels();
1595MCAPI ::std::unordered_map<int, ::std::string>
const& contentLogGUILevelLables();
1597MCAPI ::std::unordered_map<int, ::std::string>
const& debugHudLabels();
1599MCAPI ::std::unordered_map<int, ::std::string>
const& deviceInfoMemoryTierLabels();
1601MCAPI ::std::unordered_map<int, ::std::string>
const& difficultyLabels();
1603MCAPI ::std::unordered_map<int, ::std::string>
const& discoveryEnvironmentLabels();
1607MCAPI ::std::unordered_map<::std::string, ::DiscoveryEnvironment>
const& discoveryEnvironmentStrings();
1610MCAPI ::std::unordered_map<::DiscoveryEnvironment, ::std::string>
const& discoveryEnvironments();
1612MCAPI ::std::add_lvalue_reference_t<uint[]> englishCharacterFrequencies();
1614MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Biome>>& gBiomeChunkGC();
1616MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Block>>& gBlockStorageGC();
1618MCAPI ::InternalTaskGroup& gInternalTaskGroup();
1621MCAPI ::SubChunkDelayedDeleter<::SubChunkBrightnessStorage>& gLightStorageGC();
1623MCAPI ::MainGameCore::WinMain*& gWinMainInstance();
1625MCAPI
bool& g_forceDLSSFallback_Dx12();
1629MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64, uint)> g_memAllocFunc();
1631MCAPI ::std::add_lvalue_reference_t<void (*)(
void*, uint)> g_memFreeFunc();
1633MCAPI ::HCTraceImplArea& g_traceHTTPCLIENT();
1635MCAPI ::HCTraceImplArea& g_traceWEBSOCKET();
1639MCAPI ::std::unordered_map<int, ::std::string>
const& gameModeLabels();
1641MCAPI ::std::unordered_map<int, ::std::string>
const& graphicsModeLabels();
1643MCAPI ::std::unordered_map<int, ::std::string>
const& graphicsQualityPresetModeLabels();
1645MCAPI ::std::unordered_map<int, ::std::string>
const& joystickVisibilityOptionLabels();
1647MCAPI ::std::unordered_map<int, ::std::string>
const& partyInviteReceivedFilterLabels();
1649MCAPI ::std::unordered_map<int, ::std::string>
const& partyInviteSendPrivilegesLabels();
1651MCAPI ::std::unordered_map<int, ::std::string>
const& partyPrivacyLabels();
1653MCAPI ::std::unordered_map<::std::string, int>
const& permissionsNameValuePairs();
1655MCAPI ::std::unordered_map<int, ::std::string>
const& permissionsValueLabelPairs();
1657MCAPI ::std::unordered_map<int, ::std::string>
const& permissionsValueTexturePairs();
1659MCAPI ::std::unordered_map<int, ::std::string>
const& playerWaypointsLabels();
1662MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64,
char const*, uint)> rakMalloc_Ex();
1664MCAPI ::std::add_lvalue_reference_t<
void* (*)(
void*, uint64,
char const*, uint)> rakRealloc_Ex();
1667MCAPI ::std::unordered_map<int, ::std::string>
const& realmsGameModeLabels();
1669MCAPI ::std::unordered_map<int, ::std::string>
const& reflectionQualityLabels();
1673MCAPI
bool& s_AsyncLibEnablePumpingWait();
1675MCAPI ::std::atomic<uint>& s_AsyncLibGlobalStateCount();
1679MCAPI ::std::unordered_map<int, ::std::string>
const& scriptDebuggerAttachModeLabels();
1681MCAPI ::std::unordered_map<int, ::std::string>
const& shadowQualityLabels();
1683MCAPI ::std::unordered_map<int, ::std::string>
const& sneakOptionLabels();
1685MCAPI ::std::unordered_map<int, ::std::string>
const& splitScreenLabels();
1687MCAPI ::std::unordered_map<int, ::std::string>
const& storageLocationLabels();
1689MCAPI ::std::unordered_map<int, ::std::string>
const& subtitlePositionLabels();
1691MCAPI ::std::unordered_map<int, ::std::string>
const& thirdPersonLabels();
1693MCAPI ::std::unordered_map<int, ::std::string>
const& toastsDurationLabels();
1695MCAPI ::std::unordered_map<int, ::std::string>
const& topButtonScaleOptionLabels();
1697MCAPI ::std::unordered_map<int, ::std::string>
const& typefaceLabels();
1699MCAPI ::std::unordered_map<int, ::std::string>
const& uiProfileLabels();
1701MCAPI ::std::unordered_map<int, ::std::string>
const& upscalingModeLabels();
1703MCAPI ::std::unordered_map<int, ::std::string>
const& volumetricFogQualityLabels();
1705MCAPI ::std::unordered_map<int, ::std::string>
const& vsyncLabels();
1707MCAPI ::std::add_lvalue_reference_t<int (*)(
void*)> winrt_to_hresult_handler();
Definition ActorOwnerComponent.h:10
Definition ActorTickNeededComponent.h:13
Definition BalloonComponent.h:16
Definition BaseCircuitComponent.h:19
Definition DispatcherInterface.h:17
Definition NonOwnerPointer.h:9
Definition IDiscoveryService.h:15
Definition StaticOptimizedString.h:10
Definition WorkerPoolHandleInterface.h:15
Definition BlockSource.h:71
Definition BlockType.h:79
Definition BodyControlComponent.h:10
Definition BoostableComponent.h:13
Definition BreedableComponent.h:19
Definition CircuitComponentList.h:14
Definition CircuitSceneGraph.h:18
Definition CircuitTrackingInfo.h:14
Definition CommandBlockComponent.h:17
Definition CompoundTag.h:18
Definition FileStorageArea.h:30
Definition DamageOverTimeComponent.h:5
Definition DanceComponent.h:10
Definition DataDrivenModel.h:5
Definition DataDrivenRenderer.h:5
Definition DataLoadHelper.h:20
Definition DimensionHeightRange.h:5
Definition EntityContext.h:15
Definition EntityModifier.h:6
Definition ExplodeComponent.h:17
Definition ExpressionNode.h:35
Definition HashedString.h:5
Definition HopperComponent.h:14
Definition IClientInstance.h:5
Definition IConstBlockSource.h:25
Definition IFileAccess.h:15
Definition IMinecraftEventing.h:147
Definition IOptionRegistry.h:5
Definition InsomniaComponent.h:12
Definition InternalTaskGroup.h:18
Definition InventoryContentPacket.h:19
Definition ItemInstance.h:15
Definition ItemRegistryRef.h:41
Definition ItemStack.h:26
Definition ItemUseInventoryTransaction.h:24
Definition ItemUseOnActorInventoryTransaction.h:22
Definition EmptyClass.h:7
Definition JsonSchemaObjectNode.h:8
Definition LevelChunk.h:77
Definition LevelData.h:55
Definition LevelTickTrackingComponent.h:8
Definition LinkedAssetValidator.h:8
Definition NavigationComponent.h:18
Definition OptionRegistry.h:5
Definition ParticleEffectComponentRegistry.h:7
Definition PoolAliasBinding.h:10
Definition RakPeerInterface.h:32
Definition RecipeIngredient.h:8
Definition RedstoneTorchCapacitor.h:19
Definition ScriptPluginResult.h:9
Definition ModuleBindingBuilder.h:22
Definition SearchQuery.h:5
Definition SemVersion.h:15
Definition ShapedRecipe.h:16
Definition ShapelessRecipe.h:16
Definition IUserManager.h:7
Definition MultiplayerServiceManager.h:7
Definition StrictEntityContext.h:8
Definition SubChunkBrightnessStorage.h:5
Definition TeleportComponent.h:14
Definition TextPacket.h:19
Definition ThirdPartyInfo.h:5
Definition TraceState.h:5
Definition TrialManager.h:5
Definition TrimDataPacket.h:19
Definition TrimMaterialRegistry.h:8
Definition TrimPatternRegistry.h:14
Definition UIPropertyBag.h:5
Definition WorkerPool.h:16
Definition WorldSeedModel.h:5
Definition function_ref.h:60
Definition http_stl_allocator.h:6
Definition FrameBuilder.h:7
Definition AABBShapeComponent.h:9
Definition ActorDataControllingSeatIndexComponent.h:8
Definition ActorDataFlagComponent.h:9
Definition ActorDefinitionIdentifier.h:15
Definition ActorHeadRotationComponent.h:5
Definition ActorRotationComponent.h:8
Definition AgeableComponent.h:16
Definition AgentCapabilities.h:5
Definition AirSpeedComponent.h:8
Definition AirTravelFlagComponent.h:5
Definition AttachablesPreprocessingContext.h:5
Definition BakedRenderControllerResults.h:5
Definition DiscoveryConfig.h:7
Definition BlockLayer.h:10
Definition BlockLightConfiguration.h:5
Definition BossComponent.h:20
Definition BurnsInDaylightComponent.h:8
Definition CanStandOnPowderSnowComponent.h:5
Definition CanStandOnPowderSnowFromEquipmentComponent.h:5
Definition ClientSkin.h:5
Definition CloudConfiguration.h:5
Definition CommonLocTextPair.h:5
Definition ContentCatalogQueryData.h:5
Definition CurrentTickComponent.h:8
Definition DashActionComponent.h:5
Definition DashJumpFlagComponent.h:5
Definition DataDrivenRendererPool.h:5
Definition DataDrivenRendererPreprocessingContext.h:5
Definition DimensionType.h:5
Definition DurableSearchResults.h:5
Definition FallDistanceComponent.h:5
Definition FlatWorldLayer.h:8
Definition FlatWorldPreset.h:15
Definition GlidingTravelFlagComponent.h:5
Definition GroundTravelFlagComponent.h:5
Definition HCTraceImplArea.h:5
Definition HorseWasOnGroundPreTravelComponent.h:5
Definition IMarketplacePackDownloader.h:15
Definition ImmuneToLavaDragComponent.h:5
Definition JumpPendingScaleComponent.h:8
Definition KeyOrNameResult.h:5
Definition KineticDamageSettings.h:15
Definition LavaTravelFlagComponent.h:5
Definition LiquidTravelFlagComponent.h:5
Definition MapSample.h:13
Definition MobBodyRotationComponent.h:5
Definition MobFlagComponent.h:5
Definition MobIsJumpingFlagComponent.h:5
Definition MobTravelComponent.h:8
Definition ModificationOperation.h:5
Definition MovementAbilitiesComponent.h:5
Definition MovementAttributesComponent.h:5
Definition MovementInterpolatorComponent.h:14
Definition OnGroundFlagComponent.h:5
Definition PackIdVersion.h:10
Definition PlayerComponent.h:5
Definition PlayerFlyingTravelComponent.h:5
Definition PlayerPositionModeComponent.h:5
Definition PlayerPreMobTravelComponent.h:8
Definition PowerJumpFlagComponent.h:5
Definition RakPeerConfiguration.h:7
Definition RealmsWorldInfo.h:5
Definition ReceiptFulfillment.h:13
Definition ResourceOffset.h:5
Definition ShapedRecipePayload.h:17
Definition ShapelessRecipePayload.h:17
Definition ComponentItemData.h:18
Definition TradeGroup.h:12
Definition TradeItemList.h:13
Definition TradeItem.h:17
Definition CameraPresetFile.h:15
Definition SpecificEnchantFunction.h:27
Definition StateVectorComponent.h:8
Definition SubBBsComponent.h:10
Definition TextProcessingEventOriginEnumHasher.h:5
Definition TimerComponent.h:15
Definition TradeItem.h:13
Definition TriggerJumpRequestComponent.h:8
Definition VehicleComponent.h:10
Definition WasInLavaFlagComponent.h:5
Definition WasInWaterFlagComponent.h:5
Definition WaterTravelFlagComponent.h:5
Definition WorkerConfiguration.h:8
Definition WorldTemplateInfo.h:12
Definition XAsyncBlock.h:10
Definition ReflectionCtx.h:11
Definition cgltf_anisotropy.h:5
Definition cgltf_attribute.h:5
Definition cgltf_data.h:5
Definition cgltf_diffuse_transmission.h:5
Definition cgltf_dispersion.h:5
Definition cgltf_extension.h:5
Definition cgltf_file_options.h:5
Definition cgltf_iridescence.h:5
Definition cgltf_material_mapping.h:5
Definition cgltf_memory_options.h:5
Definition cgltf_options.h:5
Definition cgltf_texture_view.h:5
Definition jsmn_parser.h:5
Definition BufferResourceService.h:7
Definition PerCascadeRenderingParameters.h:7
Definition ShadowRange.h:7
Definition srtp_auth_t.h:5