Class AbstractActionGoal<T extends AbstractPlant & IPlantAction>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.AbstractActionGoal<T>
- Direct Known Subclasses:
ChompActionGoal,ExplodeActionGoal,PlantSupportGoal1,RangeAttackActionGoal,SunProducerGoal
public abstract class AbstractActionGoal<T extends AbstractPlant & IPlantAction>
extends net.minecraft.world.entity.ai.goal.Goal
-
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
FieldsModifier and TypeFieldDescriptionbooleanbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadjustedTickDelay(int adjustment) booleancanUse()floatprotected voidprotected voidprotected voidstatic intreducedTickDelay(int reduction) protected voidvoidsetAggressive(boolean shouldBeAggressive) booleanvoidstart()voidstop()voidtick()protected voidtickAct()booleanbooleanbooleanbooleanMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
canContinueToUse, getFlags, isInterruptable, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
plant
-
isAnimStarted
public boolean isAnimStarted -
isActionPerformed
public boolean isActionPerformed -
aggressive
public boolean aggressive
-
-
Constructor Details
-
AbstractActionGoal
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein 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
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.goal.Goal
-
tickAct
protected void tickAct() -
preAction
protected void preAction() -
performAction
protected void performAction() -
postAction
protected void postAction() -
resetCycle
protected void resetCycle() -
shouldTickAction
public boolean shouldTickAction() -
timeToStartAnim
public boolean timeToStartAnim() -
timeToPerformAction
public boolean timeToPerformAction() -
timeToTickPostAction
public boolean timeToTickPostAction() -
timeToResetCycle
public boolean timeToResetCycle() -
getActionSpeed
public float getActionSpeed() -
adjustedTickDelay
public int adjustedTickDelay(int adjustment) - Overrides:
adjustedTickDelayin classnet.minecraft.world.entity.ai.goal.Goal
-
reducedTickDelay
public static int reducedTickDelay(int reduction) -
setAggressive
public void setAggressive(boolean shouldBeAggressive)
-