Class TownyGroupResponse

java.lang.Object
io.github.projectunified.unigroup.towny.TownyGroupResponse
All Implemented Interfaces:
GroupResponse

public class TownyGroupResponse extends Object implements GroupResponse
  • Constructor Details

  • Method Details

    • error

      public Throwable error()
      Description copied from interface: GroupResponse
      Get the error when constructing or querying the group.
      Specified by:
      error in interface GroupResponse
      Returns:
      the optional throwable error
    • handled

      public boolean handled()
      Description copied from interface: GroupResponse
      Check if the group query can be handled by the provider.
      Specified by:
      handled in interface GroupResponse
      Returns:
      true if handled, otherwise false
    • group

      public Group group()
      Description copied from interface: GroupResponse
      Get the group interface object.
      Specified by:
      group in interface GroupResponse
      Returns:
      the group interface object, or null if not handled or error