PaperMC / PaperLib

Plugin Library for interfacing with Paper Specific API's with graceful fallback that maintains Spigot Compatibility, such as Async Chunk Loading.
MIT License
268 stars 32 forks source link

Added APIs for blockstate and update #2

Closed me4502 closed 5 years ago

me4502 commented 5 years ago

Update is included here because you have to update Spigot states, whereas you don't need to update Paper non-snapshot states. Due to this, you can use it rather than the update method, and if it needs an update it'll update it.

aikar commented 5 years ago

@me4502 I've updated the PR for you and updated it to the latest feature based handler method.

I decided to use a result wrapper so we can know "is this a snapshot or not", as Pre ver 1.12 it's also not a snapshot.

Let me know if you think we need anything more, or PR another round up.

me4502 commented 5 years ago

Thanks