yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Rename ThreadedAnvilChunkStorage

Open apple502j opened this issue 2 years ago • 10 comments

This is from exposed mojang name, but the name is bad (not incorrect, but unfriendly). Being partially threaded and using Anvil chunk storage format is an implementation detail that does not warrant spending 13 letters. I replaced these 13 letters with another, coincidentally 13 letters, that explains much important parts of this class - being server-side and managing chunk storage. Hopefully this explains the relations with ServerChunkManager and other similarly named classes.

apple502j avatar May 14 '22 06:05 apple502j

How about just calling it ChunkStorage instead?

liach avatar May 14 '22 06:05 liach

@liach Hmm, that looks too short for an important class, and it's also weird if VersionedChunkStorage, etc was a parent of ChunkStorage.

ServerChunkStorage could work though.

apple502j avatar May 14 '22 07:05 apple502j

🚀 Target branch has been updated to 1.19-pre1

github-actions[bot] avatar May 18 '22 21:05 github-actions[bot]

🚀 Target branch has been updated to 1.19-pre2

github-actions[bot] avatar May 23 '22 17:05 github-actions[bot]

🚀 Target branch has been updated to 1.19-pre3

github-actions[bot] avatar May 25 '22 14:05 github-actions[bot]

🚀 Target branch has been updated to 1.19

github-actions[bot] avatar Jun 14 '22 03:06 github-actions[bot]

🚨 Please fix merge conflicts before this can be merged

github-actions[bot] avatar Jun 14 '22 03:06 github-actions[bot]

IMO the new name isn't good enough, it does quite a bit more than storing chunks with some runtime state and various worldgen features. The relationship with ServerChunkManager needs to be considered as well, it is a similar dumping ground.

sfPlayer1 avatar Jun 14 '22 17:06 sfPlayer1

@sfPlayer1 I understand this handles more than storage (e.g. entity loading, storing chunk generator) but the main purpose is that. I don't really see a better name for this (aside from maybe removing Manager suffix). Javadocs should disambiguate if necessary.

apple502j avatar Jun 14 '22 18:06 apple502j

🚀 Target branch has been updated to 1.19.1

github-actions[bot] avatar Jul 28 '22 17:07 github-actions[bot]

🚀 Target branch has been updated to 1.19.2

github-actions[bot] avatar Oct 05 '22 17:10 github-actions[bot]

🚀 Target branch has been updated to 22w42a

github-actions[bot] avatar Oct 20 '22 17:10 github-actions[bot]