mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-30 04:19:30 +00:00
2.0.11
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user