Enum Class ItemSpawnReason

java.lang.Object
java.lang.Enum<ItemSpawnReason>
io.github.thebusybiscuit.slimefun4.api.items.ItemSpawnReason
All Implemented Interfaces:
Serializable, Comparable<ItemSpawnReason>, Constable

public enum ItemSpawnReason extends Enum<ItemSpawnReason>
This enum holds the different reasons as to why we may need to spawn an item.
Author:
TheBusyBiscuit
See Also:
  • Enum Constant Details

    • ANCIENT_PEDESTAL_PLACE_ITEM

      public static final ItemSpawnReason ANCIENT_PEDESTAL_PLACE_ITEM
      The item is spawned on top of an AncientPedestal.
    • BROKEN_SPAWNER_DROP

      public static final ItemSpawnReason BROKEN_SPAWNER_DROP
      This ItemStack is dropped as a result of the PickaxeOfContainment breaking a monster spawner.
    • CARGO_OVERFLOW

      public static final ItemSpawnReason CARGO_OVERFLOW
      The ItemStack is dropped as the result of a CargoNet overflowing.
    • MULTIBLOCK_MACHINE_OVERFLOW

      public static final ItemSpawnReason MULTIBLOCK_MACHINE_OVERFLOW
      The ItemStack is dropped as the result of a MultiBlockMachine overflowing.
    • CHRISTMAS_PRESENT_OPENED

      public static final ItemSpawnReason CHRISTMAS_PRESENT_OPENED
      The ItemStack is dropped as the result of an opened ChristmasPresent.
    • EASTER_EGG_OPENED

      public static final ItemSpawnReason EASTER_EGG_OPENED
      THe ItemStack is dropped as the result of an opened EasterEgg.
    • GOLD_PAN_USE

      public static final ItemSpawnReason GOLD_PAN_USE
      The ItemStack is dropped as the result of a GoldPan being used on a Block which yields drops.
    • MISC

      public static final ItemSpawnReason MISC
      Other reasons we did not account for.
  • Method Details

    • values

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