NucleoidMC / plasmid

Server-side minigame development library based on Fabric.
GNU Lesser General Public License v3.0
88 stars 31 forks source link

Connectivity for two dimensions along a given plane #291

Closed haykam821 closed 5 days ago

haykam821 commented 5 months ago

The BlockTraversal utilities are primarily meant for three dimensions, but often only two dimensions need to be traversed, such as to flood-fill the floor of a map. 4-connectivity and 8-connectivity could be supported, with variants for each three-dimensional axis. Alternatively, only the XZ-plane needs to be supported.

Note that the BlockTraversal.Connectivity.create method is not public, so custom connectivities cannot be used.

haykam821 commented 5 days ago

This feature was implemented by #306.