This PR changes the approach of implementing MapView for RenderedMap. The class no longer delegates to its internal MapView and instead provides a regular accessor. The consequence of this is that the code does not break anymore when the MapView interface changes, which was the main reason for the previous version policy.
Additionally, this should finally fix #3 . Instead of manually creating the MapMeta in the affected code, this is now left to the getItemMeta() method of ItemStack. This should work on all versions.
Also, the RenderedMap#give method has been removed, since it does not serve any real purpose and really is just there to show in examples. It adds nothing to the class and only pollutes the API.
The gradle build file has been cleaned up. The shadow plugin is no longer there, and java-library is now used instead of java. As this PR introduces many breaking changes, the version has been bumped to 2.0. A github release will be created for this once it's ready.
This PR changes the approach of implementing
MapView
forRenderedMap
. The class no longer delegates to its internalMapView
and instead provides a regular accessor. The consequence of this is that the code does not break anymore when theMapView
interface changes, which was the main reason for the previous version policy.Additionally, this should finally fix #3 . Instead of manually creating the
MapMeta
in the affected code, this is now left to thegetItemMeta()
method ofItemStack
. This should work on all versions.Also, the
RenderedMap#give
method has been removed, since it does not serve any real purpose and really is just there to show in examples. It adds nothing to the class and only pollutes the API.The gradle build file has been cleaned up. The shadow plugin is no longer there, and
java-library
is now used instead ofjava
. As this PR introduces many breaking changes, the version has been bumped to2.0
. A github release will be created for this once it's ready.Changes that still need to be made: