Class RangeAttackActionGoal<T extends AbstractPlant>
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.plants.attack.RangeAttackActionGoal<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleandoubledoublebooleannet.minecraft.world.entity.LivingEntitydoubleFields inherited from class nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal
aggressive, entity, isActionPerformed, isAnimStarted -
Constructor Summary
ConstructorsConstructorDescriptionRangeAttackActionGoal(T plant) RangeAttackActionGoal(T plant, RangeAttackActionGoal.Info info) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanvoidsetLookAtEntity(net.minecraft.world.entity.LivingEntity entity) booleanvoidtick()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
-
Field Details
-
postAttackRandomDelay
public boolean postAttackRandomDelay -
verticalOffset
public double verticalOffset -
aimAtLocInstead
public boolean aimAtLocInstead -
minRange
public double minRange -
maxRange
public double maxRange -
target
public net.minecraft.world.entity.LivingEntity target
-
-
Constructor Details
-
RangeAttackActionGoal
-
RangeAttackActionGoal
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classAbstractActionGoal<T extends AbstractPlant>
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classAbstractActionGoal<T extends AbstractPlant>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractPlant>
-
setLookAtEntity
public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity) -
findTarget
protected void findTarget()
-