Enum Class PotType

java.lang.Object
java.lang.Enum<PotType>
net.darkhax.botanypots.common.impl.block.PotType
All Implemented Interfaces:
Serializable, Comparable<PotType>, Constable

public enum PotType extends Enum<PotType>
  • Enum Constant Details

    • BASIC

      public static final PotType BASIC
      Can grow crops but can not auto harvest.
    • HOPPER

      public static final PotType HOPPER
      Grows crops and auto-harvests.
    • WAXED

      public static final PotType WAXED
      Always renders as a fully grown crop. Does not tick or have any other logic.
  • Method Details

    • values

      public static PotType[] 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 PotType 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