Uses of Class
com.plotsquared.core.location.Location
Package
Description
-
Uses of Location in com.plotsquared.core.events
ModifierConstructorDescriptionPlayerTeleportToPlotEvent
(PlotPlayer<?> player, Location from, Plot plot) Deprecated, for removal: This API element is subject to removal in a future version.PlayerTeleportToPlotEvent
(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) PlayerTeleportToPlotEvent: Called when a player teleports to a plot -
Uses of Location in com.plotsquared.core.generator
Modifier and TypeMethodDescriptionSquarePlotManager.getPlotBottomLocAbs
(@NonNull PlotId plotId) Get the bottom plot loc (some basic math).SquarePlotManager.getPlotTopLocAbs
(@NonNull PlotId plotId) ClassicPlotManager.getSignLoc
(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.HybridPlotManager.getSignLoc
(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.HybridPlotWorld.getSignLocation
(@NonNull Plot plot) Modifier and TypeMethodDescriptionvoid
HybridPlotManager.pastePlotSchematic
(@NonNull QueueCoordinator queue, @NonNull Location bottom, @NonNull Location top) -
Uses of Location in com.plotsquared.core.location
Modifier and TypeClassDescriptionfinal class
Used internally for generation to reference locations in worlds that "don't exist yet".Modifier and TypeMethodDescriptionLocation.add
(int x, int y, int z) Return a new location offset by the given coordinatesConstruct a new location with yaw and pitch equal to 0Construct a new locationLocation.at
(@NonNull World<?> world, @NonNull BlockVector3 blockVector3) Construct a new location with yaw and pitch equal to 0Location.at
(@NonNull World<?> world, @NonNull BlockVector3 blockVector3, float yaw, float pitch) Construct a new locationConstruct a new location with yaw and pitch equal to 0Construct a new locationLocation.at
(@NonNull String world, @NonNull BlockVector3 blockVector3) Construct a new location with yaw and pitch equal to 0Location.at
(@NonNull String world, @NonNull BlockVector3 blockVector3, float yaw, float pitch) Construct a new locationLocation.subtract
(int x, int y, int z) Return a new location offset by (-) the given coordinatesLocation.withPitch
(float pitch) Return a new location using the given pitchReturn a new location using the given worldLocation.withX
(int x) Return a new location using the given X coordinateLocation.withY
(int y) Return a new location using the given Y coordinateLocation.withYaw
(float yaw) Return a new location using the given yawLocation.withZ
(int z) Return a new location using the given Z coordinateModifier and TypeMethodDescriptionint
double
Location.getEuclideanDistance
(@NonNull Location l2) double
Location.getEuclideanDistanceSquared
(@NonNull Location l2) -
Uses of Location in com.plotsquared.core.player
Modifier and TypeFieldDescriptionstatic final MetaDataKey<Location>
PlayerMetaDataKeys.TEMPORARY_LOCATION
static final MetaDataKey<Location>
PlayerMetaDataKeys.TEMPORARY_MUSIC
Modifier and TypeMethodDescriptionConsolePlayer.getLocation()
PlotPlayer.getLocation()
Get this player's last recorded location or null if they don't any plot relevant location.ConsolePlayer.getLocationFull()
abstract Location
PlotPlayer.getLocationFull()
Get this player's full location (including yaw/pitch)Modifier and TypeMethodDescriptionboolean
ConsolePlayer.canTeleport
(@NonNull Location location) boolean
PlotPlayer.canTeleport
(@NonNull Location location) void
abstract void
Play music at a location for this player.void
Kick this player to a locationvoid
ConsolePlayer.setCompassTarget
(Location location) abstract void
PlotPlayer.setCompassTarget
(Location location) Set this compass target.void
ConsolePlayer.teleport
(Location location, TeleportCause cause) void
Teleport this player to a location.abstract void
PlotPlayer.teleport
(Location location, TeleportCause cause) Teleport this player to a location. -
Uses of Location in com.plotsquared.core.plot
Modifier and TypeMethodDescriptionPlot.getBottom()
Deprecated.in favor of getCorners()[0];Plot.getBottomAbs()
Returns the bottom location for the plot.Plot.getCenterSynchronous()
Deprecated.May cause synchronous chunk loadsPlotCluster.getClusterBottom()
PlotCluster.getClusterTop()
Location[]
Plot.getCorners()
Deprecated.as merged plots no longer need to be rectangularPlot.getDefaultHomeSynchronous
(boolean member) Deprecated.May cause synchronous chunk loadsPlot.getExtendedBottomAbs()
Gets the bot loc of a plot (if mega, returns bot loc of that mega plot) - If you would like each plot treated as a small plot usePlot.getBottomAbs()
Plot.getExtendedTopAbs()
Gets the top loc of a plot (if mega, returns top loc of that mega plot) - If you would like each plot treated as a small plot usePlot.getTopAbs()
Plot.getHomeSynchronous()
Deprecated.May cause synchronous chunk loadingabstract Location
PlotManager.getPlotBottomLocAbs
(@NonNull PlotId plotId) abstract Location
PlotManager.getPlotTopLocAbs
(@NonNull PlotId plotId) Plot.getSideSynchronous()
Deprecated.May cause synchronous chunk loadsabstract Location
PlotManager.getSignLoc
(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.Plot.getTop()
Deprecated.in favor of getCorners()[1];Plot.getTopAbs()
Returns the top location for the plot.Modifier and TypeMethodDescriptionboolean
Get the plot area that contains the given location, or null if the location is not a part of a plot area.PlotArea.getCluster
(@NonNull Location location) PlotArea.getOwnedPlot
(@NonNull Location location) Get the owned base plot at a location.PlotArea.getOwnedPlotAbs
(@NonNull Location location) Get the owned plot at a location.Return a new/cached plot object at a given location.Gets the base plot at a location.PlotArea.getPlotAbs
(@NonNull Location location) Gets thePlot
at a location.Modifier and TypeMethodDescriptionvoid
void
Plot.getDefaultHome
(boolean member, Consumer<Location> result) void
Plot.getDefaultHome
(Consumer<Location> result) Gets the default home location for a plot
- Ignores any home location set for that specific plotvoid
Return the home location for the plotvoid
void
-
Uses of Location in com.plotsquared.core.plot.world
Modifier and TypeMethodDescriptionSinglePlotManager.getPlotBottomLocAbs
(@NonNull PlotId plotId) SinglePlotManager.getPlotTopLocAbs
(@NonNull PlotId plotId) SinglePlotManager.getSignLoc
(@NonNull Plot plot) Modifier and TypeMethodDescriptionDefaultPlotAreaManager.getApplicablePlotArea
(@Nullable Location location) PlotAreaManager.getApplicablePlotArea
(@Nullable Location location) Get the plot area for a particular location.SinglePlotAreaManager.getApplicablePlotArea
(@Nullable Location location) SinglePlotArea.getOwnedPlot
(@NonNull Location location) SinglePlotArea.getOwnedPlotAbs
(@NonNull Location location) SinglePlotArea.getPlotAbs
(@NonNull Location location) DefaultPlotAreaManager.getPlotArea
(@NonNull Location location) PlotAreaManager.getPlotArea
(@NonNull Location location) Get the plot area, if there is any, for the given location.SinglePlotAreaManager.getPlotArea
(@NonNull Location location) -
Uses of Location in com.plotsquared.core.queue
Modifier and TypeMethodDescriptionBlockArrayCacheScopedQueueCoordinator.getMax()
ChunkQueueCoordinator.getMax()
Deprecated, for removal: This API element is subject to removal in a future version.ScopedQueueCoordinator.getMax()
Deprecated, for removal: This API element is subject to removal in a future version.BlockArrayCacheScopedQueueCoordinator.getMin()
ChunkQueueCoordinator.getMin()
Deprecated, for removal: This API element is subject to removal in a future version.ScopedQueueCoordinator.getMin()
Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionvoid
BasicQueueCoordinator.setBiomeCuboid
(@NonNull Location pos1, @NonNull Location pos2, @NonNull BiomeType biome) void
QueueCoordinator.setBiomeCuboid
(@NonNull Location pos1, @NonNull Location pos2, @NonNull BiomeType biome) Fill a cuboid between two positions with a BiomeTypevoid
Fill a cuboid between two positions with a Patternvoid
QueueCoordinator.setCuboid
(@NonNull Location pos1, @NonNull Location pos2, @NonNull BlockState block) Fill a cuboid between two positions with a BlockStateChunkCoordinatorBuilder.withRegion
(@NonNull Location pos1, @NonNull Location pos2) Add chunks within a region to be accessedModifierConstructorDescriptionConstruct a new instanceScopedQueueCoordinator
(@Nullable QueueCoordinator parent, @NonNull Location min, @NonNull Location max) Deprecated, for removal: This API element is subject to removal in a future version.Create a new ScopedQueueCoordinator instance that delegates to a given QueueCoordinator. -
Uses of Location in com.plotsquared.core.util
Modifier and TypeMethodDescriptionRegionUtil.getCorners
(@NonNull String world, @NonNull CuboidRegion region) RegionUtil.getCorners
(String world, Collection<CuboidRegion> regions) Get the world spawn locationModifier and TypeMethodDescriptionEventDispatcher.callTeleport
(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) boolean
EventDispatcher.checkPlayerBlockEvent
(PlotPlayer<?> player, @NonNull PlayerBlockEventType type, Location location, BlockType blockType, boolean notifyPerms) abstract void
RegionManager.clearAllEntities
(Location pos1, Location pos2) boolean
RegionManager.copyRegion
(@NonNull Location pos1, @NonNull Location pos2, @NonNull Location newPos, @Nullable PlotPlayer<?> actor, @NonNull Runnable whenDone) Copy a region to a new location (in the same world)abstract void
Get the block at a given location (asynchronously)abstract @NonNull BlockState
WorldUtil.getBlockSynchronous
(@NonNull Location location) Deprecated.static BlockVector2
WorldUtil.getSignSynchronous
(@NonNull Location location) Deprecated.May result in synchronous chunk loadingstatic boolean
ChunkUtil.isWholeChunk
(@NonNull Location pos1, @NonNull Location pos2, @NonNull BlockVector2 chunk) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.abstract boolean
RegionManager.regenerateRegion
(Location pos1, Location pos2, boolean ignoreAugment, Runnable whenDone) Assumptions:
- pos1 and pos2 are in the same plot
It can be harmful to the world if parameters outside this scope are providedabstract void
WorldUtil.setSign
(@NonNull Location location, @NonNull Caption[] lines, @NonNull net.kyori.adventure.text.minimessage.Template... replacements) Set the block at the specified location to a sign, with given textabstract void
Set the world spawn locationvoid
RegionManager.swap
(Location pos1, Location pos2, Location swapPos, @Nullable PlotPlayer<?> actor, Runnable whenDone) Swap two regions within the same world
PlayerTeleportToPlotEvent(PlotPlayer, Location, Plot, TeleportCause)
.