Class ZombieAttackActionGoal<T extends AbstractBrainMuncher & IFWAction>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal<T>
nokunami.floral_warfare.common.entity.ai.goal.zombies.ZombieAttackActionGoal<T>
public class ZombieAttackActionGoal<T extends AbstractBrainMuncher & IFWAction>
extends AbstractActionGoal<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Field Summary
Fields inherited from class nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal
aggressive, entity, isActionPerformed, isAnimStarted -
Constructor Summary
ConstructorsConstructorDescriptionZombieAttackActionGoal(T actionZombie) ZombieAttackActionGoal(T actionZombie, boolean shouldAttackBeacon) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoublegetAttackReachSqr(net.minecraft.world.entity.LivingEntity target) doubledoublegetPerceivedDistanceForMelee(net.minecraft.core.BlockPos pos) net.minecraft.world.entity.LivingEntitybooleanisCloseToBeacon(net.minecraft.core.BlockPos pos) booleanisTargetWithinDistance(net.minecraft.world.entity.LivingEntity target, double distance) booleanbooleanvoidtick()Methods inherited from class nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal
canUse, config, getActionInterval, getActionSpeed, getInterval, getPostDelay, getPreDelay, getRange, getStartAnimationDelay, performAction, postAction, preAction, resetCycle, resetRepeats, setAggressive, start, stop, tickAct, timeToPerformAction, timeToResetCycle, timeToStartAnim, timeToTickPostActionMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Constructor Details
-
ZombieAttackActionGoal
-
ZombieAttackActionGoal
-
-
Method Details
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classAbstractActionGoal<T extends AbstractBrainMuncher & IFWAction>
-
tick
public void tick()- Overrides:
tickin classAbstractActionGoal<T extends AbstractBrainMuncher & IFWAction>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractBrainMuncher & IFWAction>
-
getTarget
public net.minecraft.world.entity.LivingEntity getTarget() -
isTargetWithinDistance
public boolean isTargetWithinDistance(net.minecraft.world.entity.LivingEntity target, double distance) -
getAttackReachSqr
public double getAttackReachSqr(net.minecraft.world.entity.LivingEntity target) -
attackBeacon
public void attackBeacon() -
getPerceivedDistanceForMelee
public double getPerceivedDistanceForMelee(net.minecraft.core.BlockPos pos) -
getMeleeAttackReferencePosition
public double getMeleeAttackReferencePosition() -
isCloseToBeacon
public boolean isCloseToBeacon(net.minecraft.core.BlockPos pos)
-