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
FieldsFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckExtraStartConditions(ServerLevel p_23521_, Mob p_23522_)private LivingEntitygetAttackTarget(Mob p_23533_)private booleanisHoldingUsableProjectileWeapon(Mob p_23528_)protected voidstart(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