Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic interface AlternativeReward extends BaseReward
| Modifier and Type | Method and Description |
|---|---|
default Item |
getDisplayItem()
Retrieves the display item for this alternative reward.
|
default String |
getIdentifier()
Gets the unique identifier for this crate reward.
|
Item |
getItem()
Deprecated.
This method is deprecated and will be removed in the future.
Instead of using
It is recommended to start using |
default double |
getWeight()
Gets the weight of this reward used for weighted-random selection.
|
default List<? extends Item> |
getWinItems()
Gets the list of items the player will win when they receive this alternative reward.
|
default boolean |
isAlternative()
Overrides the method from BaseReward to indicate if this is an alternative reward.
|
boolean |
isEnabled()
Checks if this alternative reward is enabled.
|
boolean |
isVirtual()
Deprecated.
This method is deprecated and will be removed in the future.
Instead of using This method is only provided for compatibility with the older system and should not be used going forward. |
getWinCommands, isBroadcast, isSharePlayersOnline
boolean isEnabled()
@Deprecated Item getItem()
This method is deprecated and will be removed in the future.
Instead of using getItem(), you should use getDisplayItem().
It is recommended to start using getDisplayItem() immediately for better compatibility with future versions.
@Deprecated boolean isVirtual()
This method is deprecated and will be removed in the future.
Instead of using isVirtual(), you should use getDisplayItem() or getWinItems().
This method is only provided for compatibility with the older system and should not be used going forward.
default Item getDisplayItem()
getDisplayItem in interface BaseReward
default List<? extends Item> getWinItems()
getWinItems in interface BaseReward
default boolean isAlternative()
isAlternative in interface BaseReward
default String getIdentifier()
BaseRewardgetIdentifier in interface BaseReward
default double getWeight()
BaseRewardgetWeight in interface BaseReward
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy