Search in sources :

Example 1 with IEntityPandaPet

use of simplepets.brainsynder.api.entity.passive.IEntityPandaPet in project SimplePets by brainsynder-Dev.

the class PandaSit method onLeftClick.

@Override
public void onLeftClick() {
    if (entityPet instanceof IEntityPandaPet) {
        IEntityPandaPet panda = entityPet;
        panda.setScared(!panda.isScared());
    }
}
Also used : IEntityPandaPet(simplepets.brainsynder.api.entity.passive.IEntityPandaPet)

Example 2 with IEntityPandaPet

use of simplepets.brainsynder.api.entity.passive.IEntityPandaPet in project SimplePets by brainsynder-Dev.

the class PandaPlay method onLeftClick.

@Override
public void onLeftClick() {
    if (entityPet instanceof IEntityPandaPet) {
        IEntityPandaPet panda = entityPet;
        panda.setPlaying(!panda.isPlaying());
    }
}
Also used : IEntityPandaPet(simplepets.brainsynder.api.entity.passive.IEntityPandaPet)

Example 3 with IEntityPandaPet

use of simplepets.brainsynder.api.entity.passive.IEntityPandaPet in project SimplePets by brainsynder-Dev.

the class PandaType method onLeftClick.

@Override
public void onLeftClick() {
    if (entityPet instanceof IEntityPandaPet) {
        IEntityPandaPet panda = entityPet;
        panda.setGene(PandaGene.getNext(panda.getGene()));
    }
}
Also used : IEntityPandaPet(simplepets.brainsynder.api.entity.passive.IEntityPandaPet)

Example 4 with IEntityPandaPet

use of simplepets.brainsynder.api.entity.passive.IEntityPandaPet in project SimplePets by brainsynder-Dev.

the class PandaSleep method onLeftClick.

@Override
public void onLeftClick() {
    if (entityPet instanceof IEntityPandaPet) {
        IEntityPandaPet panda = entityPet;
        panda.setLyingOnBack(!panda.isLyingOnBack());
    }
}
Also used : IEntityPandaPet(simplepets.brainsynder.api.entity.passive.IEntityPandaPet)

Example 5 with IEntityPandaPet

use of simplepets.brainsynder.api.entity.passive.IEntityPandaPet in project SimplePets by brainsynder-Dev.

the class PandaType method onRightClick.

@Override
public void onRightClick() {
    if (entityPet instanceof IEntityPandaPet) {
        IEntityPandaPet panda = entityPet;
        panda.setGene(PandaGene.getPrevious(panda.getGene()));
    }
}
Also used : IEntityPandaPet(simplepets.brainsynder.api.entity.passive.IEntityPandaPet)

Aggregations

IEntityPandaPet (simplepets.brainsynder.api.entity.passive.IEntityPandaPet)7 ArrayList (java.util.ArrayList)1 List (java.util.List)1 WordUtils (org.apache.commons.lang.WordUtils)1 ItemBuilder (simple.brainsynder.api.ItemBuilder)1 ServerVersion (simple.brainsynder.utils.ServerVersion)1 IEntityPet (simplepets.brainsynder.api.entity.IEntityPet)1 MenuItemAbstract (simplepets.brainsynder.menu.menuItems.base.MenuItemAbstract)1 PetDefault (simplepets.brainsynder.pet.PetDefault)1 ValueType (simplepets.brainsynder.utils.ValueType)1 PandaGene (simplepets.brainsynder.wrapper.PandaGene)1