Class Behavior<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
- All Implemented Interfaces:
- BehaviorControl<E>
- Direct Known Subclasses:
- AnimalMakeLove,- AnimalPanic,- CamelAi.RandomSitting,- CelebrateVillagersSurvivedRaid,- CountDownCooldownTicks,- Croak,- CrossbowAttack,- Digging,- Emerging,- FollowTemptation,- ForceUnmount,- GiveGiftToHero,- GoAndGiveItemsToTarget,- GoToPotentialJobSite,- HarvestFarmland,- JumpOnBed,- LongJump,- LongJumpMidJump,- LongJumpToRandomPos,- LookAndFollowTradingPlayerSink,- LookAtTargetSink,- MoveToTargetSink,- PlayDead,- PrepareRamNearestTarget,- RamTarget,- RandomLookAround,- Roar,- Shoot,- ShootTongue,- ShootWhenStuck,- ShowTradesToPlayer,- SleepInBed,- Slide,- SnifferAi.Digging,- SnifferAi.FeelingHappy,- SnifferAi.FinishedDigging,- SnifferAi.Scenting,- SnifferAi.Searching,- SnifferAi.Sniffing,- Sniffing,- SonicBoom,- Swim,- TradeWithVillager,- UseBonemeal,- VillagerMakeLove,- VillagerPanicTrigger,- WorkAtPoi
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate longprotected final Map<MemoryModuleType<?>,MemoryStatus> private final intprivate final intprivate Behavior.Status
- 
Constructor SummaryConstructorsConstructorDescriptionBehavior(Map<MemoryModuleType<?>, MemoryStatus> p_22528_) Behavior(Map<MemoryModuleType<?>, MemoryStatus> p_22530_, int p_22531_) Behavior(Map<MemoryModuleType<?>, MemoryStatus> p_22533_, int p_22534_, int p_22535_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_22545_, E p_22546_, long p_22547_) protected booleancheckExtraStartConditions(ServerLevel p_22538_, E p_22539_) final voiddoStop(ServerLevel p_22563_, E p_22564_, long p_22565_) protected booleanhasRequiredMemories(E p_22544_) protected voidstart(ServerLevel p_22540_, E p_22541_, long p_22542_) protected voidstop(ServerLevel p_22548_, E p_22549_, long p_22550_) protected voidtick(ServerLevel p_22551_, E p_22552_, long p_22553_) final voidtickOrStop(ServerLevel p_22559_, E p_22560_, long p_22561_) protected booleantimedOut(long p_22537_) final booleantryStart(ServerLevel p_22555_, E p_22556_, long p_22557_) 
- 
Field Details- 
DEFAULT_DURATIONpublic static final int DEFAULT_DURATION- See Also:
 
- 
entryCondition
- 
status
- 
endTimestampprivate long endTimestamp
- 
minDurationprivate final int minDuration
- 
maxDurationprivate final int maxDuration
 
- 
- 
Constructor Details- 
Behavior
- 
Behavior
- 
Behavior
 
- 
- 
Method Details- 
getStatus- Specified by:
- getStatusin interface- BehaviorControl<E extends LivingEntity>
 
- 
tryStart- Specified by:
- tryStartin interface- BehaviorControl<E extends LivingEntity>
 
- 
start
- 
tickOrStop- Specified by:
- tickOrStopin interface- BehaviorControl<E extends LivingEntity>
 
- 
tick
- 
doStop- Specified by:
- doStopin interface- BehaviorControl<E extends LivingEntity>
 
- 
stop
- 
canStillUse
- 
timedOutprotected boolean timedOut(long p_22537_) 
- 
checkExtraStartConditions
- 
debugString- Specified by:
- debugStringin interface- BehaviorControl<E extends LivingEntity>
 
- 
hasRequiredMemories
 
-