Class PlantAttackGoal<T extends BasePlant & IRangedAttacker>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.attack.PlantAttackGoal<T>
public class PlantAttackGoal<T extends BasePlant & IRangedAttacker>
extends net.minecraft.world.entity.ai.goal.Goal
-
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlantAttackGoal(T plant) PlantAttackGoal(T plant, boolean aimAtLocInstead) PlantAttackGoal(T plant, double minimumRange, double maximumRange) PlantAttackGoal(T abstractPlant, PlantAttackGoal.GoalInfo info) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()voidcheckAndPerformActions(net.minecraft.world.entity.Entity target, double distance) booleanbooleanreset()voidsetLookAtEntity(net.minecraft.world.entity.LivingEntity entity) voidstart()voidstop()voidtick()booleanbooleanMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Field Details
-
plant
-
postAttackRandomDelay
public boolean postAttackRandomDelay -
verticalOffset
public double verticalOffset -
aimAtLocInstead
public boolean aimAtLocInstead -
minRange
public double minRange -
maxRange
public double maxRange -
isAnimStarted
public boolean isAnimStarted -
isActionPerformed
public boolean isActionPerformed
-
-
Constructor Details
-
PlantAttackGoal
-
PlantAttackGoal
-
PlantAttackGoal
-
PlantAttackGoal
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classnet.minecraft.world.entity.ai.goal.Goal
-
start
public void start()- Overrides:
startin classnet.minecraft.world.entity.ai.goal.Goal
-
stop
public void stop()- Overrides:
stopin classnet.minecraft.world.entity.ai.goal.Goal
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.goal.Goal
-
checkAndPerformActions
public void checkAndPerformActions(net.minecraft.world.entity.Entity target, double distance) -
timeToStartAnim
public boolean timeToStartAnim() -
timeToStartShooting
public boolean timeToStartShooting() -
reset
public boolean reset() -
setLookAtEntity
public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity)
-