Interface CrewStoredVessel

All Superinterfaces:
org.core.world.position.Positionable<org.core.world.position.impl.BlockPosition>, Vessel
All Known Subinterfaces:
ShipsVessel
All Known Implementing Classes:
AbstractShipsVessel, Airship, Marsship, OPShip, Plane, Submarine, WaterShip

public interface CrewStoredVessel extends Vessel
specifies that the implementation of the vessel has crew with different roles
  • Method Details

    • getCrew

      Map<UUID,CrewPermission> getCrew()
      Gets the crew of the ship
      Returns:
      a Map value containing the UUID of the player and their permission status
    • getDefaultPermission

      CrewPermission getDefaultPermission()
      Gets the default crew permission for if the user who interacts with the ship is not specified within the map value above. This is not to be granted to the player in the map.
      Returns:
      the default permission
    • getPermission

      default CrewPermission getPermission(UUID user)
      Gets the permission of the user. Note that it will default to the default permission if no user was found
      Parameters:
      user - The player in question
      Returns:
      The permission the user has on this ship
    • getUserCrew

      default Set<org.core.entity.living.human.player.User> getUserCrew(CrewPermission permission)
      Gets all the users with a permission.
      Parameters:
      permission - The permission
      Returns:
      The users with the specific permission
    • getUserCrew

      default Set<org.core.entity.living.human.player.User> getUserCrew(String permissionId)
      Gets all the users with a permission.
      Parameters:
      permissionId - The permission
      Returns:
      The users with the specific permission
    • getCrew

      default Set<UUID> getCrew(CrewPermission permission)
      Gets all the users uuids with permission
      Parameters:
      permission - The permission
      Returns:
      The users uuids ith the specific permission
    • getCrew

      default Set<UUID> getCrew(String permissionId)
      Gets all the users uuids with permission
      Parameters:
      permissionId - The permission
      Returns:
      The users uuids ith the specific permission