类 Behavior<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
- 所有已实现的接口:
BehaviorControl<E>
- 直接已知子类:
AnimalMakeLove
,AnimalPanic
,CamelAi.RandomSitting
,CelebrateVillagersSurvivedRaid
,CountDownCooldownTicks
,Croak
,CrossbowAttack
,Digging
,Emerging
,FollowTemptation
,ForceUnmount
,GiveGiftToHero
,GoAndGiveItemsToTarget
,GoToPotentialJobSite
,HarvestFarmland
,JumpOnBed
,LongJumpMidJump
,LongJumpToRandomPos
,LookAndFollowTradingPlayerSink
,LookAtTargetSink
,MoveToTargetSink
,PlayDead
,PrepareRamNearestTarget
,RamTarget
,RandomLookAround
,Roar
,ShootTongue
,ShowTradesToPlayer
,SleepInBed
,SnifferAi.Digging
,SnifferAi.FeelingHappy
,SnifferAi.FinishedDigging
,SnifferAi.Scenting
,SnifferAi.Searching
,SnifferAi.Sniffing
,Sniffing
,SonicBoom
,Swim
,TradeWithVillager
,UseBonemeal
,VillagerMakeLove
,VillagerPanicTrigger
,WorkAtPoi
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final int
private long
protected final Map<MemoryModuleType<?>,
MemoryStatus> private final int
private final int
private Behavior.Status
-
构造器概要
构造器构造器说明Behavior
(Map<MemoryModuleType<?>, MemoryStatus> pEntryCondition) Behavior
(Map<MemoryModuleType<?>, MemoryStatus> pEntryCondition, int pDuration) Behavior
(Map<MemoryModuleType<?>, MemoryStatus> pEntryCondition, int pMinDuration, int pMaxDuration) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel pLevel, E pEntity, long pGameTime) protected boolean
checkExtraStartConditions
(ServerLevel pLevel, E pOwner) final void
doStop
(ServerLevel pLevel, E pEntity, long pGameTime) protected boolean
hasRequiredMemories
(E pOwner) protected void
start
(ServerLevel pLevel, E pEntity, long pGameTime) protected void
stop
(ServerLevel pLevel, E pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, E pOwner, long pGameTime) final void
tickOrStop
(ServerLevel pLevel, E pEntity, long pGameTime) protected boolean
timedOut
(long pGameTime) final boolean
tryStart
(ServerLevel pLevel, E pOwner, long pGameTime)
-
字段详细资料
-
DEFAULT_DURATION
public static final int DEFAULT_DURATION- 另请参阅:
-
entryCondition
-
status
-
endTimestamp
private long endTimestamp -
minDuration
private final int minDuration -
maxDuration
private final int maxDuration
-
-
构造器详细资料
-
Behavior
-
Behavior
-
Behavior
public Behavior(Map<MemoryModuleType<?>, MemoryStatus> pEntryCondition, int pMinDuration, int pMaxDuration)
-
-
方法详细资料
-
getStatus
- 指定者:
getStatus
在接口中BehaviorControl<E extends LivingEntity>
-
tryStart
- 指定者:
tryStart
在接口中BehaviorControl<E extends LivingEntity>
-
start
-
tickOrStop
- 指定者:
tickOrStop
在接口中BehaviorControl<E extends LivingEntity>
-
tick
-
doStop
- 指定者:
doStop
在接口中BehaviorControl<E extends LivingEntity>
-
stop
-
canStillUse
-
timedOut
protected boolean timedOut(long pGameTime) -
checkExtraStartConditions
-
debugString
- 指定者:
debugString
在接口中BehaviorControl<E extends LivingEntity>
-
hasRequiredMemories
-