Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ItemBuilder {
- private String lore;
- private String name;
- private ItemStack it;
- private int slot;
- ItemBuilder(int slot, ItemStack it, String name, String lore){
- this.setSlot(slot);
- this.setIt(it);
- this.setName(name);
- this.setLore(lore);
- }
- public ItemStack getItem() {
- ItemStack i = it;
- ItemMeta iM = i.getItemMeta();
- iM.setDisplayName(name);
- iM.setLore(Arrays.asList(lore));
- i.setItemMeta(iM);
- return i;
- }
- public int getSlot() {
- return slot;
- }
- public void setSlot(int slot) {
- this.slot = slot;
- }
- public ItemStack getIt() {
- return it;
- }
- public void setIt(ItemStack it) {
- this.it = it;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getLore() {
- return lore;
- }
- public void setLore(String lore) {
- this.lore = lore;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement