RuneHive-Game
Loading...
Searching...
No Matches
HerbPatch.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.farming.patches.impl;
2
3import com.runehive.content.skill.impl.farming.FarmingConstants;
4import com.runehive.content.skill.impl.farming.patches.DiseasablePatch;
5import com.runehive.content.skill.impl.farming.patches.HarvestablePatch;
6import com.runehive.content.skill.impl.farming.plants.Herb;
7import com.runehive.content.skill.impl.farming.plants.Plant;
8import com.runehive.content.skill.impl.farming.zones.FarmingZone;
9import com.runehive.game.world.Interactable;
10import com.runehive.game.world.entity.mob.player.Player;
11
12/**
13 * A {@link HarvestablePatch} that can grow herbs.
14 *
15 * @author Michael | Chex
16 */
17public class HerbPatch extends DiseasablePatch {
18
19 /** The minimum amount of produce to harvest, */
20 private static final int START_HARVEST_AMOUNT = 3;
21
22 /** The maximum amount of produce to harvest, */
23 private static final int END_HARVEST_AMOUNT = 18;
24
25 /**
26 * Constructs a new {@link HerbPatch} object.
27 *
28 * @param player the player that owns this patch
29 * @param zone the zone this patch belongs to
30 * @param boundaries the boundaries of this patch
31 */
35
36 @Override
37 public Plant plantForSeed(int seedId) {
38 return Herb.forId(seedId);
39 }
40
41 @Override
42 protected int getMinAmount() {
44 }
45
46 @Override
47 protected int getMaxAmount() {
48 return END_HARVEST_AMOUNT;
49 }
50
51 @Override
52 protected int animation() {
54 }
55
56 /* @Override
57 public int getConfig() {
58 if (isDead()) {
59 return growth + 169;
60 }
61 return super.getConfig();
62 }*/
63
64}
DiseasablePatch(Player player, FarmingZone zone, Interactable[] boundaries)
static final int START_HARVEST_AMOUNT
The minimum amount of produce to harvest,.
HerbPatch(Player player, FarmingZone zone, Interactable[] boundaries)
Constructs a new HerbPatch object.
static final int END_HARVEST_AMOUNT
The maximum amount of produce to harvest,.
This class represents a character controlled by a player.
Definition Player.java:125
An object implementing Interactable has uses.