Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
VoxelShapes::VoxelShapeRegistry Class Reference

Public Member Functions

MCAPI::VoxelShapes::RegistryHandle _insertOrFindDuplicate (::VoxelShapes::VoxelShape &&shape, bool isVanillaShape)
MCAPI::VoxelShapes::RegistryHandle getHandleByName (::HashedString const &name) const
MCAPI bool hasName (::HashedString const &name) const
MCAPI void initialize ()

Static Public Member Functions

static MCAPI bool _computeIsCubeShapeEquivalent (::VoxelShapes::VoxelShape const &shape)
static MCAPI ::HashedString const & EMPTY_ID ()
static MCAPI ::HashedString const & UNIT_CUBE_ID ()

Public Attributes

::ll::TypedStorage< 1, 1, bool > mInitialized
::ll::TypedStorage< 2, 2, ::VoxelShapes::RegistryHandle > mEmptyShapeHandle
::ll::TypedStorage< 2, 2, ::VoxelShapes::RegistryHandle > mUnitCubeShapeHandle
::ll::TypedStorage< 8, 8, uint64 > mVanillaShapes
::ll::TypedStorage< 8, 8, uint64 > mCustomShapes
::ll::TypedStorage< 8, 24, ::std::vector<::VoxelShapes::VoxelShape > > mVoxelShapes
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::VoxelShapes::RegistryHandle > > mNameMap

Member Function Documentation

◆ _insertOrFindDuplicate()

MCAPI::VoxelShapes::RegistryHandle VoxelShapes::VoxelShapeRegistry::_insertOrFindDuplicate ( ::VoxelShapes::VoxelShape && shape,
bool isVanillaShape )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getHandleByName()

MCAPI::VoxelShapes::RegistryHandle VoxelShapes::VoxelShapeRegistry::getHandleByName ( ::HashedString const & name) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ hasName()

MCAPI bool VoxelShapes::VoxelShapeRegistry::hasName ( ::HashedString const & name) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _computeIsCubeShapeEquivalent()

MCAPI bool VoxelShapes::VoxelShapeRegistry::_computeIsCubeShapeEquivalent ( ::VoxelShapes::VoxelShape const & shape)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ EMPTY_ID()

MCAPI ::HashedString const & VoxelShapes::VoxelShapeRegistry::EMPTY_ID ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ UNIT_CUBE_ID()

MCAPI ::HashedString const & VoxelShapes::VoxelShapeRegistry::UNIT_CUBE_ID ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: