Search in sources :

Example 1 with IEntityFoxPet

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;
}
Also used : IEntityFoxPet(simplepets.brainsynder.api.entity.passive.IEntityFoxPet) ItemBuilder(simple.brainsynder.api.ItemBuilder)

Example 2 with IEntityFoxPet

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()));
    }
}
Also used : IEntityFoxPet(simplepets.brainsynder.api.entity.passive.IEntityFoxPet)

Example 3 with IEntityFoxPet

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()));
    }
}
Also used : IEntityFoxPet(simplepets.brainsynder.api.entity.passive.IEntityFoxPet)

Example 4 with IEntityFoxPet

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());
    }
}
Also used : IEntityFoxPet(simplepets.brainsynder.api.entity.passive.IEntityFoxPet)

Example 5 with IEntityFoxPet

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());
    }
}
Also used : IEntityFoxPet(simplepets.brainsynder.api.entity.passive.IEntityFoxPet)

Aggregations

IEntityFoxPet (simplepets.brainsynder.api.entity.passive.IEntityFoxPet)6 ItemBuilder (simple.brainsynder.api.ItemBuilder)1