Enum Class FarmField.Stage

java.lang.Object
java.lang.Enum<FarmField.Stage>
com.minecolonies.core.colony.buildingextensions.FarmField.Stage
All Implemented Interfaces:
Serializable, Comparable<FarmField.Stage>, Constable
Enclosing class:
FarmField

public static enum FarmField.Stage extends Enum<FarmField.Stage>
Describes the stage the field is in. Like if it has been hoed, planted or is empty.
  • Enum Constant Details

  • Field Details

    • stageIcon

      protected final net.minecraft.resources.ResourceLocation stageIcon
  • Method Details

    • values

      public static FarmField.Stage[] 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 FarmField.Stage 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
    • 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

      public FarmField.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.