Enum Class IOHelper.ExtractCount

java.lang.Object
java.lang.Enum<IOHelper.ExtractCount>
me.desht.pneumaticcraft.common.util.IOHelper.ExtractCount
All Implemented Interfaces:
Serializable, Comparable<IOHelper.ExtractCount>, Constable
Enclosing class:
IOHelper

public static enum IOHelper.ExtractCount extends Enum<IOHelper.ExtractCount>
  • Enum Constant Details

    • EXACT

      public static final IOHelper.ExtractCount EXACT
      Extract exactly the items specified, including amount. If the exact number isn't available, extract nothing.
    • FIRST_MATCHING

      public static final IOHelper.ExtractCount FIRST_MATCHING
      Extract the first matching ItemStack in the inventory, but not more than the given amount.
    • UP_TO

      public static final IOHelper.ExtractCount UP_TO
      Extract up to the number of items specified but not more.
  • Method Details

    • values

      public static IOHelper.ExtractCount[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IOHelper.ExtractCount valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null