Class RegionWall

java.lang.Object
ml.karmaconfigs.api.bukkit.region.wall.util.Wall
ml.karmaconfigs.api.bukkit.region.wall.RegionWall

public final class RegionWall extends Wall
Karma region walls utilities
  • Constructor Details

    • RegionWall

      public RegionWall(WallType t, Cuboid r)
      Initialize the region wall
      Parameters:
      t - the wall type
      r - the region
  • Method Details

    • getType

      public WallType getType()
      Get the wall type
      Specified by:
      getType in class Wall
      Returns:
      the wall type
    • getRegion

      public Cuboid getRegion()
      Get the region that owns the walls
      Specified by:
      getRegion in class Wall
      Returns:
      the region
    • getWall

      public Set<org.bukkit.block.Block> getWall()
      Get the wall blocks
      Specified by:
      getWall in class Wall
      Returns:
      the wall blocks
    • getNear

      public Set<org.bukkit.entity.Entity> getNear(double range)
      Get nearby entities in the wall
      Specified by:
      getNear in class Wall
      Parameters:
      range - the search radius
      Returns:
      the near wall entities
    • getNear

      public Set<org.bukkit.entity.Entity> getNear(double range, org.bukkit.entity.EntityType... filter)
      Get nearby entities in the wall
      Specified by:
      getNear in class Wall
      Parameters:
      range - the search radius
      filter - the entities to ignore
      Returns:
      the near wall entities