Interface MapInfo

    • Method Detail

      • isLinked

        boolean isLinked​(ItemStack itemStack)
        Gets whether the supplied ItemStack is backed by this MapInfo, such that modifications to this MapInfo would affect the supplied stack.

        This will always return false if the supplied ItemStack is not of type ItemTypes.FILLED_MAP.

        Parameters:
        itemStack - The ItemStack to check
        Returns:
        true if this MapInfo backs the supplied ItemStack
      • addBannerDecoration

        void addBannerDecoration​(ServerLocation bannerLocation)
                          throws java.lang.IllegalArgumentException
        Adds the banner at the given location to this map. This is equivalent to right clicking a banner in the world with the corresponding map.
        Parameters:
        bannerLocation - Location of the banner to add.
        Throws:
        java.lang.IllegalArgumentException - if the given location is not a banner
        java.lang.IllegalArgumentException - if the given banner