Enum Class FarmField.Stage
- All Implemented Interfaces:
Serializable,Comparable<FarmField.Stage>,Constable
- Enclosing class:
- FarmField
Describes the stage the field is in. Like if it has been hoed, planted or is empty.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptionGet the next stage in the field's progression.net.minecraft.resources.ResourceLocationGets the status icon of the current stage in the farm field's progress.net.minecraft.network.chat.ComponentGets the translatable text of the current stage in the farm field's progress.static FarmField.StageReturns the enum constant of this class with the specified name.static FarmField.Stage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
-
HOED
-
PLANTED
-
-
Field Details
-
stageIcon
protected final net.minecraft.resources.ResourceLocation stageIcon
-
-
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
-
getStageIcon
public net.minecraft.resources.ResourceLocation getStageIcon()Gets the status icon of the current stage in the farm field's progress.- Returns:
- the status icon of the current stage.
-
getStageText
public net.minecraft.network.chat.Component getStageText()Gets the translatable text of the current stage in the farm field's progress.- Returns:
- the translatable text of the current stage.
-
getNextStage
Get the next stage in the field's progression.- Returns:
- the next Stage, or the first Stage if the current one is the last.
-