Interface Kit
- All Superinterfaces:
DataSerializable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommand
(String command) Adding a command to the kit.asMenu
(org.spongepowered.plugin.PluginContainer container, ServerPlayer carrier, boolean readOnly) Getting the contents of the kit in the menu with the specified number of lines.
All changes made will be automatically saved.static Kit.Builder
builder()
Getting a copy of the items in the kit.long
Time until access to the kit is restored.A list of commands to be executed when a kit is giving.int
How many times a given set can be given to a player.The rule for giving a kit to a player.Obtaining kit price data.getLocalizedLore
(Locale locale) Localized kit loregetLocalizedName
(Locale locale) Localized kit nameid()
kit idboolean
Should the kit be given to the player upon first entry.boolean
Should the kit be given to the player upon entering the game.
The time of restoration of access to the kit is taken into account.boolean
Whether to check if the player has permission to get a set.default boolean
Permission to getting a kit.void
removeCommand
(String command) Removing a command from the kit.void
save()
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
builder
-
id
String id()kit id -
getLocalizedName
Localized kit name -
getLocalizedLore
Localized kit lore -
getContent
Getting a copy of the items in the kit. -
getGiveRule
GiveRule getGiveRule()The rule for giving a kit to a player. -
getCooldown
long getCooldown()Time until access to the kit is restored. -
getGiveLimit
int getGiveLimit()How many times a given set can be given to a player. -
isFirstTime
boolean isFirstTime()Should the kit be given to the player upon first entry. -
isGiveOnJoin
boolean isGiveOnJoin()Should the kit be given to the player upon entering the game.
The time of restoration of access to the kit is taken into account. -
isNeedPerm
boolean isNeedPerm()Whether to check if the player has permission to get a set. -
permission
String permission()Permission to getting a kit. -
getExecuteCommands
A list of commands to be executed when a kit is giving. -
addCommand
Adding a command to the kit. -
removeCommand
Removing a command from the kit. -
getKitPrice
Obtaining kit price data. -
isUnlimited
default boolean isUnlimited() -
asMenu
InventoryMenu asMenu(org.spongepowered.plugin.PluginContainer container, ServerPlayer carrier, boolean readOnly) Getting the contents of the kit in the menu with the specified number of lines.
All changes made will be automatically saved. -
save
void save()
-