Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic interface CrateType
| Modifier and Type | Method and Description |
|---|---|
List<? extends Reward> |
getAvailableRewards()
Returns a cached list of rewards that are currently valid.
|
CrateBlockType |
getBlockType()
Gets the type of block this crate uses.
|
List<String> |
getBroadcastMessage()
Returns the broadcast message sent when a reward is won.
|
String |
getDisplayName()
Retrieves the display name of the crate.
|
EngineData |
getEngineData()
Retrieves the engine data related to this crate.
|
EngineType |
getEngineType()
Gets the engine type associated with this crate.
|
GuaranteedRewardType |
getGuaranteedRewardType()
Returns the type of guaranteed reward associated with this crate type.
|
default List<String> |
getHologramLines()
Deprecated.
|
default double |
getHologramOffset()
Deprecated.
|
default HologramProperties |
getHologramProperties()
Retrieves the hologram properties configuration associated with this instance.
|
String |
getIdentifier()
Gets the unique identifier for this crate.
|
Set<String> |
getLinkedKeysIds()
Gets the set of key identifiers linked to this crate.
|
int |
getOpenCooldownSeconds()
Gets the cooldown time (in seconds) between openings of this crate.
|
double |
getOpenMoneyCost()
Gets the money cost required to open the crate.
|
String |
getPermission()
Gets the permission string required to open this crate, if applicable.
|
List<? extends Reward> |
getRegisteredRewards()
Returns a list of registered rewards.
|
Reward |
getRewardByIdentifier(String identifier)
Returns the registered reward with the given identifier.
|
String |
getRewardsMenuName()
Returns the name of the rewards menu for this crate.
|
String |
getSelectRewardMenuName()
Returns the name of the select reward menu.
|
boolean |
isEnabled()
Checks if this crate is enabled.
|
default boolean |
isGuaranteedRewardDisabled() |
boolean |
isKeyRequired()
Checks if a key is required to open this crate.
|
boolean |
isPermissionRequired()
Checks whether a permission is required to open this crate.
|
boolean |
isPreviewItemEnabled()
Returns whether players can preview the crate item before opening.
|
boolean |
isSimultaneousOpeningsEnabled()
Returns whether multiple players can open this crate simultaneously.
|
boolean isEnabled()
String getIdentifier()
String getDisplayName()
CrateBlockType getBlockType()
CrateBlockType used for the crate.EngineType getEngineType()
EngineType for this crate.EngineData getEngineData()
EngineData containing the crate's engine configuration.double getOpenMoneyCost()
int getOpenCooldownSeconds()
boolean isSimultaneousOpeningsEnabled()
boolean isPreviewItemEnabled()
boolean isPermissionRequired()
String getPermission()
default HologramProperties getHologramProperties()
HologramProperties containing all hologram-related settings and data@ApiStatus.ScheduledForRemoval @Deprecated default List<String> getHologramLines()
This method is deprecated and scheduled for removal; use
HologramProperties.get(String) instead.
@ApiStatus.ScheduledForRemoval @Deprecated default double getHologramOffset()
This method is deprecated and scheduled for removal; use
HologramProperties.getOffset() instead.
String getRewardsMenuName()
String getSelectRewardMenuName()
List<String> getBroadcastMessage()
boolean isKeyRequired()
Set<String> getLinkedKeysIds()
GuaranteedRewardType getGuaranteedRewardType()
default boolean isGuaranteedRewardDisabled()
List<? extends Reward> getRegisteredRewards()
These rewards may be disabled or invalid, if you
need only available rewards use getAvailableRewards()
List<? extends Reward> getAvailableRewards()
Caches the result to avoid repeatedly filtering the full reward list. If the cache is invalidated, it will be rebuilt on next access.
Reward getRewardByIdentifier(String identifier)
Performs a case-insensitive match against the reward identifiers.
identifier - the identifier of the reward to fetchnull if not found
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy