36public enum Flower implements Plant {
37 MARIGOLD(5096, 6010, 2, 20, 8.5, 47, 0x08, 0x0c,
InspectMessage.MARIGOLD),
38 ROSEMARY(5097, 6014, 11, 20, 12, 66.5, 0x0d, 0x11,
InspectMessage.ROSEMARY),
39 NASTURTIUM(5098, 6012, 24, 20, 19.5, 111, 0x12, 0x16,
InspectMessage.NASTURTIUM),
40 WOAD(5099, 1793, 25, 20, 20.5, 115.5, 0x17, 0x1b,
InspectMessage.WOAD),
41 LIMPWURT(5100, 225, 26, 25, 8.5, 120, 0x1c, 0x20,
InspectMessage.LIMPWURT);
43 private final int seedId;
44 private final int harvestId;
45 private final int levelRequired;
46 private final int growthTime;
47 private final double plantingXp;
48 private final double harvestXp;
49 private final int startingState;
50 private final int endingState;
53 private static final Map<Integer, Flower> FLOWERS =
new HashMap<>();
56 for (Flower data : Flower.values()) {
57 FLOWERS.put(data.seedId, data);
61 Flower(
int seedId,
int harvestId,
int levelRequired,
int growthTime,
double plantingXp,
double harvestXp,
int startingState,
int endingState,
InspectMessage inspect) {
63 this.harvestId = harvestId;
64 this.levelRequired = levelRequired;
65 this.growthTime = growthTime;
66 this.plantingXp = plantingXp;
67 this.harvestXp = harvestXp;
68 this.startingState = startingState;
69 this.endingState = endingState;
70 this.inspect = inspect;
73 public static Flower forId(
int seedId) {
74 return FLOWERS.get(seedId);
78 public int getSeedId() {
83 public int getHarvestId() {
88 public int getLevelRequired() {
93 public int getGrowthTime() {
100 public double getPlantingXp() {
105 public double getHarvestXp() {
110 public int getStartingState() {
111 return startingState;
115 public int getEndingState() {
120 public int[] getPaymentToWatch() {
125 public int getFlowerProtect() {
130 public String getProductType() {
135 public int getSeedAmount() {
140 public String[][] getInspectMessages() {
141 return inspect.getMessages();