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