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 ConstantDescriptionThe item is spawned on top of anAncientPedestal
.ThisItemStack
is dropped as a result of thePickaxeOfContainment
breaking a monster spawner.TheItemStack
is dropped as the result of an openedChristmasPresent
.Other reasons we did not account for.TheItemStack
is dropped as the result of aMultiBlockMachine
overflowing. -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemSpawnReason
Returns 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
ThisItemStack
is dropped as a result of thePickaxeOfContainment
breaking a monster spawner. -
CARGO_OVERFLOW
-
MULTIBLOCK_MACHINE_OVERFLOW
TheItemStack
is dropped as the result of aMultiBlockMachine
overflowing. -
CHRISTMAS_PRESENT_OPENED
TheItemStack
is 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
-