Search in sources :

Example 1 with IEntityBatPet

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

the class Hang method getItem.

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

Aggregations

ItemBuilder (simple.brainsynder.api.ItemBuilder)1 IEntityBatPet (simplepets.brainsynder.api.entity.passive.IEntityBatPet)1