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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.marcusslover.plus.lib.region.IRegion

    IRegion.DefaultVectorStrategy, IRegion.IVectorStrategy
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.util.Vector
    max()
    Gets the maximum point of the region.
    @NotNull org.bukkit.util.Vector
    min()
    Gets the minimum point of the region.
    static @NotNull Region
    of(double ax, double ay, double az, double bx, double by, double bz)
     
    static @NotNull Region
    of(double ax, double ay, double az, double bx, double by, double bz, int priority)
     
    static @NotNull Region
    of(int ax, int ay, int az, int bx, int by, int bz)
     
    static @NotNull Region
    of(int ax, int ay, int az, int bx, int by, int bz, int priority)
     
    static @NotNull Region
    of(@NotNull org.bukkit.Location a, @NotNull org.bukkit.Location b)
     
    static @NotNull Region
    of(@NotNull org.bukkit.Location a, @NotNull org.bukkit.Location b, int priority)
     
    static @NotNull Region
    of(@NotNull org.bukkit.entity.Entity a, @NotNull org.bukkit.entity.Entity b)
     
    static @NotNull Region
    of(@NotNull org.bukkit.entity.Entity a, @NotNull org.bukkit.entity.Entity b, int priority)
     
    static @NotNull Region
    of(@NotNull org.bukkit.util.Vector a, @NotNull org.bukkit.util.Vector b)
     
    static @NotNull Region
    of(@NotNull org.bukkit.util.Vector a, @NotNull org.bukkit.util.Vector b, int priority)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.marcusslover.plus.lib.region.IRegion

    getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, within, within, within, within, within, within, within, within
  • Constructor Details

    • Region

      public Region()
  • Method Details

    • of

      @NotNull public static @NotNull Region of(double ax, double ay, double az, double bx, double by, double bz)
    • of

      @NotNull public static @NotNull Region of(double ax, double ay, double az, double bx, double by, double bz, int priority)
    • of

      @NotNull public static @NotNull Region of(int ax, int ay, int az, int bx, int by, int bz)
    • of

      @NotNull public static @NotNull Region of(int ax, int ay, int az, int bx, int by, int bz, int priority)
    • 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)
    • 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.