测试版
This commit is contained in:
parent
777d2554c4
commit
879403e1ce
|
@ -2,6 +2,7 @@ package com.yaohun.itemlibrary.api;
|
||||||
|
|
||||||
import com.yaohun.itemlibrary.data.SortData;
|
import com.yaohun.itemlibrary.data.SortData;
|
||||||
import com.yaohun.itemlibrary.main;
|
import com.yaohun.itemlibrary.main;
|
||||||
|
import com.yaohun.itemlibrary.manage.SortManager;
|
||||||
import me.Demon.DemonPlugin.DemonAPI;
|
import me.Demon.DemonPlugin.DemonAPI;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
|
@ -21,4 +22,17 @@ public abstract class ItemKuAPI {
|
||||||
}
|
}
|
||||||
return DemonAPI.getErrItems();
|
return DemonAPI.getErrItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ItemStack getItems(String itemKey){
|
||||||
|
SortManager sortManager = main.sortManager;
|
||||||
|
ItemStack stack = sortManager.getItemStack(itemKey);
|
||||||
|
stack.setAmount(1);
|
||||||
|
return stack;
|
||||||
|
}
|
||||||
|
public static ItemStack getItems(String itemKey,int amount){
|
||||||
|
SortManager sortManager = main.sortManager;
|
||||||
|
ItemStack stack = sortManager.getItemStack(itemKey);
|
||||||
|
stack.setAmount(amount);
|
||||||
|
return stack;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user