public abstract class ItemModifier<S extends ItemModifier<S,R>,R>
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected @NotNull java.util.Map<java.lang.String,LoreContent<?>> |
insertLore |
protected @NotNull java.util.function.BiConsumer<org.bukkit.inventory.ItemStack,org.bukkit.entity.Player> |
itemConsumer |
protected @NotNull java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> |
itemProvider |
static @NotNull java.util.regex.Pattern |
LORE_INSERT_PATTERN |
protected @NotNull java.util.function.BiConsumer<org.bukkit.inventory.meta.ItemMeta,org.bukkit.entity.Player> |
metaConsumer |
protected @NotNull java.lang.String[] |
params |
protected @NotNull java.util.Map<java.lang.String,java.lang.Object> |
placeholders |
protected @NotNull java.lang.Object[] |
values |
限定符 | 构造器和说明 |
---|---|
protected |
ItemModifier(@NotNull java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> itemProvider) |
限定符和类型 | 方法和说明 |
---|---|
S |
addEnchantment(org.bukkit.enchantments.Enchantment e) |
S |
addEnchantment(org.bukkit.enchantments.Enchantment e,
int level) |
S |
addEnchantment(org.bukkit.enchantments.Enchantment e,
int level,
boolean ignoreLevelRestriction) |
S |
addItemFlags(org.bukkit.inventory.ItemFlag... flags) |
S |
amount(int amount) |
void |
applyTo(@Nullable org.bukkit.inventory.ItemStack item,
@Nullable org.bukkit.entity.Player player) |
protected java.util.Map<java.lang.String,java.lang.Object> |
buildPlaceholders() |
abstract R |
get(org.bukkit.entity.Player player) |
protected abstract S |
getThis() |
S |
glow() |
S |
handleItem(@NotNull java.util.function.BiConsumer<org.bukkit.inventory.ItemStack,org.bukkit.entity.Player> modifier) |
S |
handleMeta(@NotNull java.util.function.BiConsumer<org.bukkit.inventory.meta.ItemMeta,org.bukkit.entity.Player> modifier) |
S |
insertLore(@NotNull java.lang.String path,
@NotNull cc.carm.lib.configuration.core.value.type.ConfiguredList<java.lang.String> content) |
S |
insertLore(@NotNull java.lang.String path,
@NotNull ConfiguredMessage<java.lang.String> content,
java.lang.Object... params) |
S |
insertLore(@NotNull java.lang.String path,
@NotNull ConfiguredMessageList<java.lang.String> content,
java.lang.Object... params) |
S |
insertLore(@NotNull java.lang.String path,
@NotNull java.util.List<java.lang.String> content) |
S |
insertLore(@NotNull java.lang.String path,
@NotNull java.util.List<java.lang.String> content,
boolean original) |
S |
insertLore(@NotNull java.lang.String path,
@NotNull LoreContent<?> content) |
S |
insertLore(@NotNull java.lang.String path,
java.lang.String... content) |
S |
params(java.lang.String[] params) |
static java.util.List<java.lang.String> |
parseLore(@Nullable org.bukkit.entity.Player player,
@Nullable java.util.List<java.lang.String> lore,
@NotNull java.util.Map<java.lang.String,LoreContent<?>> insertedLore,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders) |
static java.util.List<java.lang.String> |
parseLoreLine(@Nullable org.bukkit.entity.Player player,
@NotNull LoreContent<?> content,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders,
@NotNull java.lang.String parsedPrefix,
int upOffset,
int downOffset) |
S |
placeholders(@NotNull java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> consumer) |
S |
placeholders(@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders) |
S |
setSkullOwner(org.bukkit.OfflinePlayer owner) |
S |
setSkullOwner(java.lang.String owner)
已过时。
Use
setSkullOwner(OfflinePlayer) instead. |
S |
setSkullOwner(java.util.UUID owner) |
S |
values(java.lang.Object... values) |
@NotNull public static final @NotNull java.util.regex.Pattern LORE_INSERT_PATTERN
@NotNull protected final @NotNull java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> itemProvider
@NotNull protected @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders
@NotNull protected @NotNull java.lang.String[] params
@NotNull protected @NotNull java.lang.Object[] values
@NotNull protected final @NotNull java.util.Map<java.lang.String,LoreContent<?>> insertLore
@NotNull protected @NotNull java.util.function.BiConsumer<org.bukkit.inventory.ItemStack,org.bukkit.entity.Player> itemConsumer
@NotNull protected @NotNull java.util.function.BiConsumer<org.bukkit.inventory.meta.ItemMeta,org.bukkit.entity.Player> metaConsumer
protected ItemModifier(@NotNull @NotNull java.util.function.Function<org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> itemProvider)
@NotNull protected abstract S getThis()
@Nullable public abstract R get(org.bukkit.entity.Player player)
public void applyTo(@Nullable @Nullable org.bukkit.inventory.ItemStack item, @Nullable @Nullable org.bukkit.entity.Player player)
public S handleMeta(@NotNull @NotNull java.util.function.BiConsumer<org.bukkit.inventory.meta.ItemMeta,org.bukkit.entity.Player> modifier)
public S handleItem(@NotNull @NotNull java.util.function.BiConsumer<org.bukkit.inventory.ItemStack,org.bukkit.entity.Player> modifier)
public S params(java.lang.String[] params)
public S values(java.lang.Object... values)
public S placeholders(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
public S placeholders(@NotNull @NotNull java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> consumer)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull @NotNull LoreContent<?> content)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull @NotNull java.util.List<java.lang.String> content)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull @NotNull java.util.List<java.lang.String> content, boolean original)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull java.lang.String... content)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull @NotNull cc.carm.lib.configuration.core.value.type.ConfiguredList<java.lang.String> content)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull @NotNull ConfiguredMessage<java.lang.String> content, @NotNull java.lang.Object... params)
public S insertLore(@NotNull @NotNull java.lang.String path, @NotNull @NotNull ConfiguredMessageList<java.lang.String> content, @NotNull java.lang.Object... params)
public S amount(int amount)
public S addEnchantment(org.bukkit.enchantments.Enchantment e)
public S addEnchantment(org.bukkit.enchantments.Enchantment e, int level)
public S addEnchantment(org.bukkit.enchantments.Enchantment e, int level, boolean ignoreLevelRestriction)
public S addItemFlags(org.bukkit.inventory.ItemFlag... flags)
public S glow()
@Deprecated public S setSkullOwner(java.lang.String owner)
setSkullOwner(OfflinePlayer)
instead.owner
- 玩家名public S setSkullOwner(java.util.UUID owner)
public S setSkullOwner(org.bukkit.OfflinePlayer owner)
protected java.util.Map<java.lang.String,java.lang.Object> buildPlaceholders()
public static java.util.List<java.lang.String> parseLore(@Nullable @Nullable org.bukkit.entity.Player player, @Nullable @Nullable java.util.List<java.lang.String> lore, @NotNull @NotNull java.util.Map<java.lang.String,LoreContent<?>> insertedLore, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
public static java.util.List<java.lang.String> parseLoreLine(@Nullable @Nullable org.bukkit.entity.Player player, @NotNull @NotNull LoreContent<?> content, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders, @NotNull @NotNull java.lang.String parsedPrefix, int upOffset, int downOffset)
Copyright © 2024. All rights reserved.