Skip to content

ServerChunkCache#43

Merged
NotStirred merged 6 commits into1.20.4from
1.20.4_ServerChunkCache
May 13, 2025
Merged

ServerChunkCache#43
NotStirred merged 6 commits into1.20.4from
1.20.4_ServerChunkCache

Conversation

@CursedFlames
Copy link
Member

No description provided.

@CursedFlames CursedFlames requested a review from NotStirred March 12, 2025 12:53
Copy link
Member

@NotStirred NotStirred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm minor things
a bunch of methods aren't tested, I'll PR this pr adding the ones I think we should test.

Here are the methods that aren't tested and I don't think we can / need to test:
(lmk if you agree)

I'm adding tests now:

  • hasChunk
  • cc_hasCube
  • getChunkNow
  • cc_getCubeNow

Should test P2+:

  • blockChanged
  • cc_blockChanged
  • setSpawnSettings
  • onLightUpdate
  • tick
  • tickChunks + getFullChunk (only called in ticking)
  • cc_tickChunks
  • cc_getCubeForLighting
  • cc_onLightUpdate
  • cc_onTickChunks
  • isPositionTicking

Trivial:

  • getTickingGenerated
  • save
  • getPendingTasksCount
  • getGeneratorState
  • addEntity
  • removeEntity
  • getChunkDebugData
  • cc_getChunkDebugData
  • getChunkFuture exists, it's only used in debug code..?
  • cc_getCubeFuture
  • setViewDistance
  • setSimulationDistance
  • addRegionTicket
  • getMainThreadProcessor
  • gatherStats
  • chunkScanner
  • getLightEngine
  • move
  • addRegionTicket
  • removeRegionTicket
  • cc_addRegionTicket
  • cc_removeRegionTicket
  • removeTicketsOnClosing
  • pollTask
  • broadcast
  • getLastSpawnState
  • getDataStorage
  • broadcastAndSend
  • close
  • getLightEngine
  • cc_updateChunkForced
  • updateChunkForced
  • getLoadedChunksCount
  • getPoiManager
  • getGenerator

NotStirred and others added 3 commits May 13, 2025 23:09
Added for: vanilla, chunks in cubic context, and cubes.
Co-authored-by: Tom Martin <[email protected]>
Copy link
Member

@NotStirred NotStirred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@NotStirred
Copy link
Member

Build weirdness aside, merging (edbc5eb fails but the same commit succeeds here 8caea87)

@NotStirred NotStirred merged commit 1fa1225 into 1.20.4 May 13, 2025
1 check passed
@NotStirred NotStirred deleted the 1.20.4_ServerChunkCache branch May 13, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants