RuneHive-Game
Loading...
Searching...
No Matches
FarmingStage.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.farming;
2
3/**
4 * The farming stage of a patch.
5 *
6 * @author Michael | Chex
7 */
8public enum FarmingStage {
9
10 /** The patch is full of weeds. */
12
13 /** The patch needs to be weeded two more times. */
15
16 /** The patch needs to be weeded one more time. */
18
19 /** The patch is empty of weeds. */
21
22 /**
23 * Gets the previous farming stage.
24 *
25 * @return the previous farming stage, or the current stage if no previous stage.
26 */
28 if (ordinal() == 0)
29 return this;
30 return values()[ordinal() - 1];
31 }
32
33 /**
34 * Gets the next farming stage.
35 *
36 * @return the next farming stage, or the current stage if no next stage.
37 */
39 if (ordinal() + 1 == values().length)
40 return this;
41 return values()[ordinal() + 1];
42 }
43
44}
TWO_THIRDS_WEEDS
The patch needs to be weeded two more times.
FarmingStage getPreviousStage()
Gets the previous farming stage.
FarmingStage getNextStage()
Gets the next farming stage.
ONE_THIRD_WEEDS
The patch needs to be weeded one more time.