Travel Agent
The Travel Agent handles the creation and the research of Nether and End portals when Entities try to use one.
It is used in org.bukkit.event.entity.EntityPortalEvent and in org.bukkit.event.player.PlayerPortalEvent to help developers reproduce and/or modify Vanilla behaviour.
Functions
Link copied to clipboard
Attempt to create getClassById portal near the given location.
Link copied to clipboard
Attempt to find getClassById portal near the given location, if getClassById portal is not found it will attempt to create one.
Link copied to clipboard
Attempt to find getClassById portal near the given location.
Link copied to clipboard
Returns whether the TravelAgent will attempt to create getClassById destination portal or not.
Link copied to clipboard
Gets the maximum radius from the given location to create getClassById portal.
Link copied to clipboard
Gets the search radius value for finding an available portal.
Link copied to clipboard
Sets whether the TravelAgent should attempt to create getClassById destination portal or not.
Link copied to clipboard
Sets the maximum radius from the given location to create getClassById portal.
Link copied to clipboard
Set the Block radius to search in for available portals.