Class ExplodeActionGoal<T extends AbstractPlant & IExplodingPlant>
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.ExplodeActionGoal<T>
public class ExplodeActionGoal<T extends AbstractPlant & IExplodingPlant>
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 TypeFieldDescriptiondoubledoublenet.minecraft.world.entity.LivingEntityFields inherited from class nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal
aggressive, entity, isActionPerformed, isAnimStarted -
Constructor Summary
ConstructorsConstructorDescriptionExplodeActionGoal(T plant) ExplodeActionGoal(T plant, ExplodeActionGoal.Info info) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()protected voidbooleanvoidsetLookAtEntity(net.minecraft.world.entity.LivingEntity entity) booleanvoidstart()voidstop()voidtick()booleanMethods inherited from class nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal
config, getActionInterval, getActionSpeed, getInterval, getPostDelay, getPreDelay, getRange, getStartAnimationDelay, performAction, postAction, resetCycle, resetRepeats, setAggressive, tickAct, timeToPerformAction, timeToResetCycle, timeToTickPostActionMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Field Details
-
minRange
public double minRange -
maxRange
public double maxRange -
target
public net.minecraft.world.entity.LivingEntity target
-
-
Constructor Details
-
ExplodeActionGoal
-
ExplodeActionGoal
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUsein classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
start
public void start()- Overrides:
startin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
stop
public void stop()- Overrides:
stopin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
tick
public void tick()- Overrides:
tickin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
preAction
protected void preAction()- Overrides:
preActionin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
timeToStartAnim
public boolean timeToStartAnim()- Overrides:
timeToStartAnimin classAbstractActionGoal<T extends AbstractPlant & IExplodingPlant>
-
setLookAtEntity
public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity)
-