Class AbstractActionGoal<T extends net.minecraft.world.entity.Mob & IFWAction>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal<T>
- Direct Known Subclasses:
ChompActionGoal,ExplodeActionGoal,PlantActionGoal,PlantSupportGoal1,RangeAttackActionGoal,SunProducerGoal,ZombieAttackActionGoal
public abstract class AbstractActionGoal<T extends net.minecraft.world.entity.Mob & IFWAction>
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 TypeMethodDescriptionbooleancanUse()protected ActionConfigconfig()protected ActionIntervalfloatprotected intprotected intprotected intprotected ActionRangegetRange()protected intprotected voidprotected voidprotected voidbooleanprotected voidprotected booleanvoidsetAggressive(boolean shouldBeAggressive) booleanvoidstart()voidstop()voidtick()protected voidtickAct()booleanbooleanbooleanbooleanMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Field Details
-
entity
-
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
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin 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
-
config
-
getActionInterval
-
getRange
-
getInterval
protected int getInterval() -
getPreDelay
protected int getPreDelay() -
getPostDelay
protected int getPostDelay() -
getStartAnimationDelay
protected int getStartAnimationDelay() -
resetRepeats
protected boolean resetRepeats() -
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() -
setAggressive
public void setAggressive(boolean shouldBeAggressive)
-