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