3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/debug/log/LogLevel.h"
7#include "mc/deps/core/file/file_system/FileType.h"
8#include "mc/deps/core/sem_ver/SemVersionBase.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/deps/ecs/strict/EntityModifier.h"
11#include "mc/deps/json/ValueType.h"
12#include "mc/deps/shared_types/legacy/FilterSubject.h"
13#include "mc/deps/shared_types/legacy/item/UseAnimation.h"
14#include "mc/events/TextProcessingEventOrigin.h"
15#include "mc/external/lib_http_client/HCTraceLevel.h"
16#include "mc/external/lib_http_client/http_stl_allocator.h"
17#include "mc/external/libsrtp/srtp_err_status_t.h"
18#include "mc/network/packet/AgentActionType.h"
19#include "mc/options/DiscoveryEnvironment.h"
20#include "mc/util/HudElement.h"
21#include "mc/util/gltf/Accessor.h"
22#include "mc/util/gltf/Image.h"
23#include "mc/util/gltf/Material.h"
24#include "mc/world/actor/ActorCategory.h"
25#include "mc/world/actor/ActorFilterGroup.h"
26#include "mc/world/actor/ActorType.h"
27#include "mc/world/actor/ActorTypeNamespaceRules.h"
28#include "mc/world/containers/ContainerEnumName.h"
29#include "mc/world/filters/FilterGroup.h"
30#include "mc/world/filters/FilterOperator.h"
31#include "mc/world/item/CreativeItemCategory.h"
32#include "mc/world/level/WorldVersion.h"
33#include "mc/world/level/block/BlockProperty.h"
34#include "mc/world/level/block/BlockSlot.h"
35#include "mc/world/level/chunk/LevelChunkTag.h"
36#include "mc/world/level/chunk/SubChunkDelayedDeleter.h"
37#include "mc/world/level/chunk/SubChunkStorage.h"
38#include "mc/world/level/material/MaterialType.h"
39#include "mc/world/level/saveddata/maps/MapItemSavedData.h"
40#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
96namespace Bedrock {
class StaticOptimizedString; }
97namespace Bedrock {
class WorkerPoolHandleInterface; }
98namespace Core {
class File; }
99namespace Core {
class PathView; }
100namespace Core {
class Result; }
101namespace Json {
class Value; }
102namespace RakNet {
class RakPeerInterface; }
103namespace RakNet {
struct RakPeerConfiguration; }
104namespace cereal {
struct ReflectionCtx; }
109MCAPI
void BedrockLogOut(uint,
char const*, ...);
111MCAPI ::CreativeItemCategory CreativeItemCategoryFromString(::std::string
const& str);
113MCAPI
void* DefaultMemAllocFunction(uint64, uint);
115MCAPI
void DefaultMemFreeFunction(
void*, uint);
117MCFOLD
void DefaultOutOfMemoryHandler(
char const* file,
long line);
121MCAPI ::HashedString
const& EntityCanonicalName(::ActorType entityType);
123MCAPI ::ActorType EntityTypeFromString(::std::string
const& str);
125MCAPI ::std::string EntityTypeToFormattedLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
127MCAPI ::std::string EntityTypeToLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
129MCAPI ::std::string EntityTypeToString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
131MCAPI
void EntityTypeToStringAndNamespace(::ActorType entityType, ::std::string& nameOut, ::std::string& namespaceOut);
133MCAPI
float FoodSaturationFromString(::std::string
const& str);
135MCAPI ::std::unordered_map<::std::string, ::ActorFactoryData>& GetActorDataRegistry();
137MCAPI
double GetEngagementMetricsTimeSinceAppStart_DEPRECATED();
139MCAPI
void Internal_HCTraceMessage(
char const*, ::HCTraceLevel,
char const*);
141MCAPI uint64 Internal_ThisThreadId();
143MCAPI ::std::optional<::LogLevel> LogLevelFromString(::std::string
const& str);
149MCAPI
bool Mock_Internal_HCHttpCallPerformAsync(
::HC_CALL*);
153MCAPI
void PlatformBedrockLogOut(uint _priority,
char const* buf, uint64 nullTerminatorPos);
155MCAPI ::std::string StringFromCreativeItemCategory(::CreativeItemCategory category);
157MCAPI ::std::string StringFromMaterialType(::MaterialType
const& materialType);
159MCAPI ::SharedTypes::Legacy::UseAnimation UseAnimationFromString(::std::string
const& str);
161MCAPI
void _addEnvironmentSubfilter(
162 ::std::string
const& legacyPredicate,
163 ::FilterGroup::CollectionType filterName,
164 ::std::string
const& op,
165 ::SharedTypes::Legacy::FilterSubject process,
166 ::FilterOperator type,
167 ::ActorFilterGroup::Processing subject
170MCAPI
void _addLegacyFilterDefinition(
171 ::std::string
const& legacyPredicate,
172 ::FilterGroup::CollectionType type,
173 ::std::string
const& filterName,
174 ::SharedTypes::Legacy::FilterSubject subject,
176 ::ActorFilterGroup::Processing process
181MCAPI ::std::unique_ptr<::ListTag> _createBlockStateEnum(
::BlockState const& state);
183MCAPI uchar _facingToDirection(uchar facing);
185MCAPI uint _facingToVineDirection(uchar facing);
187MCAPI ::ScatterParamsMolangVariableIndices& _getScatterParamsMolangVariableIndices();
191MCAPI ::Block
const* _loadLayerBlock(
::Json::Value const& layer);
193MCAPI ::std::optional<::BlockPos> _locateBiome(
194 ::std::function<
bool(
::Biome const&)>
const& predicate,
201MCAPI ::std::optional<::std::vector<::BlockLayer>>
204MCAPI ::std::optional<::std::vector<::BlockLayer>>
207MCAPI ::std::optional<::std::vector<::BlockLayer>>
210MCAPI ::std::optional<::std::vector<::BlockLayer>>
213MCAPI ::std::unique_ptr<::ListTag> _saveBlockList(::std::vector<::BlockLegacy const*>
const& blockList);
222MCAPI
char const* blockSlotToString(::BlockSlot slot);
224MCAPI ::KeyOrNameResult
225buildActorDisplayName(::ActorType actorType, ::std::string
const& nameTag,
::Actor const* actor);
227MCAPI
void checkComponent(
230 ::CircuitComponentType typeId,
238MCAPI
bool checkTypeFilter(
252MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool> createWorkerPool(
253 ::std::string_view name,
255 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>& destHandle
258MCAPI
void doSendPacket(
264MCAPI ::ActorCategory entityCategoriesFromString(::std::string
const& str);
266MCAPI ::ActorCategory entityCategoryFromString(::std::string
const& str);
268MCAPI ::srtp_err_status_t external_crypto_init();
270MCAPI ::srtp_err_status_t external_hmac_alloc(
::srtp_auth_t**,
int,
int);
272MCAPI ::srtp_err_status_t external_hmac_compute(
void*, uchar
const*,
int,
int, uchar*);
274MCAPI ::srtp_err_status_t external_hmac_dealloc(
::srtp_auth_t*);
276MCAPI ::srtp_err_status_t external_hmac_init(
void*, uchar
const*,
int);
278MCAPI ::srtp_err_status_t external_hmac_start(
void*);
280MCAPI ::srtp_err_status_t external_hmac_update(
void*, uchar
const*,
int);
286MCAPI
void forEachEntityType(::std::function<
bool(::ActorType, ::std::string
const&)> callback);
290MCAPI
int fseek(
::Core::File& file, int64 offset,
int origin);
292MCAPI ::std::string gatherTypeStrings(::std::vector<::Json::ValueType>
const& types);
294MCAPI ::std::string
const getEdition();
298MCAPI ::I18n& getI18n();
300MCAPI ::std::string getJsonTypeString(::Json::ValueType
const& type);
302MCAPI ::std::string join(::std::string prefix, ::std::string_view chunkKey);
304MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag);
306MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag i, uint tag);
325MCAPI
bool operator==(
330MCAPI
bool operator==(
335MCAPI ::BlockProperty operator|(::BlockProperty lhs, ::BlockProperty b);
337MCAPI
void renderMapChunk(
347MCAPI ::leveldb::Status toLevelDbStatus(
::Core::Result const& result);
349MCAPI ::std::string toString(::AgentActionType type);
351MCAPI ::http_wstring utf16_from_utf8(::http_string
const&);
353MCAPI ::http_wstring utf16_from_utf8(
char const*);
355MCAPI ::http_wstring utf16_from_utf8(
char const*, uint64);
357MCAPI ::http_string utf8_from_utf16(::http_wstring
const&);
359MCAPI ::http_string utf8_from_utf16(
wchar_t const*, uint64);
364MCAPI ::std::vector<::HudElement>
const& ALL_HUD_ELEMENTS();
366MCAPI ::std::unordered_map<
367 ::glTF::Accessor::Type,
370 ::std::equal_to<::glTF::Accessor::Type>>
const&
371AccessorTypeEnumMap();
373MCAPI ::HashedString
const& BLAST_FURNACE_TAG();
375MCAPI ::HashedString
const& CAMPFIRE_TAG();
377MCAPI ::std::unordered_map<::ContainerEnumName, ::std::string>& ContainerCollectionNameMap();
379MCAPI ::std::unordered_map<::ActorType, ::ActorMapping>& ENTITY_TYPE_MAP();
381MCAPI ::HashedString
const& FURNACE_TAG();
383MCAPI ::std::array<::std::pair<::HudElement, ::std::string>, 13>
const& HUD_ELEMENTS_TO_STRINGS();
385MCAPI ::GatheringServerInfo
const& INVALID_GATHERING_SERVER_INFO();
387MCAPI ::ThirdPartyInfo
const& INVALID_THIRD_PARTY_INFO();
389MCAPI
char const*& IPV4_LOOPBACK();
391MCAPI
char const*& IPV6_LOOPBACK();
393MCAPI ::std::unordered_map<
394 ::glTF::Image::ImageMimeType,
397 ::std::equal_to<::glTF::Image::ImageMimeType>>
const&
398ImageMimeTypeEnumMap();
400MCAPI ::MCRESULT
const& MCRESULT_AllTargetsWillFail();
402MCAPI ::MCRESULT
const& MCRESULT_ChatMuted();
404MCAPI ::MCRESULT
const& MCRESULT_CommandExecIncomplete();
406MCAPI ::MCRESULT
const& MCRESULT_CommandNotFound();
408MCAPI ::MCRESULT
const& MCRESULT_CommandRequestInitiated();
410MCAPI ::MCRESULT
const& MCRESULT_CommandStepDone();
412MCAPI ::MCRESULT
const& MCRESULT_CommandStepFail();
414MCAPI ::MCRESULT
const& MCRESULT_CommandVersionMismatch();
416MCAPI ::MCRESULT
const& MCRESULT_CommandsDisabled();
418MCAPI ::MCRESULT
const& MCRESULT_EncryptionRequired();
420MCAPI ::MCRESULT
const& MCRESULT_ExecutionFail();
422MCAPI ::MCRESULT
const& MCRESULT_ExpectedRequestMsg();
424MCAPI ::MCRESULT
const& MCRESULT_FailWithoutFailMsg();
426MCAPI ::MCRESULT
const& MCRESULT_FailedToParseCommand();
428MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandCall();
430MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandContext();
432MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandOrigin();
434MCAPI ::MCRESULT
const& MCRESULT_InvalidOverloadSyntax();
436MCAPI ::MCRESULT
const& MCRESULT_MalformedRequest();
438MCAPI ::MCRESULT
const& MCRESULT_MustSpecifyVersion();
440MCAPI ::MCRESULT
const& MCRESULT_NewCommandVersionAvailable();
442MCAPI ::MCRESULT
const& MCRESULT_NoChatPermissions();
444MCAPI ::MCRESULT
const& MCRESULT_NoTargetsFound();
446MCAPI ::MCRESULT
const& MCRESULT_NotEnoughPermissions();
448MCAPI ::MCRESULT
const& MCRESULT_Success();
450MCAPI ::MCRESULT
const& MCRESULT_TooManyPendingRequests();
452MCAPI ::MCRESULT
const& MCRESULT_VersionMismatch();
454MCAPI ::SemVersionConstant
const& MIN_ENGINE_VERSION_MINIMUM_V2();
456MCAPI ::std::unordered_map<
457 ::glTF::Material::AlphaMode,
460 ::std::equal_to<::glTF::Material::AlphaMode>>
const&
461MaterialAlphaModeEnumMap();
463MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_BITSET();
465MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_SPEED_ATTRIBUTE_BITSET();
467MCAPI ::HashedString
const& SMOKER_TAG();
469MCAPI ::HashedString
const& SOUL_CAMPFIRE_TAG();
475MCAPI ::std::unordered_map<
476 ::TextProcessingEventOrigin,
479 ::std::equal_to<::TextProcessingEventOrigin>>
const&
480TextProcessingEventOriginEnumMap();
482MCAPI ::std::array<::HashedString, 17>
const& VanillaStructureFeatureTypes();
484MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _environmentSubfilters();
486MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _legacyPredicates();
488MCAPI ::std::unordered_map<int, ::std::string>
const& discoveryEnvironmentLabels();
490MCAPI ::std::unordered_map<::std::string, ::DiscoveryEnvironment>
const& discoveryEnvironmentStrings();
492MCAPI ::std::unordered_map<::DiscoveryEnvironment, ::std::string>
const& discoveryEnvironments();
494MCAPI ::std::add_lvalue_reference_t<uint[]> englishCharacterFrequencies();
496MCAPI ::std::vector<::std::string>& gAreaFilters();
498MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Biome>>& gBiomeChunkGC();
500MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Block>>& gBlockStorageGC();
502MCAPI ::InternalTaskGroup& gInternalTaskGroup();
504MCAPI ::SubChunkDelayedDeleter<::SubChunkBrightnessStorage>& gLightStorageGC();
506MCAPI ::std::vector<::std::string>& gPriorityFilters();
508MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64, uint)> g_memAllocFunc();
510MCAPI ::std::add_lvalue_reference_t<void (*)(
void*, uint)> g_memFreeFunc();
512MCAPI ::HCTraceImplArea& g_traceHTTPCLIENT();
514MCAPI ::HCTraceImplArea& g_traceWEBSOCKET();
516MCAPI ::std::add_lvalue_reference_t<void (*)(
char const*, long)> notifyOutOfMemory();
518MCAPI ::std::unordered_map<uint64, ::std::pair<::std::pair<::std::string, ::std::string>, ::std::string>>&
521MCAPI ::std::add_lvalue_reference_t<void (*)(
void*,
char const*, uint)> rakFree_Ex();
523MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64,
char const*, uint)> rakMalloc_Ex();
525MCAPI ::std::add_lvalue_reference_t<
void* (*)(
void*, uint64,
char const*, uint)> rakRealloc_Ex();
527MCAPI ::std::add_lvalue_reference_t<::DynDnsResult[]> resultTable();
529MCAPI
bool& s_AsyncLibEnablePumpingWait();
531MCAPI ::std::atomic<uint>& s_AsyncLibGlobalStateCount();
533MCAPI ::std::add_lvalue_reference_t<::TypeMapping[]> typeMappings();
Definition ActorOwnerComponent.h:10
Definition BiomeArea.h:11
Definition BlockLegacy.h:88
Definition BlockSource.h:67
Definition BlockState.h:11
Definition BoundingBox.h:18
Definition BribeableComponent.h:13
Definition CircuitComponentList.h:12
Definition CircuitSceneGraph.h:19
Definition CircuitTrackingInfo.h:14
Definition DefinitionTrigger.h:10
Definition Dimension.h:83
Definition EntityModifier.h:6
Definition GatheringServerInfo.h:5
Definition HashedString.h:5
Definition IFileAccess.h:15
Definition InternalTaskGroup.h:18
Definition ItemInstance.h:16
Definition LeashFenceKnotActor.h:20
Definition LevelData.h:48
Definition RakPeerInterface.h:32
Definition RecipeIngredient.h:17
Definition SemVersionBase.h:6
Definition SemVersionConstant.h:8
Definition StrictEntityContext.h:10
Definition SubChunkBrightnessStorage.h:5
Definition ThirdPartyInfo.h:5
Definition WorkerPool.h:19
Definition _HeaderOutputPredefine.h:179
Definition http_stl_allocator.h:6
Definition AccessorTypeEnumHasher.h:5
Definition ActorDefinitionIdentifier.h:13
Definition ActorFactoryData.h:5
Definition ActorMapping.h:8
Definition AssertHandlerContext.h:5
Definition BlockLayer.h:5
Definition DynDnsResult.h:5
Definition HCTraceImplArea.h:5
Definition ImageMimeTypeEnumHasher.h:5
Definition KeyOrNameResult.h:5
Definition MapItemSavedData.h:41
Definition MaterialAlphaModeEnumHasher.h:5
Definition MobOnPlayerJumpRequestComponent.h:5
Definition RakPeerConfiguration.h:7
Definition ScatterParamsMolangVariableIndices.h:5
Definition SendPacketsComponent.h:11
Definition TextProcessingEventOriginEnumHasher.h:5
Definition ThreadConfiguration.h:5
Definition TypeMapping.h:5
Definition WorkerConfiguration.h:8
Definition ReflectionCtx.h:11
Definition srtp_auth_t.h:5