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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public interface Loot {
|
||||
*/
|
||||
boolean disableStats();
|
||||
|
||||
String getLootGroup();
|
||||
String[] getLootGroup();
|
||||
|
||||
/**
|
||||
* Get the game config
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user