LeviLamina
Loading...
Searching...
No Matches
VoxelShapeLoader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/puv/LoadResult.h"
7#include "mc/deps/resource_processing/category/CategoryLoader.h"
8#include "mc/deps/resource_processing/category/SharedSlicesTraits.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class HashedString;
16namespace SharedTypes::v1_21_110 { struct VoxelShapeDocument; }
17namespace VoxelShapes { class VoxelShapeRegistry; }
18namespace cereal { struct ReflectionCtx; }
19// clang-format on
20
21class VoxelShapeLoader {
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 VoxelShapeLoader& operator=(VoxelShapeLoader const&);
32 VoxelShapeLoader(VoxelShapeLoader const&);
33 VoxelShapeLoader();
34
35public:
36 // member functions
37 // NOLINTBEGIN
39
40 MCNAPI ::Puv::LoadResult<::SharedTypes::v1_21_110::VoxelShapeDocument> _loadVoxelShape(
41 ::std::string const& filenameWithExtension,
42 ::std::string&& fileData,
44 bool isBaseGamePack
45 );
46
47 MCNAPI void loadResources(
48 ::ResourcePackManager const& packManager,
50 ::IMinecraftEventing& eventing
51 );
52
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
60 ::HashedString const& shapeName,
62 ::std::vector<::AABB>& resultAABBs
63 );
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCNAPI void $dtor();
76 // NOLINTEND
77};
Definition AABB.h:18
Definition HashedString.h:5
Definition IMinecraftEventing.h:138
Definition ResourcePackManager.h:35
MCAPI void $dtor()
MCAPI ::Puv::LoadResult<::SharedTypes::v1_21_110::VoxelShapeDocument > _loadVoxelShape(::std::string const &filenameWithExtension, ::std::string &&fileData, ::VoxelShapes::VoxelShapeRegistry &shapeRegistry, bool isBaseGamePack)
MCAPI void loadResources(::ResourcePackManager const &packManager, ::VoxelShapes::VoxelShapeRegistry &shapeRegistry, ::IMinecraftEventing &eventing)
MCAPI VoxelShapeLoader(::cereal::ReflectionCtx &ctx)
static MCAPI bool _validateDocumentAndConvertToAABBs(::HashedString const &shapeName, ::SharedTypes::v1_21_110::VoxelShapeDocument const &doc, ::std::vector<::AABB > &resultAABBs)
MCAPI void * $ctor(::cereal::ReflectionCtx &ctx)
MCAPI ~VoxelShapeLoader()
Definition VoxelShapeRegistry.h:14
Definition VoxelShapeDocument.h:17
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14