Enum Class AndroidFuelSource
java.lang.Object
java.lang.Enum<AndroidFuelSource>
io.github.thebusybiscuit.slimefun4.implementation.items.androids.AndroidFuelSource
- All Implemented Interfaces:
Serializable
,Comparable<AndroidFuelSource>
,Constable
This enum covers all different fuel sources a
ProgrammableAndroid
can have.- Author:
- TheBusyBiscuit
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThisProgrammableAndroid
runs on liquid fuel, e.g.ThisProgrammableAndroid
runs on nuclear fuel, e.g.ThisProgrammableAndroid
runs on solid fuel, e.g. -
Method Summary
Modifier and TypeMethodDescriptiongetItem()
This returns a displayItemStack
for thisAndroidFuelSource
.static AndroidFuelSource
Returns the enum constant of this class with the specified name.static AndroidFuelSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOLID
ThisProgrammableAndroid
runs on solid fuel, e.g. Wood or coal -
LIQUID
ThisProgrammableAndroid
runs on liquid fuel, e.g. Fuel, Oil or Lava -
NUCLEAR
ThisProgrammableAndroid
runs on nuclear fuel, e.g. Uranium
-
-
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
-
getItem
This returns a displayItemStack
for thisAndroidFuelSource
.- Returns:
- An
ItemStack
to display
-