mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-31 04:46:36 +00:00
enchantment pool
This commit is contained in:
@@ -20,6 +20,7 @@ package net.momirealms.customfishing.api.mechanic.item;
|
||||
import de.tr7zw.changeme.nbtapi.NBTItem;
|
||||
import net.momirealms.customfishing.api.common.Pair;
|
||||
import net.momirealms.customfishing.api.common.Tuple;
|
||||
import net.momirealms.customfishing.api.mechanic.misc.Value;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemFlag;
|
||||
@@ -53,6 +54,8 @@ public interface ItemBuilder extends BuildableItem {
|
||||
|
||||
ItemBuilder randomEnchantments(List<Tuple<Double, String, Short>> enchantments, boolean store);
|
||||
|
||||
ItemBuilder enchantmentPool(List<Pair<Integer, Value>> amountPairs, List<Pair<Pair<String, Short>, Value>> enchantments, boolean store);
|
||||
|
||||
ItemBuilder maxDurability(int max);
|
||||
|
||||
ItemBuilder price(float base, float bonus);
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) <2022> <XiaoMoMi>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.momirealms.customfishing.api.mechanic.misc;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public interface Value {
|
||||
|
||||
double get(Player player);
|
||||
}
|
||||
Reference in New Issue
Block a user