9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-30 04:19:30 +00:00
This commit is contained in:
XiaoMoMi
2024-01-12 19:39:16 +08:00
parent 75aaa02cb5
commit b3cef677ef
7 changed files with 56 additions and 14 deletions

View File

@@ -34,6 +34,7 @@ public class CFLoot implements Loot {
private String nick;
private boolean showInFinder;
private boolean disableGame;
private boolean disableGlobalAction;
private boolean disableStats;
private boolean instanceGame;
private double score;
@@ -129,6 +130,17 @@ public class CFLoot implements Loot {
return this;
}
/**
* Set whether global actions are disabled for this loot.
*
* @param disable True if statistics are disabled, false otherwise.
* @return The builder.
*/
public Builder disableGlobalActions(boolean disable) {
this.loot.disableGlobalAction = disable;
return this;
}
/**
* Set the score for this loot.
*
@@ -303,6 +315,14 @@ public class CFLoot implements Loot {
return this.disableStats;
}
/**
* Check if the loot disables global actions
*/
@Override
public boolean disableGlobalAction() {
return this.disableGlobalAction;
}
/**
* Get the loot group of this loot.
*

View File

@@ -34,6 +34,11 @@ public interface Loot {
*/
boolean instanceGame();
/**
* Check if the loot disables global actions
*/
boolean disableGlobalAction();
/**
* Get the unique ID of this loot.
*