Class AABB

java.lang.Object
ch.njol.skript.util.AABB
All Implemented Interfaces:
Iterable<org.bukkit.block.Block>

public class AABB extends Object implements Iterable<org.bukkit.block.Block>
AABB = Axis-Aligned Bounding Box
  • Constructor Summary

    Constructors
    Constructor
    Description
    AABB​(org.bukkit.block.Block b1, org.bukkit.block.Block b2)
     
    AABB​(org.bukkit.Chunk c)
     
    AABB​(org.bukkit.Location center, double rX, double rY, double rZ)
     
    AABB​(org.bukkit.Location l1, org.bukkit.Location l2)
     
    AABB​(org.bukkit.World w, org.bukkit.util.Vector v1, org.bukkit.util.Vector v2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains​(org.bukkit.block.Block b)
     
    boolean
    contains​(org.bukkit.Location l)
     
    boolean
    equals​(@Nullable Object obj)
     
    org.bukkit.util.Vector
     
    org.bukkit.World
     
    int
     
    Iterator<org.bukkit.block.Block>
    Returns an iterator which iterates over all blocks that are in this AABB

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • AABB

      public AABB(org.bukkit.Location l1, org.bukkit.Location l2)
    • AABB

      public AABB(org.bukkit.block.Block b1, org.bukkit.block.Block b2)
    • AABB

      public AABB(org.bukkit.Location center, double rX, double rY, double rZ)
    • AABB

      public AABB(org.bukkit.World w, org.bukkit.util.Vector v1, org.bukkit.util.Vector v2)
    • AABB

      public AABB(org.bukkit.Chunk c)
  • Method Details

    • contains

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

      public boolean contains(org.bukkit.block.Block b)
    • getDimensions

      public org.bukkit.util.Vector getDimensions()
    • getWorld

      public org.bukkit.World getWorld()
    • iterator

      public Iterator<org.bukkit.block.Block> iterator()
      Returns an iterator which iterates over all blocks that are in this AABB
      Specified by:
      iterator in interface Iterable<org.bukkit.block.Block>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object