Interface WardenBehavior
- All Superinterfaces:
CreatureBehavior
,EntityBehavior
,Updatable
Represents Warden Behaviors
-
Method Summary
Modifier and TypeMethodDescriptiondig
(int duration) Makes this Warden dig into the ground.emerge
(int duration) Makes this Warden emerge from the ground.roar()
Makes this Warden roar.Sets the Warden's Disturbance Location.sniff
(int duration) Makes this Warden sniff for players.Makes this Warden perform a Sonic Boom.Methods inherited from interface me.gamercoder215.mobchip.ai.behavior.CreatureBehavior
followTemptation, followTemptation, followTemptation, panic, panic, tryFindWater, tryFindWater
Methods inherited from interface me.gamercoder215.mobchip.ai.behavior.EntityBehavior
backupIfClose, backupIfClose, eraseIf, interactWithDoor, jumpOnBed, jumpOnBed, meleeAttack, meleeAttack, moveToWantedItem, moveToWantedItem, moveToWantedItem, passiveIf, reactToBell, ringBell, sleep, socializeAtBell, wakeUp
Methods inherited from interface me.gamercoder215.mobchip.ai.schedule.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_TARGET
andEntityMemory.WALKING_TARGET
for 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_EMERGING
and removesEntityMemory.WALKING_TARGET
for you.This behavior requires
EntityMemory.LOOKING_TARGET
to be registered.- Parameters:
duration
- How long the warden should emerge- Returns:
- Result of Behavior
-
roar
Makes this Warden roar.This behavior requires
EntityMemory.ROAR_TARGET
to be present,EntityMemory.ATTACK_TARGET
to be absent.- Returns:
- Result of Behavior
-
sonicBoom
Makes this Warden perform a Sonic Boom.This behavior requires
EntityMemory.ATTACK_TARGET
to be present.- Returns:
- Result of Behavior
-
sniff
Makes this Warden sniff for players.This behavior requires
EntityMemory.IS_SNIFFING
to 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
-