9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 03:49:07 +00:00

improve weight modifiers

This commit is contained in:
XiaoMoMi
2023-09-08 02:56:44 +08:00
parent 0e7bda8d4e
commit f56169c56e
11 changed files with 125 additions and 25 deletions

View File

@@ -36,5 +36,7 @@ public interface PlaceholderManager {
String parse(@Nullable OfflinePlayer player, String text, Map<String, String> placeholders);
String parseCacheable(Player player, String text);
List<String> parse(@Nullable OfflinePlayer player, List<String> list, Map<String, String> replacements);
}

View File

@@ -21,7 +21,7 @@ public class CFLoot implements Loot {
private boolean disableStats;
private boolean instanceGame;
private double score;
private String lootGroup;
private String[] lootGroup;
public CFLoot(String id, LootType type) {
this.id = id;
@@ -77,8 +77,8 @@ public class CFLoot implements Loot {
return this;
}
public Builder lootGroup(String group) {
this.loot.lootGroup = group;
public Builder lootGroup(String[] groups) {
this.loot.lootGroup = groups;
return this;
}
@@ -148,7 +148,7 @@ public class CFLoot implements Loot {
}
@Override
public String getLootGroup() {
public String[] getLootGroup() {
return lootGroup;
}

View File

@@ -71,7 +71,7 @@ public interface Loot {
*/
boolean disableStats();
String getLootGroup();
String[] getLootGroup();
/**
* Get the game config

View File

@@ -17,6 +17,8 @@
package net.momirealms.customfishing.api.mechanic.loot;
import org.bukkit.entity.Player;
public interface Modifier {
double modify(double weight);
double modify(Player player, double weight);
}