Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Improve GameRule API

Open Machine-Maker opened this issue 2 years ago • 8 comments

Getting a gamerule's default value shouldn't be tied to needing a world instance since it's the same without a world. Also, the methods to get the gamerule's value for a world and default world should be notnull, so the methods I added to GameRule to get/set the world have an Objects.requireNonNull wrapped around them.

Machine-Maker avatar Jan 01 '22 23:01 Machine-Maker