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