use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class HorseArmor method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = null;
if (entityPet instanceof IEntityHorsePet) {
IEntityHorsePet var = (IEntityHorsePet) entityPet;
int typeID = 0;
if (var.getArmor() != null) {
typeID = var.getArmor().getId();
}
switch(typeID) {
case 0:
item = type.getDataItemByName("horsearmor", 0);
break;
case 1:
item = type.getDataItemByName("horsearmor", 1);
break;
case 2:
item = type.getDataItemByName("horsearmor", 2);
break;
case 3:
item = type.getDataItemByName("horsearmor", 3);
break;
}
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class HorseStyle method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
List<ItemBuilder> items = new ArrayList<>();
ItemBuilder item = new ItemBuilder(Utilities.fetchMaterial("LEASH", "LEAD"));
item.withName("&6None");
items.add(item.clone());
item.withName("&6Black Spots");
items.add(item.clone());
item.withName("&6White Dots");
items.add(item.clone());
item.withName("&6White Field");
items.add(item.clone());
item.withName("&6White");
items.add(item.clone());
return items;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class HorseStyle method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("horsestyle", 0);
if (entityPet instanceof IEntityHorsePet) {
IEntityHorsePet var = (IEntityHorsePet) entityPet;
HorseStyleType typeID = HorseStyleType.NONE;
if (var.getStyle() != null) {
typeID = var.getStyle();
}
switch(typeID) {
case NONE:
item = type.getDataItemByName("horsestyle", 0);
break;
case BLACK_DOTS:
item = type.getDataItemByName("horsestyle", 1);
break;
case WHITE_DOTS:
item = type.getDataItemByName("horsestyle", 2);
break;
case WHITEFIELD:
item = type.getDataItemByName("horsestyle", 3);
break;
case WHITE:
item = type.getDataItemByName("horsestyle", 4);
break;
}
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class LlamaColor method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
List<ItemBuilder> items = new ArrayList<>();
ItemBuilder item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 4);
item.withName("&6Creamy");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 12);
item.withName("&6Brown");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 7);
item.withName("&6Gray");
items.add(item);
item = ItemBuilder.getColored(simple.brainsynder.utils.MatType.WOOL, 0);
item.withName("&6White");
items.add(item);
return items;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Age method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
ItemBuilder item = new ItemBuilder(Material.WHEAT);
item.withName("&6Baby: &e%value%");
return new ArrayList<>(Collections.singleton(item));
}
Aggregations