Interface WardenBehavior
- All Superinterfaces:
CreatureBehavior, EntityBehavior, Updatable
Represents Warden Behaviors
-
Method Summary
Modifier and TypeMethodDescription@NotNull BehaviorResultdig(int duration) Makes this Warden dig into the ground.@NotNull BehaviorResultemerge(int duration) Makes this Warden emerge from the ground.@NotNull BehaviorResultroar()Makes this Warden roar.@NotNull BehaviorResultsetDisturbanceLocation(@NotNull Location loc) Sets the Warden's Disturbance Location.@NotNull BehaviorResultsniff(int duration) Makes this Warden sniff for players.@NotNull BehaviorResultMakes this Warden perform a Sonic Boom.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
-
setDisturbanceLocation
Sets the Warden's Disturbance Location.This behavior does not require any memories.
- Parameters:
loc- Location of Disturbance- Returns:
- Result of Behavior
-
dig
Makes this Warden dig into the ground.This method removes
EntityMemory.ATTACK_TARGETandEntityMemory.WALKING_TARGETfor you.- Parameters:
duration- How long the warden should dig- Returns:
- Result of Behavior
-
emerge
Makes this Warden emerge from the ground.This method sets
EntityMemory.IS_EMERGINGand removesEntityMemory.WALKING_TARGETfor you.This behavior requires
EntityMemory.LOOKING_TARGETto be registered.- Parameters:
duration- How long the warden should emerge- Returns:
- Result of Behavior
-
roar
Makes this Warden roar.This behavior requires
EntityMemory.ROAR_TARGETto be present,EntityMemory.ATTACK_TARGETto be absent.- Returns:
- Result of Behavior
-
sonicBoom
Makes this Warden perform a Sonic Boom.This behavior requires
EntityMemory.ATTACK_TARGETto be present.- Returns:
- Result of Behavior
-
sniff
Makes this Warden sniff for players.This behavior requires
EntityMemory.IS_SNIFFINGto be present, and the following memories to be absent:This behavior also requires the following memories to be registered:
- Parameters:
duration- How long to sniff, in ticks- Returns:
- Result of Behavior
-