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;
}
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;
}
Aggregations