Class ChompActionGoal<T extends AbstractPlant & IChomper>
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.ChompActionGoal<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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAttackReachSqr(net.minecraft.world.entity.LivingEntity target) net.minecraft.world.entity.LivingEntitybooleanisFoodWithinDistance(net.minecraft.world.entity.LivingEntity food, 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
-
ChompActionGoal
-
-
Method Details
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classAbstractActionGoal<T extends AbstractPlant & IChomper>
-
tick
public void tick()- Overrides:
tickin classAbstractActionGoal<T extends AbstractPlant & IChomper>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractPlant & IChomper>
-
getTarget
public net.minecraft.world.entity.LivingEntity getTarget() -
isFoodWithinDistance
public boolean isFoodWithinDistance(net.minecraft.world.entity.LivingEntity food, double distance) -
getAttackReachSqr
public double getAttackReachSqr(net.minecraft.world.entity.LivingEntity target)
-