SkyblockAPIHook.java 917 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. import org.bukkit.block.Block;
  7. public interface SkyblockAPIHook {
  8. /**
  9. * Returns the island level for a defined player uuid
  10. *
  11. * @param uuid UUID of the island owner
  12. * @param in World world of the island
  13. * @return island level
  14. */
  15. public int getIslandLevel(UUID uuid, String inWorld);
  16. /**
  17. * Gets the owner of an island on a certain location
  18. *
  19. * @param loc location to check for island
  20. * @return island owner UUID
  21. */
  22. public Optional<UUID> getIslandOwner(Location loc);
  23. /**
  24. * Obtains the names of the skyblock worlds
  25. *
  26. * @return the names of the skyblock worlds
  27. */
  28. public String[] getSkyBlockWorldNames();
  29. /*
  30. * Calls the specific SkyBlock-API to make it aware of a block placement
  31. *
  32. */
  33. public void sendBlockAcknowledge(Block block);
  34. }