Class BlockMatch

java.lang.Object
us.talabrek.ultimateskyblock.island.level.BlockMatch
All Implemented Interfaces:
Comparable<BlockMatch>

public class BlockMatch extends Object implements Comparable<BlockMatch>
Holds the identification of a unit to be matched against a block
  • Constructor Details

    • BlockMatch

      public BlockMatch(org.bukkit.Material type)
  • Method Details

    • getType

      public org.bukkit.Material getType()
    • asItemStack

      public org.bukkit.inventory.ItemStack asItemStack()
    • matches

      public boolean matches(org.bukkit.Material material)
    • accept

      public void accept(BlockMatchVisitor visitor)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public int compareTo(BlockMatch o)
      Specified by:
      compareTo in interface Comparable<BlockMatch>