Interface FrogBehavior
- All Superinterfaces:
CreatureBehavior, EntityBehavior, Updatable
Represents Behaviors for a Frog
-
Method Summary
Modifier and TypeMethodDescription@NotNull BehaviorResultcroak()Makes this frog Croak.@NotNull BehaviorResultshootTongue(Sound tongueSound, Sound eatSound) Makes this frog shoot its tongue.Methods inherited from interface CreatureBehavior
followTemptation, followTemptation, followTemptation, panic, panic, tryFindWater, tryFindWaterMethods inherited from interface EntityBehavior
backupIfClose, backupIfClose, eraseIf, interactWithDoor, jumpOnBed, jumpOnBed, meleeAttack, meleeAttack, moveToWantedItem, moveToWantedItem, moveToWantedItem, passiveIf, reactToBell, ringBell, sleep, socializeAtBell, wakeUpMethods inherited from interface Updatable
updateActivities
-
Method Details
-
shootTongue
Makes this frog shoot its tongue.This behavior requires
EntityMemory.WALKING_TARGETandEntityMemory.IS_PANICKINGto be absent,EntityMemory.LOOKING_TARGETto be registered, andEntityMemory.ATTACK_TARGETto be present.- Parameters:
tongueSound- Sound to make when tongue is shoteatSound- Sound to make when a frog eats something- Returns:
- Result of Behavior
-
croak
Makes this frog Croak.This behavior requires
EntityMemory.WALKING_TARGETto be absent.- Returns:
- Result of Behavior
-