Class Area

java.lang.Object
me.despical.commons.util.Area

public class Area extends Object
Author:
Despical

Created at 28.07.2021

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.bukkit.Location
     
    protected final int
     
    protected final int
     
    protected final int
     
    protected final int
     
    protected final int
     
    protected final int
     
    protected final org.bukkit.Location
     
    protected final UUID
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Area(Area area)
     
    Area(org.bukkit.Location first, org.bukkit.Location second)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(int x, int y, int z)
     
    boolean
    contains(org.bukkit.entity.Player player)
     
    boolean
    contains(org.bukkit.Location location)
     
    protected final void
    ensureSameWorld(org.bukkit.Location first, org.bukkit.Location second)
     
    org.bukkit.Location
     
    org.bukkit.Location
     
    org.bukkit.World
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • first

      protected final org.bukkit.Location first
    • second

      protected final org.bukkit.Location second
    • worldUUID

      protected final UUID worldUUID
    • minX

      protected final int minX
    • minY

      protected final int minY
    • minZ

      protected final int minZ
    • maxX

      protected final int maxX
    • maxY

      protected final int maxY
    • maxZ

      protected final int maxZ
  • Constructor Details

    • Area

      public Area(org.bukkit.Location first, org.bukkit.Location second)
    • Area

      public Area(Area area)
  • Method Details

    • getFirst

      public org.bukkit.Location getFirst()
    • getSecond

      public org.bukkit.Location getSecond()
    • getWorld

      public org.bukkit.World getWorld()
    • contains

      public boolean contains(int x, int y, int z)
    • contains

      public boolean contains(org.bukkit.Location location)
    • contains

      public boolean contains(org.bukkit.entity.Player player)
    • ensureSameWorld

      protected final void ensureSameWorld(org.bukkit.Location first, org.bukkit.Location second)