BetterWaypointsAPI - AlonsoAliaga/BetterWaypoints GitHub Wiki

BetterWaypointsAPI

BetterWaypointsAPI can be used to make some checks easily.

com.alonsoaliaga.betterwaypoints.api.BetterWaypointsAPI

Available methods

@Nullable ItemStack createWaypointPaper(@Nonnull Location location)

  • Create waypoint with location saved. (Returns null if location or world is null).

ItemStack createWaypointPaper()

  • Create a waypoint paper.

ItemStack createWaypointPaper(int amount)

  • Create specific amount of waypoint papers.

ItemStack createWaypointBook()

  • Create a waypoint book.

List<ItemStack> createWaypointBook(int amount)

  • Create specific amount of waypoint books.

Available events

WaypointBookOpenEvent

  • When player opens a waypoint book.

WaypointSaveEvent

  • When player closes waypoint book inventory.

WaypointTeleportEvent

  • When player uses waypoint book to teleport.

WaypointBookCraftEvent

  • When player crafts a waypoint book.

WaypointPaperCraftEvent

  • When player crafts a waypoint paper.
⚠️ **GitHub.com Fallback** ⚠️