Class RangeAttackActionGoal<T extends AbstractPlant & IRangedAttacker>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.AbstractActionGoal<T>
nokunami.floral_warfare.common.entity.ai.goal.plants.attack.RangeAttackActionGoal<T>
public class RangeAttackActionGoal<T extends AbstractPlant & IRangedAttacker>
extends AbstractActionGoal<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.plants.AbstractActionGoal
aggressive, isActionPerformed, isAnimStarted, plant -
Constructor Summary
ConstructorsConstructorDescriptionRangeAttackActionGoal(T plant) RangeAttackActionGoal(T plant, RangeAttackActionGoal.Info info) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintprotected voidprotected voidbooleanvoidsetLookAtEntity(net.minecraft.world.entity.LivingEntity entity) booleanvoidtick()booleanMethods inherited from class nokunami.floral_warfare.common.entity.ai.goal.plants.AbstractActionGoal
adjustedTickDelay, canUse, getActionSpeed, preAction, reducedTickDelay, resetCycle, setAggressive, start, stop, tickAct, timeToPerformAction, timeToStartAnim, timeToTickPostActionMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
canContinueToUse, getFlags, isInterruptable, 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 & IRangedAttacker>
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classnet.minecraft.world.entity.ai.goal.Goal
-
performAction
protected void performAction()- Overrides:
performActionin classAbstractActionGoal<T extends AbstractPlant & IRangedAttacker>
-
postAction
protected void postAction()- Overrides:
postActionin classAbstractActionGoal<T extends AbstractPlant & IRangedAttacker>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractPlant & IRangedAttacker>
-
timeToResetCycle
public boolean timeToResetCycle()- Overrides:
timeToResetCyclein classAbstractActionGoal<T extends AbstractPlant & IRangedAttacker>
-
getAmmoAmount
public int getAmmoAmount() -
setLookAtEntity
public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity) -
findTarget
protected void findTarget()
-