public class ItemStackFactory
extends java.lang.Object
构造器和说明 |
---|
ItemStackFactory(org.bukkit.inventory.ItemStack is) |
ItemStackFactory(org.bukkit.Material type) |
ItemStackFactory(org.bukkit.Material type,
int amount) |
ItemStackFactory(org.bukkit.Material type,
int amount,
int data) |
ItemStackFactory(org.bukkit.Material type,
int amount,
short data) |
限定符和类型 | 方法和说明 |
---|---|
ItemStackFactory |
addEnchant(@NotNull org.bukkit.enchantments.Enchantment enchant,
int level,
boolean ignoreLevelRestriction) |
ItemStackFactory |
addFlag(@NotNull org.bukkit.inventory.ItemFlag flag) |
ItemStackFactory |
addLore(@NotNull java.lang.String s) |
ItemStackFactory |
removeEnchant(@NotNull org.bukkit.enchantments.Enchantment enchant) |
ItemStackFactory |
removeFlag(@NotNull org.bukkit.inventory.ItemFlag flag) |
ItemStackFactory |
setAmount(int a) |
ItemStackFactory |
setDisplayName(@NotNull java.lang.String name) |
ItemStackFactory |
setDurability(int i) |
ItemStackFactory |
setLore(@NotNull java.util.List<java.lang.String> loreList) |
ItemStackFactory |
setType(org.bukkit.Material type) |
ItemStackFactory |
setUnbreakable(boolean unbreakable) |
org.bukkit.inventory.ItemStack |
toItemStack() |
public ItemStackFactory(org.bukkit.inventory.ItemStack is)
public ItemStackFactory(org.bukkit.Material type)
public ItemStackFactory(org.bukkit.Material type, int amount)
public ItemStackFactory(org.bukkit.Material type, int amount, short data)
public ItemStackFactory(org.bukkit.Material type, int amount, int data)
public org.bukkit.inventory.ItemStack toItemStack()
public ItemStackFactory setType(org.bukkit.Material type)
public ItemStackFactory setDurability(int i)
public ItemStackFactory setAmount(int a)
public ItemStackFactory setDisplayName(@NotNull @NotNull java.lang.String name)
public ItemStackFactory setLore(@NotNull @NotNull java.util.List<java.lang.String> loreList)
public ItemStackFactory addLore(@NotNull @NotNull java.lang.String s)
public ItemStackFactory addEnchant(@NotNull @NotNull org.bukkit.enchantments.Enchantment enchant, int level, boolean ignoreLevelRestriction)
public ItemStackFactory removeEnchant(@NotNull @NotNull org.bukkit.enchantments.Enchantment enchant)
public ItemStackFactory addFlag(@NotNull @NotNull org.bukkit.inventory.ItemFlag flag)
public ItemStackFactory removeFlag(@NotNull @NotNull org.bukkit.inventory.ItemFlag flag)
public ItemStackFactory setUnbreakable(boolean unbreakable)
Copyright © 2024. All rights reserved.