Package com.marcusslover.plus.lib.region
Class Region
java.lang.Object
com.marcusslover.plus.lib.region.Region
- All Implemented Interfaces:
IRegion
Represents a 2d region with two points.
The minimum point is the point with the lowest x, y and z values.
The maximum point is the point with the highest x, y and z values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.marcusslover.plus.lib.region.IRegion
IRegion.DefaultVectorStrategy, IRegion.IVectorStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.util.Vectormax()Gets the maximum point of the region.@NotNull org.bukkit.util.Vectormin()Gets the minimum point of the region.static @NotNull Regionof(@NotNull WorldPoint a, @NotNull WorldPoint b) static @NotNull Regionof(@NotNull WorldPoint a, @NotNull WorldPoint b, int priority) static @NotNull Regionof(@NotNull org.bukkit.Location a, @NotNull org.bukkit.Location b) static @NotNull Regionof(@NotNull org.bukkit.Location a, @NotNull org.bukkit.Location b, int priority) static @NotNull Regionof(@NotNull org.bukkit.entity.Entity a, @NotNull org.bukkit.entity.Entity b) static @NotNull Regionof(@NotNull org.bukkit.entity.Entity a, @NotNull org.bukkit.entity.Entity b, int priority) static @NotNull Regionof(@NotNull org.bukkit.util.Vector a, @NotNull org.bukkit.util.Vector b) static @NotNull Regionof(@NotNull org.bukkit.util.Vector a, @NotNull org.bukkit.util.Vector b, int priority)
-
Constructor Details
-
Region
public Region()
-
-
Method Details
-
of
@NotNull public static @NotNull Region of(@NotNull @NotNull org.bukkit.util.Vector a, @NotNull @NotNull org.bukkit.util.Vector b) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull org.bukkit.util.Vector a, @NotNull @NotNull org.bukkit.util.Vector b, int priority) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull org.bukkit.Location a, @NotNull @NotNull org.bukkit.Location b) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull org.bukkit.Location a, @NotNull @NotNull org.bukkit.Location b, int priority) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull org.bukkit.entity.Entity a, @NotNull @NotNull org.bukkit.entity.Entity b) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull org.bukkit.entity.Entity a, @NotNull @NotNull org.bukkit.entity.Entity b, int priority) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull WorldPoint a, @NotNull @NotNull WorldPoint b) -
of
@NotNull public static @NotNull Region of(@NotNull @NotNull WorldPoint a, @NotNull @NotNull WorldPoint b, int priority) -
min
@NotNull public @NotNull org.bukkit.util.Vector min()Gets the minimum point of the region. -
max
@NotNull public @NotNull org.bukkit.util.Vector max()Gets the maximum point of the region.
-