Class MeleeAttack
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Mob>
net.minecraft.world.entity.ai.behavior.MeleeAttack
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_23521_, Mob p_23522_) private LivingEntity
getAttackTarget
(Mob p_23533_) private boolean
isHoldingUsableProjectileWeapon
(Mob p_23528_) protected void
start
(ServerLevel p_23524_, Mob p_23525_, long p_23526_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
cooldownBetweenAttacks
private final int cooldownBetweenAttacks
-
-
Constructor Details
-
MeleeAttack
public MeleeAttack(int p_23512_)
-
-
Method Details