use of simplepets.brainsynder.api.entity.hostile.IEntityZombiePet in project SimplePets by brainsynder-Dev.
the class Shaking method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("shaking", 0);
if (entityPet instanceof IEntityZombiePet) {
IEntityZombiePet var = (IEntityZombiePet) entityPet;
item.withName(item.getName().replace("%value%", String.valueOf(var.isShaking())));
}
return item;
}
use of simplepets.brainsynder.api.entity.hostile.IEntityZombiePet in project SimplePets by brainsynder-Dev.
the class Arms method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("arms", 0);
if (entityPet instanceof IEntityZombiePet) {
IEntityZombiePet var = (IEntityZombiePet) entityPet;
item.withName(item.getName().replace("%value%", String.valueOf(var.isArmsRaised())));
} else if (entityPet instanceof ISkeletonAbstract) {
ISkeletonAbstract var = (ISkeletonAbstract) entityPet;
item.withName(item.getName().replace("%value%", String.valueOf(var.isArmsRaised())));
}
return item;
}
use of simplepets.brainsynder.api.entity.hostile.IEntityZombiePet in project SimplePets by brainsynder-Dev.
the class Arms method onLeftClick.
@Override
public void onLeftClick() {
if (entityPet instanceof IEntityZombiePet) {
IEntityZombiePet pet = (IEntityZombiePet) entityPet;
pet.setArmsRaised(!pet.isArmsRaised());
}
if (entityPet instanceof ISkeletonAbstract) {
ISkeletonAbstract pet = (ISkeletonAbstract) entityPet;
pet.setArmsRaised(!pet.isArmsRaised());
}
}
Aggregations