Add query methods to get values from MapFlags#1650
Conversation
|
Should be helpful for #417 |
|
Think I'm going to have to double/triple-check the logic and docs here, as there's a lot of weird edge cases to cover. Possibly we should have some tests for this. |
With the new methods in RegionQuery it should be easy to check for a MapFlag with a fallback flag. I added a method RegionQuery#testBuild for a method with MapFlag. |
|
There's some lingering javadoc and formatting issues but the implementation looks complete, so I'm going to merge this now while I'm looking at stuff since who knows when I'll look next. |
I added some query methods to query value from MapFlags.
Usage:
The regions are overlapping. Flag
item-pickupis set to deny, so nobody can pickup items by default. The flagitem-material-pickupis set on two regions:The implementation does work with region inheritance and region priorities. It does search for the matched key with the highest priority.