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 &lc, ::LevelChunk &)
virtual void onSubChunkLoaded (::ChunkSource &lc, ::LevelChunk &absoluteSubChunkIndex, short subChunkVisibilityChanged, bool)
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 _setAllDirty (bool immediate, bool changesVisibility)
MCAPI void _setDirty (::BlockPos const &min, ::BlockPos const &max, bool immediate, bool changesVisibility, bool canInterlock)
MCAPI void addLevelRendererCameraListener (::LevelRendererCamera *levelRendererCamera)
MCAPI ::std::shared_ptr<::RenderChunkSharedgetOrCreateChunkAtPos (::SubChunkPos const &pos)
MCFOLD::RenderChunkCoordinatorProxy * getProxy ()
MCAPI uint64 getRenderChunkGeometryFaceMetadataMemoryUsed () const
MCAPI void preRenderTick ()
MCAPI void rebuildAllRenderChunkGeometry ()
MCAPI void relightAllRenderChunkGeometry ()
MCAPI void removeLevelRendererCameraListener (::LevelRendererCamera *levelRendererCamera)
MCAPI void tick ()
MCAPI void * $ctor (::Level &level, ::LevelRenderer &levelRenderer, ::DimensionType dimensionID)
MCAPI void $dtor ()
MCAPI void $onChunkLoaded (::ChunkSource &lc, ::LevelChunk &)
MCAPI void $onSubChunkLoaded (::ChunkSource &lc, ::LevelChunk &absoluteSubChunkIndex, short subChunkVisibilityChanged, bool)
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 &pos, ::Block const &block, ::Vec3 const &emitterPosition, float particleCount, float velocityScalar, float emitterRadius)
virtual void addTerrainSlideEffect (::BlockPos const &pos, ::Block const &block, ::Vec3 const &emitterPosition, float particleCount, float velocityScalar, float emitterRadius)
virtual void addBreakingItemParticleEffect (::Vec3 const &pos, ::BreakingItemParticleData const &data, ::ResolvedItemIconInfo const &textureInfo)
virtual void addBiomeTintedParticleEffect (::HashedString const &effect, ::BlockPos const &pos, ::Block const &block, ::std::optional<::mce::Color > overrideColor)
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 &entity)
virtual void onChunkReloaded (::ChunkSource &, ::LevelChunk &)
virtual void onChunkUnloaded (::LevelChunk &lc)
virtual void onLevelDestruction (::std::string const &levelId)
virtual void levelEvent (::SharedTypes::Legacy::LevelEvent type, ::Vec3 const &pos, int data)
virtual void levelEvent (::SharedTypes::Legacy::LevelEvent type, ::CompoundTag const &data)
virtual void takePicture (::cg::ImageBuffer &outImage, ::Actor *camera, ::Actor *target, ::ScreenshotOptions &screenshotOptions, ::std::function< void(::cg::ImageBuffer &, ::ScreenshotOptions &)> completedScreenshotCallback)
virtual void playerListChanged ()
virtual void onLevelDataCommandsChanged (bool commandsEnabeld)
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 &lc)
MCFOLD void $onLevelDestruction (::std::string const &)
MCFOLD void $levelEvent (::SharedTypes::Legacy::LevelEvent, ::Vec3 const &, int)
MCFOLD void $levelEvent (::SharedTypes::Legacy::LevelEvent, ::CompoundTag 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 bool shouldSetBlockAsDirty (::BlockPos const &pos, ::Block const &block, ::Block const &oldBlock, ::BlockPos &min, ::BlockPos &max, bool &changesVisibility)
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 & lc,
::LevelChunk &  )
virtual

Reimplemented from LevelListener.

◆ onSubChunkLoaded()

virtual void RenderChunkCoordinator::onSubChunkLoaded ( ::ChunkSource & lc,
::LevelChunk & absoluteSubChunkIndex,
short subChunkVisibilityChanged,
bool  )
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: