Search in sources :

Example 1 with IEntityWolfPet

use of simplepets.brainsynder.api.entity.passive.IEntityWolfPet in project SimplePets by brainsynder-Dev.

the class Tilt method getItem.

@Override
public ItemBuilder getItem() {
    ItemBuilder item = type.getDataItemByName("tilt", 0);
    if (entityPet instanceof IEntityWolfPet) {
        IEntityWolfPet var = (IEntityWolfPet) entityPet;
        item.withName(item.getName().replace("%value%", String.valueOf(var.isHeadTilted())));
    }
    return item;
}
Also used : ItemBuilder(simple.brainsynder.api.ItemBuilder) IEntityWolfPet(simplepets.brainsynder.api.entity.passive.IEntityWolfPet)

Example 2 with IEntityWolfPet

use of simplepets.brainsynder.api.entity.passive.IEntityWolfPet in project SimplePets by brainsynder-Dev.

the class Angry method getItem.

@Override
public ItemBuilder getItem() {
    ItemBuilder item = type.getDataItemByName("angry", 0);
    if (item != null) {
        if (entityPet instanceof IEntityWolfPet) {
            IEntityWolfPet var = (IEntityWolfPet) entityPet;
            item.withName(item.getName().replace("%value%", String.valueOf(var.isAngry())));
        }
    }
    return item;
}
Also used : ItemBuilder(simple.brainsynder.api.ItemBuilder) IEntityWolfPet(simplepets.brainsynder.api.entity.passive.IEntityWolfPet)

Aggregations

ItemBuilder (simple.brainsynder.api.ItemBuilder)2 IEntityWolfPet (simplepets.brainsynder.api.entity.passive.IEntityWolfPet)2