Class PlantSupportGoal1<T extends AbstractPlant & ISupportPlant>
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.support.PlantSupportGoal1<T>
public class PlantSupportGoal1<T extends AbstractPlant & ISupportPlant>
extends AbstractActionGoal<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
FieldsFields inherited from class nokunami.floral_warfare.common.entity.ai.goal.AbstractActionGoal
aggressive, entity, isActionPerformed, isAnimStarted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.Levellevel()booleanvoidsetLookAtEntity(net.minecraft.world.entity.LivingEntity entity) booleanvoidtick()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
-
Field Details
-
target
public net.minecraft.world.entity.LivingEntity target
-
-
Constructor Details
-
PlantSupportGoal1
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classAbstractActionGoal<T extends AbstractPlant & ISupportPlant>
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classAbstractActionGoal<T extends AbstractPlant & ISupportPlant>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractPlant & ISupportPlant>
-
setLookAtEntity
public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity) -
level
public net.minecraft.world.level.Level level()
-