SkyblockAPIHook.java 748 B

123456789101112131415161718192021222324252627282930313233
  1. package xyz.spaceio.hooks;
  2. import java.util.Optional;
  3. import java.util.UUID;
  4. import org.bukkit.Location;
  5. import org.bukkit.World;
  6. public interface SkyblockAPIHook {
  7. /**
  8. * Returns the island level for a defined player uuid
  9. *
  10. * @param uuid UUID of the island owner
  11. * @param in World world of the island
  12. * @return island level
  13. */
  14. public int getIslandLevel(UUID uuid, String inWorld);
  15. /**
  16. * Gets the owner of an island on a certain location
  17. *
  18. * @param loc location to check for island
  19. * @return island owner UUID
  20. */
  21. public Optional<UUID> getIslandOwner(Location loc);
  22. /**
  23. * Obtains the names of the skyblock worlds
  24. *
  25. * @return the names of the skyblock worlds
  26. */
  27. public String[] getSkyBlockWorldNames();
  28. }