9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00
Files
Custom-Crops/src/main/java/net/momirealms/customcrops/api/CustomCropsAPI.java
Xiao-MoMi 3a06289fcb 1.5.25
2022-08-10 18:26:05 +08:00

25 lines
600 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package net.momirealms.customcrops.api;
import net.momirealms.customcrops.CustomCrops;
import net.momirealms.customcrops.datamanager.SeasonManager;
public class CustomCropsAPI {
/**
* 获取插件实例
* @return 插件实例
*/
public static CustomCrops getPlugin(){
return CustomCrops.plugin;
}
/**
* 获取指定世界的季节
* @param worldName 世界名
* @return 那个世界的季节若不存在则返回null
*/
public static String getSeason(String worldName){
return SeasonManager.SEASON.get(worldName);
}
}