java.lang.Object
sawfowl.regionguard.implementsapi.Api
All Implemented Interfaces:
RegionAPI

public class Api extends Object implements RegionAPI
  • Nested Class Summary

    Nested classes/interfaces inherited from interface sawfowl.regionguard.api.RegionAPI

    RegionAPI.PostAPI
  • Constructor Summary

    Constructors
    Constructor
    Description
    Api(RegionGuard plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTempRegion(UUID user, Region region)
    Adding a temporary region
    void
    Adding a temporary region
    void
    Deleting a region.
    Search for the region with which the intersection occurs.
    findRegion(org.spongepowered.api.ResourceKey worldkey, org.spongepowered.math.vector.Vector3i position)
    Search for a region in the world using the specified coordinates.
    If the region contains child regions, the deepest child region will be returned.
    findRegion(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i position)
    Search for a region in the world using the specified coordinates.
    findRegion(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i position, Predicate<Region> filter)
    Search for a region in the world using the specified coordinates.
    void
     
    double
    getBuyBlockPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the value of the block price for the player.
    double
    getBuyClaimPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the value of the region price for the player.
    double
    getBuyMembersPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the value of the price of the region's participant limit increase.
    double
    getBuySubdivisionPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the value of the subdivision price for the player.
    long
    getClaimedBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the number of blocks that belong to the player.
    long
    getClaimedRegions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the number of regions belonging to the player.
    org.spongepowered.api.service.economy.Currency
    getCurrency(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the currency in which the player will perform the transaction.
    Get the default flags for a certain type of region.
    getGlobalRegion(org.spongepowered.api.ResourceKey worldkey)
    Get world region.
    getGlobalRegion(org.spongepowered.api.world.server.ServerWorld serverWorld)
    Get world region.
    long
    getLimitBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the limit of blocks that can claiming the player.
    long
    getLimitClaims(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the limit of regions that can claiming the player.
    long
    getLimitMaxBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    The maximum limit of blocks a player can claim.
    long
    getLimitMaxClaims(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    The maximum limit of regions a player can claim.
    long
    getLimitMaxMembers(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    The maximum limit of members of the player region..
    long
    getLimitMaxSubdivisions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    The maximum limit of child regions a player can create.
    long
    Getting the members limit for each region of a particular player.
    Each region has its own separate members limit.
    long
    getLimitMembers(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the members limit for each region of a particular player.
    Each region has its own separate members limit.
    long
    getLimitSubdivisions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the maximum number of child regions a player can create.
    int
    Get the minimum size of the region, which is set in the main configuration file.
    Getting limits and other information on the player.
    getPlayerData(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting limits and other information on the player.
    getPlayerRegions(UUID playerUUID)
    Obtaining all player regions.
    getPlayerRegions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Obtaining all player regions.
    Getting all registered regions except globals.
    Map<org.spongepowered.api.ResourceKey,Map<ChunkNumber,ArrayList<Region>>>
    Obtaining a map of regions by worlds.
    Getting all registered flags.
    Obtaining a type of region selector from the player.
    Getting the type of regions creating by the player.
    getSelectRegionType(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the type of regions creating by the player.
    double
    getSellBlockPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the value of the block price for the player.
    double
    getSellClaimPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the value of the region price for the player.
    double
    getSellMembersPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Getting the value of the price of the region members limit decrease.
    double
    getSellSubdivisionPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Get the value of the subdivision price for the player.
    Get a temporary region
    org.spongepowered.api.item.inventory.ItemStack
    Getting an item for selecting regions.
    Go to the API for visually highlighting regions with a mod on the WECui client.
    boolean
    isRegisteredGlobal(org.spongepowered.api.world.server.ServerWorld world)
     
    void
    registerFlag(String flagName, FlagConfig settings)
    FlagConfig registration.
    void
    Region registration.
    void
    Region registration in asynchronous mode.
    void
    Removing a temporary region
    void
    Removing a temporary region
    void
    Saving region data to disk.
    void
    Specifies the type of regions created by the player.
    void
    setCreatingRegionType(org.spongepowered.api.entity.living.player.server.ServerPlayer player, RegionTypes regionType)
    Specifies the type of regions created by the player.
    void
    setLimitBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
    Change the limit of blocks a player can claim.
    void
    setLimitClaims(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
    Set the number of regions a player can own.
    void
    setLimitMembers(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
    Set the number of players that each player region can contain.
    void
    setLimitSubdivisions(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
    Set a limit to the subdivisions a player can create.
    void
    setPlayerData(UUID player, PlayerData playerData)
    Setting limits and other information on the player.
    void
    setPlayerData(org.spongepowered.api.entity.living.player.server.ServerPlayer player, PlayerData playerData)
    Setting limits and other information on the player.
    void
    setSelectorType(UUID uuid, SelectorTypes selectorType)
    Set a type of region selector for the player.
    void
    setSelectorType(org.spongepowered.api.entity.living.player.server.ServerPlayer player, SelectorTypes selectorType)
    Set a type of region selector for the player.
    void
    Remove the region from the list of registered regions.
    This method will not remove the region from the disk.
    void
    updateGlobalRegionData(org.spongepowered.api.world.server.ServerWorld serverWorld, Region region)
    Update global region data.
    void
    Update cached data on regions and blocks claimed by the player.
    void
    updatePlayerData(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    Update cached data on regions and blocks claimed by the player.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • generateDefaultGlobalRegion

      public void generateDefaultGlobalRegion()
    • getRegisteredFlags

      public SortedMap<String,FlagConfig> getRegisteredFlags()
      Description copied from interface: RegionAPI
      Getting all registered flags.
      Specified by:
      getRegisteredFlags in interface RegionAPI
    • registerFlag

      public void registerFlag(String flagName, FlagConfig settings)
      Description copied from interface: RegionAPI
      FlagConfig registration. Values cannot be null.
      Specified by:
      registerFlag in interface RegionAPI
    • updateGlobalRegionData

      public void updateGlobalRegionData(org.spongepowered.api.world.server.ServerWorld serverWorld, Region region)
      Description copied from interface: RegionAPI
      Update global region data.
      Specified by:
      updateGlobalRegionData in interface RegionAPI
      Parameters:
      serverWorld - - world
      region - - world region.
    • addTempRegion

      public void addTempRegion(Region region)
      Description copied from interface: RegionAPI
      Adding a temporary region
      Specified by:
      addTempRegion in interface RegionAPI
    • addTempRegion

      public void addTempRegion(UUID user, Region region)
      Description copied from interface: RegionAPI
      Adding a temporary region
      Specified by:
      addTempRegion in interface RegionAPI
    • removeTempRegion

      public void removeTempRegion(Region region)
      Description copied from interface: RegionAPI
      Removing a temporary region
      Specified by:
      removeTempRegion in interface RegionAPI
    • removeTempRegion

      public void removeTempRegion(UUID uuid)
      Description copied from interface: RegionAPI
      Removing a temporary region
      Specified by:
      removeTempRegion in interface RegionAPI
      Parameters:
      uuid - - owner uuid
    • getTempRegion

      public Optional<Region> getTempRegion(UUID uuid)
      Description copied from interface: RegionAPI
      Get a temporary region
      Specified by:
      getTempRegion in interface RegionAPI
      Parameters:
      uuid - - owner uuid
      Returns:
      Optional or empty
    • getSelectorType

      public SelectorTypes getSelectorType(UUID uuid)
      Description copied from interface: RegionAPI
      Obtaining a type of region selector from the player.
      Specified by:
      getSelectorType in interface RegionAPI
      Returns:
      Player-selected region selector type, or default selection type.
    • setSelectorType

      public void setSelectorType(org.spongepowered.api.entity.living.player.server.ServerPlayer player, SelectorTypes selectorType)
      Description copied from interface: RegionAPI
      Set a type of region selector for the player.
      Specified by:
      setSelectorType in interface RegionAPI
      selectorType - - SelectorTypes
    • setSelectorType

      public void setSelectorType(UUID uuid, SelectorTypes selectorType)
      Description copied from interface: RegionAPI
      Set a type of region selector for the player.
      Specified by:
      setSelectorType in interface RegionAPI
      Parameters:
      uuid - - player uuid
      selectorType - - SelectorTypes
    • getSelectRegionType

      public RegionTypes getSelectRegionType(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the type of regions creating by the player.
      Specified by:
      getSelectRegionType in interface RegionAPI
      Returns:
      RegionTypes
    • getSelectRegionType

      public RegionTypes getSelectRegionType(UUID uuid)
      Description copied from interface: RegionAPI
      Getting the type of regions creating by the player.
      Specified by:
      getSelectRegionType in interface RegionAPI
      Parameters:
      uuid - - player uuid
      Returns:
      RegionTypes
    • setCreatingRegionType

      public void setCreatingRegionType(org.spongepowered.api.entity.living.player.server.ServerPlayer player, RegionTypes regionType)
      Description copied from interface: RegionAPI
      Specifies the type of regions created by the player.
      You cannot assign the types: global, subdivision, unset.
      Specified by:
      setCreatingRegionType in interface RegionAPI
    • setCreatingRegionType

      public void setCreatingRegionType(UUID uuid, RegionTypes regionType)
      Description copied from interface: RegionAPI
      Specifies the type of regions created by the player.
      You cannot assign the types: global, subdivision, unset.
      Specified by:
      setCreatingRegionType in interface RegionAPI
    • getGlobalRegion

      public Region getGlobalRegion(org.spongepowered.api.world.server.ServerWorld serverWorld)
      Description copied from interface: RegionAPI
      Get world region.
      Specified by:
      getGlobalRegion in interface RegionAPI
      Parameters:
      serverWorld - - the world of the region.
      Returns:
      Region
    • getGlobalRegion

      public Region getGlobalRegion(org.spongepowered.api.ResourceKey worldkey)
      Description copied from interface: RegionAPI
      Get world region.
      Specified by:
      getGlobalRegion in interface RegionAPI
      Parameters:
      worldkey - - the world key of the region.
      Returns:
      Region
    • getRegions

      public Collection<Region> getRegions()
      Description copied from interface: RegionAPI
      Getting all registered regions except globals.
      Specified by:
      getRegions in interface RegionAPI
      Returns:
      Collection
    • getRegionsPerWorld

      public Map<org.spongepowered.api.ResourceKey,Map<ChunkNumber,ArrayList<Region>>> getRegionsPerWorld()
      Description copied from interface: RegionAPI
      Obtaining a map of regions by worlds.
      Without global regions.
      Specified by:
      getRegionsPerWorld in interface RegionAPI
    • registerRegion

      public void registerRegion(Region region)
      Description copied from interface: RegionAPI
      Region registration.
      The method does not save the region data to disk.
      Specified by:
      registerRegion in interface RegionAPI
      Parameters:
      region - - Registrable region.
    • registerRegionAsync

      public void registerRegionAsync(Region region)
      Description copied from interface: RegionAPI
      Region registration in asynchronous mode.
      Specified by:
      registerRegionAsync in interface RegionAPI
      Parameters:
      region - - Registrable region.
    • unregisterRegion

      public void unregisterRegion(Region region)
      Description copied from interface: RegionAPI
      Remove the region from the list of registered regions.
      This method will not remove the region from the disk.
      Specified by:
      unregisterRegion in interface RegionAPI
    • saveRegion

      public void saveRegion(Region region)
      Description copied from interface: RegionAPI
      Saving region data to disk.
      Specified by:
      saveRegion in interface RegionAPI
      Parameters:
      region - - Preservable region..
    • deleteRegion

      public void deleteRegion(Region region)
      Description copied from interface: RegionAPI
      Deleting a region.
      Specified by:
      deleteRegion in interface RegionAPI
      Parameters:
      region - - Removable region.
    • findRegion

      public Region findRegion(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i position)
      Description copied from interface: RegionAPI
      Search for a region in the world using the specified coordinates.
      If the region contains child regions, the deepest child region will be returned.
      Specified by:
      findRegion in interface RegionAPI
      Parameters:
      world - - The world in which the search will be performed.
      position - - Checkable position.
      Returns:
      - Found region or global region.
    • findRegion

      public Optional<Region> findRegion(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i position, Predicate<Region> filter)
      Description copied from interface: RegionAPI
      Search for a region in the world using the specified coordinates.
      If the region contains child regions, the deepest child region will be returned.
      Specified by:
      findRegion in interface RegionAPI
      Parameters:
      world - - The world in which the search will be performed.
      position - - Checkable position.
      Returns:
      - Found region or global region.
    • findRegion

      public Region findRegion(org.spongepowered.api.ResourceKey worldkey, org.spongepowered.math.vector.Vector3i position)
      Description copied from interface: RegionAPI
      Search for a region in the world using the specified coordinates.
      If the region contains child regions, the deepest child region will be returned.
      Specified by:
      findRegion in interface RegionAPI
      Parameters:
      worldkey - - The key of the world in which you want to search.
      position - - Checkable position.
      Returns:
      - Found region or global region.
    • findIntersectsRegion

      public Region findIntersectsRegion(Region region)
      Description copied from interface: RegionAPI
      Search for the region with which the intersection occurs.
      Specified by:
      findIntersectsRegion in interface RegionAPI
      Parameters:
      region - - Original region.
      Returns:
      The first region found with which there is an intersection.
      Or the original region if no intersection is found.
    • getPlayerRegions

      public List<Region> getPlayerRegions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Obtaining all player regions.
      Specified by:
      getPlayerRegions in interface RegionAPI
      Parameters:
      player - - Owner of the regions.
      Returns:
      - List of player regions.
    • getPlayerRegions

      public List<Region> getPlayerRegions(UUID playerUUID)
      Description copied from interface: RegionAPI
      Obtaining all player regions.
      Specified by:
      getPlayerRegions in interface RegionAPI
      Parameters:
      playerUUID - - UUID of owner of the regions.
      Returns:
      - List of player regions.
    • getWandItem

      public org.spongepowered.api.item.inventory.ItemStack getWandItem()
      Description copied from interface: RegionAPI
      Getting an item for selecting regions.
      Specified by:
      getWandItem in interface RegionAPI
    • getMinimalRegionSize

      public int getMinimalRegionSize(SelectorTypes selectorType)
      Description copied from interface: RegionAPI
      Get the minimum size of the region, which is set in the main configuration file.
      Specified by:
      getMinimalRegionSize in interface RegionAPI
      Parameters:
      selectorType - - Type of region selection.
      Returns:
      - The minimum number of blocks that should be in the region.
    • getDefaultFlags

      public Map<String,Set<FlagValue>> getDefaultFlags(RegionTypes regionType)
      Description copied from interface: RegionAPI
      Get the default flags for a certain type of region.
      Specified by:
      getDefaultFlags in interface RegionAPI
    • getClaimedBlocks

      public long getClaimedBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the number of blocks that belong to the player.
      Specified by:
      getClaimedBlocks in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The amount of blocks the player owns according to the type of allocation of each region.
    • getClaimedRegions

      public long getClaimedRegions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the number of regions belonging to the player.
      Specified by:
      getClaimedRegions in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of regions belonging to the player.
    • getLimitBlocks

      public long getLimitBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the limit of blocks that can claiming the player.
      Specified by:
      getLimitBlocks in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of blocks available to the player for claiming.
    • getLimitClaims

      public long getLimitClaims(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the limit of regions that can claiming the player.
      Specified by:
      getLimitClaims in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of regions available to the player for claiming.
    • getLimitSubdivisions

      public long getLimitSubdivisions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the maximum number of child regions a player can create.
      Each basic region has its own limit.
      Specified by:
      getLimitSubdivisions in interface RegionAPI
      Parameters:
      player - - Checked player
    • getLimitMembers

      public long getLimitMembers(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the members limit for each region of a particular player.
      Each region has its own separate members limit.
      Specified by:
      getLimitMembers in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of members limit for each region of a particular player.
    • getLimitMembers

      public long getLimitMembers(UUID player)
      Description copied from interface: RegionAPI
      Getting the members limit for each region of a particular player.
      Each region has its own separate members limit.
      Specified by:
      getLimitMembers in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of members limit for each region of a particular player.
    • getLimitMaxBlocks

      public long getLimitMaxBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      The maximum limit of blocks a player can claim.
      Specified by:
      getLimitMaxBlocks in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of blocks available to the player for claiming.
    • getLimitMaxClaims

      public long getLimitMaxClaims(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      The maximum limit of regions a player can claim.
      Specified by:
      getLimitMaxClaims in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of regions available to the player for claiming.
    • getLimitMaxSubdivisions

      public long getLimitMaxSubdivisions(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      The maximum limit of child regions a player can create.
      Each basic region has its own limit.
      Specified by:
      getLimitMaxSubdivisions in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The number of subdivisions available to the player for creating.
    • getLimitMaxMembers

      public long getLimitMaxMembers(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      The maximum limit of members of the player region..
      Each basic region has its own limit.
      Specified by:
      getLimitMaxMembers in interface RegionAPI
      Parameters:
      player - - Checked player
      Returns:
      - The maximum number of region members a player can add.
    • setLimitBlocks

      public void setLimitBlocks(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
      Description copied from interface: RegionAPI
      Change the limit of blocks a player can claim.
      Specified by:
      setLimitBlocks in interface RegionAPI
    • setLimitClaims

      public void setLimitClaims(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
      Description copied from interface: RegionAPI
      Set the number of regions a player can own.
      Specified by:
      setLimitClaims in interface RegionAPI
    • setLimitSubdivisions

      public void setLimitSubdivisions(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
      Description copied from interface: RegionAPI
      Set a limit to the subdivisions a player can create.
      Specified by:
      setLimitSubdivisions in interface RegionAPI
    • setLimitMembers

      public void setLimitMembers(org.spongepowered.api.entity.living.player.server.ServerPlayer player, long limit)
      Description copied from interface: RegionAPI
      Set the number of players that each player region can contain.
      Specified by:
      setLimitMembers in interface RegionAPI
    • getBuyBlockPrice

      public double getBuyBlockPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the value of the block price for the player.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getBuyBlockPrice in interface RegionAPI
    • getBuyClaimPrice

      public double getBuyClaimPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the value of the region price for the player.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getBuyClaimPrice in interface RegionAPI
    • getBuySubdivisionPrice

      public double getBuySubdivisionPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the value of the subdivision price for the player.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getBuySubdivisionPrice in interface RegionAPI
    • getBuyMembersPrice

      public double getBuyMembersPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the value of the price of the region's participant limit increase.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getBuyMembersPrice in interface RegionAPI
    • getSellBlockPrice

      public double getSellBlockPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the value of the block price for the player.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getSellBlockPrice in interface RegionAPI
    • getSellClaimPrice

      public double getSellClaimPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the value of the region price for the player.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getSellClaimPrice in interface RegionAPI
    • getSellSubdivisionPrice

      public double getSellSubdivisionPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Get the value of the subdivision price for the player.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getSellSubdivisionPrice in interface RegionAPI
    • getSellMembersPrice

      public double getSellMembersPrice(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the value of the price of the region members limit decrease.
      Depending on how the permissions plugin is set up, different players may have different prices.
      Specified by:
      getSellMembersPrice in interface RegionAPI
    • getCurrency

      public org.spongepowered.api.service.economy.Currency getCurrency(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting the currency in which the player will perform the transaction. Depending on how the permissions plugin is set up, different players may have different currencies.
      Specified by:
      getCurrency in interface RegionAPI
    • setPlayerData

      public void setPlayerData(org.spongepowered.api.entity.living.player.server.ServerPlayer player, PlayerData playerData)
      Description copied from interface: RegionAPI
      Setting limits and other information on the player.
      Specified by:
      setPlayerData in interface RegionAPI
    • setPlayerData

      public void setPlayerData(UUID player, PlayerData playerData)
      Description copied from interface: RegionAPI
      Setting limits and other information on the player.
      Specified by:
      setPlayerData in interface RegionAPI
    • updatePlayerData

      public void updatePlayerData(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Update cached data on regions and blocks claimed by the player.
      Specified by:
      updatePlayerData in interface RegionAPI
    • updatePlayerData

      public void updatePlayerData(UUID player)
      Description copied from interface: RegionAPI
      Update cached data on regions and blocks claimed by the player.
      Specified by:
      updatePlayerData in interface RegionAPI
    • getPlayerData

      public Optional<PlayerData> getPlayerData(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: RegionAPI
      Getting limits and other information on the player.
      Specified by:
      getPlayerData in interface RegionAPI
    • getPlayerData

      public Optional<PlayerData> getPlayerData(UUID player)
      Description copied from interface: RegionAPI
      Getting limits and other information on the player.
      Specified by:
      getPlayerData in interface RegionAPI
    • getWorldEditCUIAPI

      public WorldEditCUIAPI getWorldEditCUIAPI()
      Description copied from interface: RegionAPI
      Go to the API for visually highlighting regions with a mod on the WECui client.
      Specified by:
      getWorldEditCUIAPI in interface RegionAPI
    • updateWandItem

      public void updateWandItem()
    • isRegisteredGlobal

      public boolean isRegisteredGlobal(org.spongepowered.api.world.server.ServerWorld world)