Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SimpleBlockVolume Class Reference
Inheritance diagram for SimpleBlockVolume:

Classes

class  allocator

Public Types

enum class  CornerIndex : uchar {
  FrontBottomLeft = 0 , BackBottomLeft = 1 , FrontTopLeft = 2 , BackTopLeft = 3 ,
  FrontBottomRight = 4 , BackBottomRight = 5 , FrontTopRight = 6 , BackTopRight = 7
}
enum class  IntersectionResult : int { Disjoint = 0 , Contains = 1 , Intersects = 2 }
using CornerHandle = uchar

Public Member Functions

virtual::BlockPos getMin () const
virtual::BlockPos getMax () const
virtual::BoundingBox getBoundingBox () const
virtual::glm::ivec3 getSpan () const
virtual int getCapacity () const
virtual bool isInside (::BlockPos const &pos) const
virtual void translate (::BlockPos const &delta)
virtual void forEach (::brstd::function_ref< bool(::BlockPos const &)> callback) const
virtual ::std::set<::ChunkPos > getChunks () const
virtual ::std::unordered_set<::BlockPos > getFlattenedBlockPositions () const
virtual ::std::unique_ptr<::BaseBlockLocationIterator > getIterator () const
MCAPI bool doesAreaTouchFaces (::BlockPos const &min, ::BlockPos const &max) const
MCAPI::SimpleBlockVolume::IntersectionResult intersects (::SimpleBlockVolume const &other) const
MCAPI::BlockPos $getMin () const
MCAPI::BlockPos $getMax () const
MCAPI::BoundingBox $getBoundingBox () const
MCAPI::glm::ivec3 $getSpan () const
MCAPI int $getCapacity () const
MCAPI bool $isInside (::BlockPos const &pos) const
MCAPI void $translate (::BlockPos const &delta)
MCAPI void $forEach (::brstd::function_ref< bool(::BlockPos const &)> callback) const
MCAPI ::std::set<::ChunkPos > $getChunks () const
MCAPI ::std::unordered_set<::BlockPos > $getFlattenedBlockPositions () const
MCAPI ::std::unique_ptr<::BaseBlockLocationIterator > $getIterator () const

Static Public Member Functions

static MCAPI void cerealBindTypes (::cereal::ReflectionCtx &ctx)
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 12, ::BlockPos > mFrom
::ll::TypedStorage< 4, 12, ::BlockPos > mTo

Member Function Documentation

◆ getMin()

virtual::BlockPos SimpleBlockVolume::getMin ( ) const
virtual

Implements BlockVolumeBase.

◆ getMax()

virtual::BlockPos SimpleBlockVolume::getMax ( ) const
virtual

Implements BlockVolumeBase.

◆ getBoundingBox()

virtual::BoundingBox SimpleBlockVolume::getBoundingBox ( ) const
virtual

Implements BlockVolumeBase.

◆ getSpan()

virtual::glm::ivec3 SimpleBlockVolume::getSpan ( ) const
virtual

Implements BlockVolumeBase.

◆ getCapacity()

virtual int SimpleBlockVolume::getCapacity ( ) const
virtual

Implements BlockVolumeBase.

◆ isInside()

virtual bool SimpleBlockVolume::isInside ( ::BlockPos const & pos) const
virtual

Implements BlockVolumeBase.

◆ translate()

virtual void SimpleBlockVolume::translate ( ::BlockPos const & delta)
virtual

Implements BlockVolumeBase.

◆ forEach()

virtual void SimpleBlockVolume::forEach ( ::brstd::function_ref< bool(::BlockPos const &)> callback) const
virtual

Implements BlockVolumeBase.

◆ getChunks()

virtual ::std::set<::ChunkPos > SimpleBlockVolume::getChunks ( ) const
virtual

Implements BlockVolumeBase.

◆ getFlattenedBlockPositions()

virtual ::std::unordered_set<::BlockPos > SimpleBlockVolume::getFlattenedBlockPositions ( ) const
virtual

Implements BlockVolumeBase.

◆ getIterator()

virtual ::std::unique_ptr<::BaseBlockLocationIterator > SimpleBlockVolume::getIterator ( ) const
virtual

Implements BlockVolumeBase.

◆ doesAreaTouchFaces()

MCAPI bool SimpleBlockVolume::doesAreaTouchFaces ( ::BlockPos const & min,
::BlockPos const & max ) 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.

◆ intersects()

MCAPI::SimpleBlockVolume::IntersectionResult SimpleBlockVolume::intersects ( ::SimpleBlockVolume const & other) 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.

◆ cerealBindTypes()

MCAPI void SimpleBlockVolume::cerealBindTypes ( ::cereal::ReflectionCtx & ctx)
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.

◆ $getMin()

MCAPI::BlockPos SimpleBlockVolume::$getMin ( ) 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.

◆ $getMax()

MCAPI::BlockPos SimpleBlockVolume::$getMax ( ) 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.

◆ $getBoundingBox()

MCAPI::BoundingBox SimpleBlockVolume::$getBoundingBox ( ) 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.

◆ $getSpan()

MCAPI::glm::ivec3 SimpleBlockVolume::$getSpan ( ) 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.

◆ $getCapacity()

MCAPI int SimpleBlockVolume::$getCapacity ( ) 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.

◆ $isInside()

MCAPI bool SimpleBlockVolume::$isInside ( ::BlockPos const & pos) 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.

◆ $translate()

MCAPI void SimpleBlockVolume::$translate ( ::BlockPos const & delta)
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.

◆ $forEach()

MCAPI void SimpleBlockVolume::$forEach ( ::brstd::function_ref< bool(::BlockPos const &)> callback) 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.

◆ $getChunks()

MCAPI ::std::set<::ChunkPos > SimpleBlockVolume::$getChunks ( ) 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.

◆ $getFlattenedBlockPositions()

MCAPI ::std::unordered_set<::BlockPos > SimpleBlockVolume::$getFlattenedBlockPositions ( ) 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.

◆ $getIterator()

MCAPI ::std::unique_ptr<::BaseBlockLocationIterator > SimpleBlockVolume::$getIterator ( ) 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.

◆ $vftable()

MCAPI void ** SimpleBlockVolume::$vftable ( )
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: