Class Region

java.lang.Object
com.marcusslover.plus.lib.region.Region
All Implemented Interfaces:
IRegion

public class Region extends Object implements 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.
  • 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.
      Specified by:
      min in interface IRegion
      Returns:
      The minimum point of the region.
    • max

      @NotNull public @NotNull org.bukkit.util.Vector max()
      Gets the maximum point of the region.
      Specified by:
      max in interface IRegion
      Returns:
      The maximum point of the region.