LeviLamina
Loading...
Searching...
No Matches
RenderChunkCoordinator Class Reference
Inheritance diagram for RenderChunkCoordinator:

Classes

struct  DirtyChunkData

Public Types

using RenderChunkMapType = ::std::unordered_map<::SubChunkPos, ::std::weak_ptr<::RenderChunkShared>>

Public Member Functions

RenderChunkCoordinatoroperator= (RenderChunkCoordinator const &)
 RenderChunkCoordinator (RenderChunkCoordinator const &)
virtual void onChunkLoaded (::ChunkSource &source, ::LevelChunk &lc)
virtual void onSubChunkLoaded (::ChunkSource &, ::LevelChunk &lc, short absoluteSubChunkIndex, bool subChunkVisibilityChanged)
virtual void onBrightnessChanged (::BlockSource &source, ::BlockPos const &pos)
virtual void onAreaChanged (::BlockSource &source, ::BlockPos const &min, ::BlockPos const &max)
virtual void onBlockChanged (::BlockSource &source, ::BlockPos const &pos, uint layer, ::Block const &block, ::Block const &oldBlock, int updateFlags, ::ActorBlockSyncMessage const *syncMsg, ::BlockChangedEventTarget eventTarget, ::Actor *blockChangeSource)
MCAPI RenderChunkCoordinator (::Level &level, ::LevelRenderer &levelRenderer, ::DimensionType dimensionID)
MCAPI void _handleVisibilityUpdates ()
MCAPI void _launchVisibilityRebuild (::std::shared_ptr<::RenderChunkShared > &renderChunkShared)
MCAPI void _notifyListenersForImmediateRenderChunkChange (::SubChunkPos const &rcp)
MCAPI void _notifyListenersForVisibilityChange (::RenderChunkShared &renderChunkShared)
MCAPI void _setAllDirty (bool immediate, bool changesVisibility)
MCAPI void _setDirty (::BlockPos const &min, ::BlockPos const &max, bool immediate, bool changesVisibility, bool canInterlock)
MCAPI ::std::shared_ptr<::RenderChunkSharedgetOrCreateChunkAtPos (::SubChunkPos const &pos)
MCAPI uint64 getRenderChunkGeometryFaceMetadataMemoryUsed () const
MCAPI uint64 getRenderChunkInstancedCount () const
MCAPI uint64 getRenderChunkInstancedDifferentGeoCount () const
MCAPI uint64 getRenderChunkInstancedIndexMemoryUsed () const
MCAPI uint64 getRenderChunkSharedMemoryUsed () const
MCAPI void relightAllRenderChunkGeometry ()
MCAPI void tick ()
MCAPI void * $ctor (::Level &level, ::LevelRenderer &levelRenderer, ::DimensionType dimensionID)
MCAPI void $dtor ()
MCAPI void $onChunkLoaded (::ChunkSource &source, ::LevelChunk &lc)
MCAPI void $onSubChunkLoaded (::ChunkSource &, ::LevelChunk &lc, short absoluteSubChunkIndex, bool subChunkVisibilityChanged)
MCAPI void $onBrightnessChanged (::BlockSource &source, ::BlockPos const &pos)
MCAPI void $onAreaChanged (::BlockSource &source, ::BlockPos const &min, ::BlockPos const &max)
MCAPI void $onBlockChanged (::BlockSource &source, ::BlockPos const &pos, uint layer, ::Block const &block, ::Block const &oldBlock, int updateFlags, ::ActorBlockSyncMessage const *syncMsg, ::BlockChangedEventTarget eventTarget, ::Actor *blockChangeSource)
virtual void allChanged ()
virtual void sendServerLegacyParticle (::ParticleType, ::Vec3 const &, ::Vec3 const &, int)
virtual void addParticleEffect (::HashedString const &, ::Actor const &, ::HashedString const &, ::Vec3 const &, ::MolangVariableMap const &)
virtual void addTerrainParticleEffect (::BlockPos const &, ::Block const &, ::Vec3 const &, float, float, float)
virtual void addTerrainSlideEffect (::BlockPos const &, ::Block const &, ::Vec3 const &, float, float, float)
virtual void addBreakingItemParticleEffect (::Vec3 const &, ::BreakingItemParticleData const &, ::ResolvedItemIconInfo const &)
virtual void addBiomeTintedParticleEffect (::HashedString const &, ::BlockPos const &, ::Block const &, ::std::optional<::mce::Color >)
virtual void playMusic (::std::string const &, ::Vec3 const &, float, float)
virtual void playStreamingMusic (::std::string const &, int, int, int)
virtual void onEntityAdded (::Actor &)
virtual void onEntityRemoved (::Actor &)
virtual void onChunkReloaded (::ChunkSource &, ::LevelChunk &)
virtual void onChunkUnloaded (::LevelChunk &)
virtual void onLevelDestruction (::std::string const &)
virtual void levelEvent (::SharedTypes::Legacy::LevelEvent, ::Vec3 const &, int)
virtual void levelEvent (::SharedTypes::Legacy::LevelEvent, ::CompoundTag const &)
virtual void takePicture (::cg::ImageBuffer &, ::Actor *, ::Actor *, ::ScreenshotOptions &, ::std::function< void(::cg::ImageBuffer &, ::ScreenshotOptions &)>)
virtual void playerListChanged ()
virtual void onLevelDataCommandsChanged (bool)
virtual void onLevelDataWorldTemplateOptionsUnlocked ()
MCFOLD void $allChanged ()
MCFOLD void $sendServerLegacyParticle (::ParticleType, ::Vec3 const &, ::Vec3 const &, int)
MCFOLD void $addParticleEffect (::HashedString const &, ::Actor const &, ::HashedString const &, ::Vec3 const &, ::MolangVariableMap const &)
MCFOLD void $addTerrainParticleEffect (::BlockPos const &, ::Block const &, ::Vec3 const &, float, float, float)
MCFOLD void $addTerrainSlideEffect (::BlockPos const &, ::Block const &, ::Vec3 const &, float, float, float)
MCFOLD void $addBreakingItemParticleEffect (::Vec3 const &, ::BreakingItemParticleData const &, ::ResolvedItemIconInfo const &)
MCFOLD void $addBiomeTintedParticleEffect (::HashedString const &, ::BlockPos const &, ::Block const &, ::std::optional<::mce::Color >)
MCFOLD void $playMusic (::std::string const &, ::Vec3 const &, float, float)
MCFOLD void $playStreamingMusic (::std::string const &, int, int, int)
MCFOLD void $onEntityAdded (::Actor &)
MCFOLD void $onEntityRemoved (::Actor &)
MCFOLD void $onChunkReloaded (::ChunkSource &, ::LevelChunk &)
MCFOLD void $onChunkUnloaded (::LevelChunk &)
MCFOLD void $onLevelDestruction (::std::string const &)
MCAPI void $takePicture (::cg::ImageBuffer &, ::Actor *, ::Actor *, ::ScreenshotOptions &, ::std::function< void(::cg::ImageBuffer &, ::ScreenshotOptions &)>)
MCFOLD void $playerListChanged ()
MCFOLD void $onLevelDataCommandsChanged (bool)
MCFOLD void $onLevelDataWorldTemplateOptionsUnlocked ()
virtual void onSourceCreated (::BlockSource &source)
virtual void onSourceDestroyed (::BlockSource &source)
virtual void onBlockEntityChanged (::BlockSource &source, ::BlockActor &te)
virtual void onEntityChanged (::BlockSource &source, ::Actor &entity)
virtual void onBlockEvent (::BlockSource &source, int x, int y, int z, int b0, int b1)
MCFOLD void $onSourceCreated (::BlockSource &source)
MCFOLD void $onSourceDestroyed (::BlockSource &source)
MCFOLD void $onBlockEntityChanged (::BlockSource &source, ::BlockActor &te)
MCFOLD void $onEntityChanged (::BlockSource &source, ::Actor &entity)
MCFOLD void $onBlockEvent (::BlockSource &source, int x, int y, int z, int b0, int b1)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 4, float > mSweepAndPruneRatio
::ll::TypedStorage< 8, 8, ::std::_List_const_iterator<::std::_List_val< ::std::_List_simple_types<::std::pair<::SubChunkPos const, ::std::weak_ptr<::RenderChunkShared > > > > > > mSweepAndPruneIterator
::ll::TypedStorage< 8, 64, ::std::unordered_map<::SubChunkPos, ::std::weak_ptr<::RenderChunkShared > > > mRenderChunkSharedMap
::ll::TypedStorage< 8, 8, ::Level & > mLevel
::ll::TypedStorage< 8, 8, ::LevelRenderer & > mLevelRenderer
::ll::TypedStorage< 8, 24, ::std::vector<::LevelRendererCamera * > > mLevelRendererCameraListenerList
::ll::TypedStorage< 4, 4, ::DimensionType > mDimensionId
::ll::TypedStorage< 8, 64, ::std::unordered_map<::SubChunkPos, ::RenderChunkCoordinator::DirtyChunkData > > mVisibilityDirtyRenderChunkMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::SubChunkPos, ::std::vector<::ActorBlockSyncMessage > > > mRenderChunkChangedEntityNotificationMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::SubChunkPos, ::std::vector<::BlockActorBlockSyncMessage > > > mRenderChunkChangedBlockEntityNotificationMap
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::RenderChunkCoordinatorProxy > > mProxy
::ll::TypedStorage< 8, 16, ::OwnerPtr<::RenderChunkPerformanceData > > mRenderChunkPerformanceRegistry
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::IRenderChunkGarbage > > mGarbage

