Enum Class ItemSpawnReason
- All Implemented Interfaces:
Serializable,Comparable<ItemSpawnReason>,Constable
This enum holds the different reasons as to why we may need to spawn an item.
- Author:
- TheBusyBiscuit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe item is spawned on top of anAncientPedestal.ThisItemStackis dropped as a result of thePickaxeOfContainmentbreaking a monster spawner.TheItemStackis dropped as the result of an openedChristmasPresent.Other reasons we did not account for.TheItemStackis dropped as the result of aMultiBlockMachineoverflowing. -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemSpawnReasonReturns the enum constant of this class with the specified name.static ItemSpawnReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANCIENT_PEDESTAL_PLACE_ITEM
The item is spawned on top of anAncientPedestal. -
BROKEN_SPAWNER_DROP
ThisItemStackis dropped as a result of thePickaxeOfContainmentbreaking a monster spawner. -
CARGO_OVERFLOW
-
MULTIBLOCK_MACHINE_OVERFLOW
TheItemStackis dropped as the result of aMultiBlockMachineoverflowing. -
CHRISTMAS_PRESENT_OPENED
TheItemStackis dropped as the result of an openedChristmasPresent. -
EASTER_EGG_OPENED
-
GOLD_PAN_USE
-
MISC
Other reasons we did not account for.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-