<gh_stars>100-1000
package com.infinityraider.agricraft.api.v1.plant;

import com.infinityraider.agricraft.api.v1.crop.IAgriGrowthStage;

import javax.annotation.Nonnull;

public interface IAgriWeedSpawnable {

    boolean hasWeeds();

    @Nonnull
    IAgriWeed getWeeds();

    @Nonnull
    IAgriGrowthStage getWeedGrowthStage();

    default double getWeedGrowthPercentage() {
        return this.getWeedGrowthStage().growthPercentage();
    }

    boolean setWeed(@Nonnull IAgriWeed weed, @Nonnull IAgriGrowthStage stage);

    boolean removeWeed();
}
