use of simplepets.brainsynder.api.entity.passive.IEntityFoxPet in project SimplePets by brainsynder-Dev.
the class FoxColor method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName(getTargetName(), 0);
if (entityPet instanceof IEntityFoxPet) {
IEntityFoxPet var = (IEntityFoxPet) entityPet;
item = type.getDataItemByName(getTargetName(), var.getFoxType().ordinal());
}
return item;
}
use of simplepets.brainsynder.api.entity.passive.IEntityFoxPet in project SimplePets by brainsynder-Dev.
the class FoxColor method onLeftClick.
@Override
public void onLeftClick() {
if (entityPet instanceof IEntityFoxPet) {
IEntityFoxPet var = (IEntityFoxPet) entityPet;
var.setFoxType(FoxType.getNext(var.getFoxType()));
}
}
use of simplepets.brainsynder.api.entity.passive.IEntityFoxPet in project SimplePets by brainsynder-Dev.
the class FoxColor method onRightClick.
@Override
public void onRightClick() {
if (entityPet instanceof IEntityFoxPet) {
IEntityFoxPet var = (IEntityFoxPet) entityPet;
var.setFoxType(FoxType.getPrevious(var.getFoxType()));
}
}
use of simplepets.brainsynder.api.entity.passive.IEntityFoxPet in project SimplePets by brainsynder-Dev.
the class FoxSleep method onLeftClick.
@Override
public void onLeftClick() {
if (entityPet instanceof IEntityFoxPet) {
IEntityFoxPet var = entityPet;
var.setSleeping(!var.isSleeping());
}
}
use of simplepets.brainsynder.api.entity.passive.IEntityFoxPet in project SimplePets by brainsynder-Dev.
the class FoxAngry method onLeftClick.
@Override
public void onLeftClick() {
if (entityPet instanceof IEntityFoxPet) {
IEntityFoxPet var = entityPet;
var.setAggressive(!var.isAggressive());
}
}
Aggregations