public class ItemConfigBuilder extends AbstractCraftBuilder<org.bukkit.inventory.ItemStack,ItemConfigBuilder>
限定符和类型 | 字段和说明 |
---|---|
protected short |
data |
protected java.util.Map<org.bukkit.enchantments.Enchantment,java.lang.Integer> |
enchants |
protected java.util.Set<org.bukkit.inventory.ItemFlag> |
flags |
protected java.util.List<java.lang.String> |
lore |
protected java.lang.String |
name |
protected @NotNull java.util.function.Function<java.lang.String,java.lang.String> |
paramFormatter |
protected @NotNull java.lang.String[] |
params |
protected org.bukkit.Material |
type |
构造器和说明 |
---|
ItemConfigBuilder() |
限定符和类型 | 方法和说明 |
---|---|
@NotNull ConfiguredItem |
build() |
protected @Nullable org.bukkit.inventory.ItemStack |
buildDefault() |
protected java.lang.String[] |
buildParams() |
ItemConfigBuilder |
defaultDataID(short dataID) |
ItemConfigBuilder |
defaultEnchant(@NotNull org.bukkit.enchantments.Enchantment enchant,
int level) |
ItemConfigBuilder |
defaultEnchants(@NotNull java.util.Map<org.bukkit.enchantments.Enchantment,java.lang.Integer> enchants) |
ItemConfigBuilder |
defaultFlags(org.bukkit.inventory.ItemFlag... flags) |
ItemConfigBuilder |
defaultFlags(@NotNull java.util.Set<org.bukkit.inventory.ItemFlag> flags) |
ItemConfigBuilder |
defaultLore(@NotNull java.util.List<java.lang.String> lore) |
ItemConfigBuilder |
defaultLore(java.lang.String... lore) |
ItemConfigBuilder |
defaultName(@Nullable java.lang.String name) |
ItemConfigBuilder |
defaults(@NotNull org.bukkit.Material type,
short data,
@Nullable java.lang.String name,
@NotNull java.util.List<java.lang.String> lore) |
ItemConfigBuilder |
defaults(@NotNull org.bukkit.Material type,
short data,
@Nullable java.lang.String name,
java.lang.String... lore) |
ItemConfigBuilder |
defaults(@NotNull org.bukkit.Material type,
@Nullable java.lang.String name,
java.lang.String... lore) |
ItemConfigBuilder |
defaultType(@NotNull org.bukkit.Material type) |
ItemConfigBuilder |
formatParam(@NotNull java.util.function.UnaryOperator<java.lang.String> paramFormatter) |
protected @NotNull ItemConfigBuilder |
getThis() |
ItemConfigBuilder |
params(@NotNull java.util.List<java.lang.String> params) |
ItemConfigBuilder |
params(java.lang.String... params) |
protected org.bukkit.Material type
protected short data
protected java.lang.String name
protected java.util.List<java.lang.String> lore
protected java.util.Map<org.bukkit.enchantments.Enchantment,java.lang.Integer> enchants
protected java.util.Set<org.bukkit.inventory.ItemFlag> flags
@NotNull protected @NotNull java.lang.String[] params
@NotNull protected @NotNull java.util.function.Function<java.lang.String,java.lang.String> paramFormatter
public ItemConfigBuilder defaults(@NotNull @NotNull org.bukkit.Material type, @Nullable @Nullable java.lang.String name, @NotNull java.lang.String... lore)
public ItemConfigBuilder defaults(@NotNull @NotNull org.bukkit.Material type, short data, @Nullable @Nullable java.lang.String name, @NotNull java.lang.String... lore)
public ItemConfigBuilder defaults(@NotNull @NotNull org.bukkit.Material type, short data, @Nullable @Nullable java.lang.String name, @NotNull @NotNull java.util.List<java.lang.String> lore)
public ItemConfigBuilder defaultType(@NotNull @NotNull org.bukkit.Material type)
public ItemConfigBuilder defaultName(@Nullable @Nullable java.lang.String name)
public ItemConfigBuilder defaultDataID(short dataID)
public ItemConfigBuilder defaultLore(@NotNull java.lang.String... lore)
public ItemConfigBuilder defaultLore(@NotNull @NotNull java.util.List<java.lang.String> lore)
public ItemConfigBuilder defaultEnchants(@NotNull @NotNull java.util.Map<org.bukkit.enchantments.Enchantment,java.lang.Integer> enchants)
public ItemConfigBuilder defaultEnchant(@NotNull @NotNull org.bukkit.enchantments.Enchantment enchant, int level)
public ItemConfigBuilder defaultFlags(@NotNull @NotNull java.util.Set<org.bukkit.inventory.ItemFlag> flags)
public ItemConfigBuilder defaultFlags(@NotNull org.bukkit.inventory.ItemFlag... flags)
public ItemConfigBuilder formatParam(@NotNull @NotNull java.util.function.UnaryOperator<java.lang.String> paramFormatter)
public ItemConfigBuilder params(@NotNull java.lang.String... params)
public ItemConfigBuilder params(@NotNull @NotNull java.util.List<java.lang.String> params)
@NotNull protected @NotNull ItemConfigBuilder getThis()
getThis
在类中 cc.carm.lib.configuration.core.builder.AbstractConfigBuilder<org.bukkit.inventory.ItemStack,ItemConfigBuilder,CraftConfigProvider>
@Nullable protected @Nullable org.bukkit.inventory.ItemStack buildDefault()
@NotNull public @NotNull ConfiguredItem build()
build
在类中 cc.carm.lib.configuration.core.builder.AbstractConfigBuilder<org.bukkit.inventory.ItemStack,ItemConfigBuilder,CraftConfigProvider>
protected final java.lang.String[] buildParams()
Copyright © 2024. All rights reserved.