Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic interface Reward extends BaseReward
| Modifier and Type | Method and Description |
|---|---|
AlternativeReward |
getAlternative()
Retrieves an alternative reward for this crate.
|
String |
getIdentifier()
Gets the unique identifier for this crate reward.
|
default double |
getPercentage()
Deprecated.
Use
getWeight() instead. |
int |
getRequiredKeys()
Gets the number of keys required to open the crate and potentially win this reward.
|
List<String> |
getRestrictedPermissions()
Gets the list of permissions that are restricted for this reward.
|
double |
getWeight()
Gets the weight of this reward, which represents its likelihood of being won during a crate opening.
|
int |
getWinLimits()
Retrieves the win limits for this crate reward.
|
default boolean |
isAlternative()
Overrides the method from BaseReward to indicate if this is an alternative reward.
|
default boolean |
isRestricted(org.bukkit.entity.Player player)
Checks whether the given player is restricted from getting this reward.
|
getDisplayItem, getWinCommands, getWinItems, isBroadcast, isSharePlayersOnline
String getIdentifier()
getIdentifier in interface BaseReward
double getWeight()
getWeight in interface BaseReward
int getWinLimits()
List<String> getRestrictedPermissions()
default boolean isRestricted(org.bukkit.entity.Player player)
Operators (OPs) are never restricted. Otherwise, the method checks if
the player has any of the restricted permissions defined by
getRestrictedPermissions().
player - the player to checkint getRequiredKeys()
AlternativeReward getAlternative()
default boolean isAlternative()
isAlternative in interface BaseReward
@Deprecated default double getPercentage()
getWeight() instead.
This method is deprecated and only exists for cross-version compatibility.
Implementations should use getWeight() for probability calculations instead.
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy