Search in sources :

Example 1 with IEntityWitherPet

use of simplepets.brainsynder.api.entity.hostile.IEntityWitherPet in project SimplePets by brainsynder-Dev.

the class WitherShield method getItem.

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

Example 2 with IEntityWitherPet

use of simplepets.brainsynder.api.entity.hostile.IEntityWitherPet 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;
}
Also used : ItemBuilder(simple.brainsynder.api.ItemBuilder) IEntityWitherPet(simplepets.brainsynder.api.entity.hostile.IEntityWitherPet)

Aggregations

ItemBuilder (simple.brainsynder.api.ItemBuilder)2 IEntityWitherPet (simplepets.brainsynder.api.entity.hostile.IEntityWitherPet)2