Search in sources :

Example 1 with IEntityPolarBearPet

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

the class Stand method getItem.

@Override
public ItemBuilder getItem() {
    ItemBuilder item = type.getDataItemByName("stand", 0);
    if (entityPet instanceof IEntityArmorStandPet) {
        IEntityArmorStandPet var = (IEntityArmorStandPet) entityPet;
        item.withName(item.getName().replace("%value%", String.valueOf(var.isSmall())));
    } else if (entityPet instanceof IEntityPolarBearPet) {
        IEntityPolarBearPet var = (IEntityPolarBearPet) entityPet;
        item.withName(item.getName().replace("%value%", String.valueOf(var.isStanding())));
    }
    return item;
}
Also used : ItemBuilder(simple.brainsynder.api.ItemBuilder) IEntityArmorStandPet(simplepets.brainsynder.api.entity.ambient.IEntityArmorStandPet) IEntityPolarBearPet(simplepets.brainsynder.api.entity.passive.IEntityPolarBearPet)

Aggregations

ItemBuilder (simple.brainsynder.api.ItemBuilder)1 IEntityArmorStandPet (simplepets.brainsynder.api.entity.ambient.IEntityArmorStandPet)1 IEntityPolarBearPet (simplepets.brainsynder.api.entity.passive.IEntityPolarBearPet)1