ObsidianMC / Obsidian

A C# implementation of the Minecraft server protocol.
GNU General Public License v3.0
413 stars 42 forks source link

Improve BlockStateBuilders #415

Closed Tides closed 10 months ago

Tides commented 10 months ago

Instead of using strings to track the indexes of state properties, I opted to use a jagged array and a normal array to track state ids and state property indexes.

What pushed me to do this was this:

image

😅

New State Builder Old State Builder