use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class MooshroomColor method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
List<ItemBuilder> items = new ArrayList<>();
for (MooshroomType type : MooshroomType.values()) {
ItemBuilder builder = type.getIcon();
builder.withName("&6Color: &e" + WordUtils.capitalize(type.name().toLowerCase()));
items.add(builder);
}
return items;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class ParrotColor method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
List<ItemBuilder> items = new ArrayList<>();
ItemBuilder item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 11);
item.withName("&9Blue");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 9);
item.withName("&3Cyan");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 8);
item.withName("&7Gray");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 13);
item.withName("&2Green");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 14);
item.withName("&cRed");
items.add(item);
return items;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class PufferSize method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("puffersize", 0);
if (getEntityPet() instanceof IEntityPufferFishPet) {
IEntityPufferFishPet var = (IEntityPufferFishPet) getEntityPet();
PufferState typeID = PufferState.SMALL;
if (var.getPuffState() != null)
typeID = var.getPuffState();
PufferState prev = PufferState.getPrevious(typeID);
PufferState next = PufferState.getNext(typeID);
List<String> lore = new ArrayList<>();
for (Object s : (JSONArray) item.toJSON().get("lore")) {
String str = String.valueOf(s);
lore.add(str.replace("%prev_state%", WordUtils.capitalize(prev.name().toLowerCase().replace("_", " "))).replace("%curr_state%", WordUtils.capitalize(typeID.name().toLowerCase().replace("_", " "))).replace("%next_state%", WordUtils.capitalize(next.name().toLowerCase().replace("_", " "))));
}
item.withLore(lore);
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class PufferSize method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
List<ItemBuilder> items = new ArrayList<>();
ItemBuilder item = ItemBuilder.getSkull(simple.brainsynder.utils.SkullType.PLAYER);
item.setTexture("http://textures.minecraft.net/texture/17152876bc3a96dd2a2299245edb3beef647c8a56ac8853a687c3e7b5d8bb");
item.withName(" ");
item.addLore("&6Previous: &7%prev_state%", "&6Current: &e%curr_state%", "&6Next: &7%next_state%");
items.add(item);
return items;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class RabbitColor method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
List<ItemBuilder> items = new ArrayList<>();
ItemBuilder item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 15);
item.withName("&6Black");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 12);
item.withName("&6Brown");
items.add(item);
item = new ItemBuilder(Material.GOLD_BLOCK);
item.withName("&6Golden");
items.add(item);
item = ItemBuilder.getColored(MatType.WOOL, 0);
item.withName("&6Black and White");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 7);
item.withName("&6Salt and Pepper");
items.add(item);
item = new ItemBuilder(Material.REDSTONE_BLOCK);
item.withName("&6Killer Bunny");
items.add(item);
item = new ItemBuilder(Material.QUARTZ_BLOCK);
item.withName("&6White");
items.add(item);
return items;
}
Aggregations