use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Spell method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = null;
if (entityPet instanceof IEntityWizard) {
IEntityWizard var = (IEntityWizard) entityPet;
WizardSpell typeID = var.getSpell();
switch(typeID) {
case BLINDNESS:
item = type.getDataItemByName("spell", 0);
break;
case DISAPPEAR:
item = type.getDataItemByName("spell", 1);
break;
case FANGS:
item = type.getDataItemByName("spell", 2);
break;
case NONE:
item = type.getDataItemByName("spell", 3);
break;
case SUMMON_VEX:
item = type.getDataItemByName("spell", 4);
break;
case WOLOLO:
item = type.getDataItemByName("spell", 5);
break;
}
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class WitherSize method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("withersize", 0);
if (entityPet instanceof IEntityWitherPet) {
IEntityWitherPet var = (IEntityWitherPet) entityPet;
item.withName(item.getName().replace("%value%", String.valueOf(var.isSmall())));
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Nectar method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
ItemBuilder item = ItemBuilder.getSkull(SkullType.PLAYER).setTexture("http://textures.minecraft.net/texture/b727d0ab03f5cd022f8705d3f7f133ca4920eae8e1e47b5074433a137e691e4e");
item.withName("&6Has Nectar: &e%value%");
return new ArrayList<>(Collections.singleton(item));
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Sitting method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("sitting", 0);
if (entityPet instanceof ITameable) {
ITameable var = (ITameable) entityPet;
item.withName(item.getName().replace("%value%", String.valueOf(var.isSitting())));
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Sitting method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
ItemBuilder item = new ItemBuilder(Utilities.fetchMaterial("WOOD_STAIRS", "OAK_STAIRS"));
item.withName("&6Sitting: &e%value%");
return new ArrayList<>(Collections.singleton(item));
}
Aggregations