Member Function Documentation

◆ onChunkLoaded()

virtual void RenderChunkCoordinator::onChunkLoaded ( ::ChunkSource & source,
::LevelChunk & lc )
virtual

Reimplemented from LevelListener.

◆ onSubChunkLoaded()

virtual void RenderChunkCoordinator::onSubChunkLoaded ( ::ChunkSource & ,
::LevelChunk & lc,
short absoluteSubChunkIndex,
bool subChunkVisibilityChanged )
virtual

Reimplemented from LevelListener.

◆ onBrightnessChanged()

virtual void RenderChunkCoordinator::onBrightnessChanged ( ::BlockSource & source,
::BlockPos const & pos )
virtual

Reimplemented from BlockSourceListener.

◆ onAreaChanged()

virtual void RenderChunkCoordinator::onAreaChanged ( ::BlockSource & source,
::BlockPos const & min,
::BlockPos const & max )
virtual

Reimplemented from BlockSourceListener.

◆ onBlockChanged()

virtual void RenderChunkCoordinator::onBlockChanged ( ::BlockSource & source,
::BlockPos const & pos,
uint layer,
::Block const & block,
::Block const & oldBlock,
int updateFlags,
::ActorBlockSyncMessage const * syncMsg,
::BlockChangedEventTarget eventTarget,
::Actor * blockChangeSource )
virtual

Reimplemented from BlockSourceListener.

◆ $vftable()

MCAPI void ** RenderChunkCoordinator::$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 files: