9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-25 18:09:28 +00:00

Update CropUtils.java

This commit is contained in:
Xiao-MoMi
2022-10-19 14:36:21 +08:00
parent c9ce385cdd
commit 8da54763ba

View File

@@ -20,6 +20,7 @@ package net.momirealms.customcrops.api.utils;
import net.momirealms.customcrops.CustomCrops;
import net.momirealms.customcrops.api.crop.Crop;
import net.momirealms.customcrops.config.CropConfig;
import net.momirealms.customcrops.managers.CropManager;
import org.bukkit.Location;
import org.jetbrains.annotations.Nullable;
@@ -44,4 +45,12 @@ public class CropUtils {
public static boolean plantCrop(Location location, String crop) {
return CustomCrops.plugin.getCropManager().getHandler().plantSeed(location, crop, null, null);
}
/**
* get the cropManager
* @return cropManager
*/
public static CropManager getCropManager() {
return CustomCrops.plugin.getCropManager();
}
}