Implement some chat colors/messages, coin drops, lobby lifecycle
This commit is contained in:
@@ -1,14 +1,29 @@
|
||||
package gg.malloc.defense.engine;
|
||||
package gg.malloc.defense.ui;
|
||||
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.Material;
|
||||
|
||||
import de.tr7zw.nbtapi.NBTItem;
|
||||
import de.tr7zw.nbtapi.NBTCompound;
|
||||
|
||||
public class Items {
|
||||
static ItemStack makeBombHelmet() {
|
||||
public static ItemStack makeCoins() {
|
||||
ItemStack coinItem = new ItemStack(Material.IRON_NUGGET);
|
||||
ItemMeta meta = coinItem.getItemMeta();
|
||||
meta.setCustomModelData(93197);
|
||||
coinItem.setItemMeta(meta);
|
||||
|
||||
NBTItem nbt = new NBTItem(coinItem);
|
||||
nbt.addCompound("malloc").setInteger("coinValue", 1);
|
||||
|
||||
return nbt.getItem();
|
||||
}
|
||||
|
||||
public static ItemStack makeBombHelmet() {
|
||||
ItemStack bombItem = new ItemStack(Material.CARVED_PUMPKIN);
|
||||
ItemMeta meta = bombItem.getItemMeta();
|
||||
meta.setCustomModelData(0);
|
||||
meta.setCustomModelData(33197);
|
||||
bombItem.setItemMeta(meta);
|
||||
return bombItem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user