Class Plot

java.lang.Object
nl.minetopiasdb.api.objects.Plot
Direct Known Subclasses:
InactivePlot

public class Plot extends Object
Plot object
  • Constructor Details

    • Plot

      public Plot(com.sk89q.worldguard.protection.regions.ProtectedRegion pr, String world)
  • Method Details

    • getRegion

      public com.sk89q.worldguard.protection.regions.ProtectedRegion getRegion()
      The protectedregion instance that represents this plot
      Returns:
      protectedregion instance of this plot
    • getWorld

      public String getWorld()
      Name of the world where this plot is located.
      Returns:
      name of world where this plot is located
    • getDescription

      public String getDescription(org.bukkit.entity.Player player)
      Get the description of this region.
      Parameters:
      player - Player used for eventual variables.
      Returns:
      Formatted description for this region
    • calculateGroundPrice

      public CompletableFuture<Double> calculateGroundPrice()
      Calculate the value of the ground. The formula is changable in the config.
      Returns:
      Value of the ground.
    • calculateBuildingPrice

      public CompletableFuture<Map.Entry<Double,Double>> calculateBuildingPrice()
      Get the calculated building and builder price for this region in an entry. The key of the entry represents the building price. The value of the entry represents the price to build it.
      Returns:
      CompletableFuture containing the building price and the price to build this plot.
    • getCalculatedGroundPrice

      @Deprecated public double getCalculatedGroundPrice()
      Deprecated.
      Value of the ground. Formula is changable in the config. Use calculateGroundPrice() instead.
      Returns:
      Value of the ground.
    • getCalculatedBuildingPrice

      @Deprecated public double getCalculatedBuildingPrice()
      Deprecated.
      Calculated building price for this region. This means prices of the blocks + labour costs. Use calculateGroundPrice() instead.
      Returns:
      calculated price to build this region.
    • getBuilderPrice

      @Deprecated public int getBuilderPrice()
      Deprecated.
      Calculated building price for this region. This means prices of the blocks + labour costs. Use calculateGroundPrice() instead.
      Returns:
      calculated price to build this region.