Class BlockPattern

java.lang.Object
net.glowstone.util.pattern.BlockPattern

public class BlockPattern extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(org.bukkit.Location location, boolean clear, int xz, int y)
    Test whether this pattern matches a block.
    org.bukkit.Location[]
    matches(org.bukkit.Location location, int xz, int y, net.glowstone.util.pattern.BlockPattern.Alignment alignment)
    Test whether this pattern matches a block.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • matches

      public boolean matches(org.bukkit.Location location, boolean clear, int xz, int y)
      Test whether this pattern matches a block.
      Parameters:
      location - the base location
      clear - if true, change the matching blocks for one alignment to air
      xz - TODO: document this parameter
      y - TODO: document this parameter
      Returns:
      true if this pattern matches; false otherwise
    • matches

      public org.bukkit.Location[] matches(org.bukkit.Location location, int xz, int y, net.glowstone.util.pattern.BlockPattern.Alignment alignment)
      Test whether this pattern matches a block.
      Parameters:
      location - the base location
      xz - TODO: document this parameter
      y - TODO: document this parameter
      alignment - TODO: document this parameter
      Returns:
      true if this pattern matches; false otherwise