Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic abstract class OpeningContext
extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OpeningContext.RandomOpeningContext
Represents a random crate opening session for a player.
|
static class |
OpeningContext.SelectiveOpeningContext
Represents a selective crate opening session for a player, where a specific reward is chosen.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<? extends Key,Integer> |
keysAmount |
protected UUID |
playerId
The player UUID associated with this crate opening session.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.entity.Player |
getPlayer()
Resolves the player from Bukkit at access-time.
|
abstract int |
getRequiredKeys()
Abstract method to get the number of required keys for this crate opening session.
|
static OpeningContext |
random(org.bukkit.entity.Player player,
boolean requireKeyInMainHand,
int openingQuantity)
Creates a crate opening context for a random crate opening session.
|
static <T extends Reward> |
selective(org.bukkit.entity.Player player,
T selectedReward)
Creates a crate opening context for a selective crate opening session.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final UUID playerId
protected Map<? extends Key,Integer> keysAmount
public org.bukkit.entity.Player getPlayer()
IllegalStateException - when the player cannot be resolved.public abstract int getRequiredKeys()
public static OpeningContext random(org.bukkit.entity.Player player, boolean requireKeyInMainHand, int openingQuantity)
player - The player participating in the session.requireKeyInMainHand - Whether the key is required to be in the player's main hand.public static <T extends Reward> OpeningContext selective(org.bukkit.entity.Player player, T selectedReward)
T - The type of reward.player - The player participating in the session.selectedReward - The specific crate reward selected for the session.
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy