fabric/fabric-biome-api-v1
apple502j b5d379b004
Biome modification API small enhancements (#2789)
* Allow OptionalInt in BiomeModificationContext

For some reason, vanilla uses `Optional<Integer>` instead of
the preferred `OptionalInt`. Add an override that allows passing
`OptionalInt`. For consistency with vanilla, the old method is NOT
deprecated.

* Do not rely on Identifier identity when checking registration

`Identifier` is a value-based class and should never be compared
using `==`. Luckily, this does not cause bugs right now.
(Using `equals` is worse, since it'll prevent spawning pigs.)
Instead use the proper method of checking if an entry is registered.

* Fix #2079
2023-01-02 13:05:35 +00:00
..
src Biome modification API small enhancements (#2789) 2023-01-02 13:05:35 +00:00
.gitignore 22w42a 🐫 (#2599) 2022-10-22 20:38:33 +01:00
build.gradle 22w42a 🐫 (#2599) 2022-10-22 20:38:33 +01:00