Package nl.minetopiasdb.api.objects
Class Plot
java.lang.Object
nl.minetopiasdb.api.objects.Plot
- Direct Known Subclasses:
InactivePlot
Plot object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the calculated building and builder price for this region in an entry.Calculate the value of the ground.int
Deprecated.double
Deprecated.double
Deprecated.getDescription
(org.bukkit.entity.Player player) Get the description of this region.com.sk89q.worldguard.protection.regions.ProtectedRegion
The protectedregion instance that represents this plotgetWorld()
Name of the world where this plot is located.
-
Constructor Details
-
Plot
-
-
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
Name of the world where this plot is located.- Returns:
- name of world where this plot is located
-
getDescription
Get the description of this region.- Parameters:
player
- Player used for eventual variables.- Returns:
- Formatted description for this region
-
calculateGroundPrice
Calculate the value of the ground. The formula is changable in the config.- Returns:
- Value of the ground.
-
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.Value of the ground. Formula is changable in the config. UsecalculateGroundPrice()
instead.- Returns:
- Value of the ground.
-
getCalculatedBuildingPrice
Deprecated.Calculated building price for this region. This means prices of the blocks + labour costs. UsecalculateGroundPrice()
instead.- Returns:
- calculated price to build this region.
-
getBuilderPrice
Deprecated.Calculated building price for this region. This means prices of the blocks + labour costs. UsecalculateGroundPrice()
instead.- Returns:
- calculated price to build this region.
-