1package com.runehive.content.skill.impl.farming.patches.impl;
3import com.runehive.content.skill.impl.farming.FarmingConstants;
4import com.runehive.content.skill.impl.farming.patches.WaterablePatch;
5import com.runehive.content.skill.impl.farming.plants.Flower;
6import com.runehive.content.skill.impl.farming.plants.Plant;
7import com.runehive.content.skill.impl.farming.zones.FarmingZone;
8import com.runehive.game.world.Interactable;
9import com.runehive.game.world.World;
10import com.runehive.game.world.entity.mob.player.Player;
11import com.runehive.game.world.items.Item;
43 if (
player.locking.locked()) {
52 player.message(
"You need to clear the patch before planting a scarecrow.");
58 player.locking.lock(2 * 3 / 5);
61 player.message(
"You put a scarecrow on the flower patch, and some weeds start to grow around it.");
static final int PICKING_VEGETABLE_ANIM
final Interactable[] boundaries
WaterablePatch(Player player, FarmingZone zone, Interactable[] boundaries)
Constructs a new WaterablePatch object.
Plant plantForSeed(int seedId)
boolean itemOnObject(Item item, int index)
static final int SCARECROW
The scarecrow item id.
FlowerPatch(Player player, FarmingZone zone, Interactable[] boundaries)
Constructs a new FlowerPatch object.
boolean plantScareCrow(int item, int index)
Plants a scarecrow in this patch if the requirements are met.
boolean protectsDisease(int protect)
Checks if this flower patch protects an allotment patch from disease.
A zone that manages farming patches.
Represents the game world.
static void schedule(Task task)
Submits a new event.
This class represents a character controlled by a player.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
static Flower forId(int seedId)
An object implementing Interactable has uses.