RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
HerbPatch.java
1
package
com.osroyale.content.skill.impl.farming.patches.impl;
2
3
import
com.osroyale.content.skill.impl.farming.FarmingConstants;
4
import
com.osroyale.content.skill.impl.farming.patches.DiseasablePatch;
5
import
com.osroyale.content.skill.impl.farming.patches.HarvestablePatch;
6
import
com.osroyale.content.skill.impl.farming.plants.Herb;
7
import
com.osroyale.content.skill.impl.farming.plants.Plant;
8
import
com.osroyale.content.skill.impl.farming.zones.FarmingZone;
9
import
com.osroyale.game.world.Interactable;
10
import
com.osroyale.game.world.entity.mob.player.Player;
11
49
50
public
class
HerbPatch
extends
DiseasablePatch {
51
53
private
static
final
int
START_HARVEST_AMOUNT = 3;
54
56
private
static
final
int
END_HARVEST_AMOUNT = 18;
57
65
public
HerbPatch
(
Player
player,
FarmingZone
zone,
Interactable
[] boundaries) {
66
super(player, zone, boundaries);
67
}
68
69
@Override
70
public
Plant plantForSeed(
int
seedId) {
71
return
Herb
.forId(seedId);
72
}
73
74
@Override
75
protected
int
getMinAmount
() {
76
return
START_HARVEST_AMOUNT;
77
}
78
79
@Override
80
protected
int
getMaxAmount
() {
81
return
END_HARVEST_AMOUNT;
82
}
83
84
@Override
85
protected
int
animation
() {
86
return
FarmingConstants
.PICKING_HERB_ANIM;
87
}
88
89
/* @Override
90
public int getConfig() {
91
if (isDead()) {
92
return growth + 169;
93
}
94
return super.getConfig();
95
}*/
96
97
}
com.osroyale.content.skill.impl.farming.FarmingConstants
Definition
FarmingConstants.java:27
com.osroyale.content.skill.impl.farming.patches.impl.HerbPatch.animation
int animation()
Definition
HerbPatch.java:85
com.osroyale.content.skill.impl.farming.patches.impl.HerbPatch.getMinAmount
int getMinAmount()
Definition
HerbPatch.java:75
com.osroyale.content.skill.impl.farming.patches.impl.HerbPatch.HerbPatch
HerbPatch(Player player, FarmingZone zone, Interactable[] boundaries)
Definition
HerbPatch.java:65
com.osroyale.content.skill.impl.farming.patches.impl.HerbPatch.getMaxAmount
int getMaxAmount()
Definition
HerbPatch.java:80
com.osroyale.content.skill.impl.farming.zones.FarmingZone
Definition
FarmingZone.java:58
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162
com.osroyale.content.skill.impl.farming.plants.Herb
Definition
Herb.java:45
com.osroyale.game.world.Interactable
Definition
Interactable.java:10