Class SunProducerGoal<T extends AbstractPlant & ISunProducer>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.AbstractActionGoal<T>
nokunami.floral_warfare.common.entity.ai.goal.plants.support.SunProducerGoal<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.plants.AbstractActionGoal
aggressive, isActionPerformed, isAnimStarted, plant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.Levellevel()protected voidbooleanvoidsetLookAtEntity(net.minecraft.world.entity.LivingEntity entity) booleanvoidtick()Methods inherited from class nokunami.floral_warfare.common.entity.ai.goal.plants.AbstractActionGoal
adjustedTickDelay, canUse, getActionSpeed, postAction, preAction, reducedTickDelay, resetCycle, setAggressive, start, stop, tickAct, timeToPerformAction, timeToResetCycle, timeToStartAnim, timeToTickPostActionMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
canContinueToUse, getFlags, isInterruptable, setFlags, toString
-
Field Details
-
target
public net.minecraft.world.entity.LivingEntity target
-
-
Constructor Details
-
SunProducerGoal
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classAbstractActionGoal<T extends AbstractPlant & ISunProducer>
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classnet.minecraft.world.entity.ai.goal.Goal
-
performAction
protected void performAction()- Overrides:
performActionin classAbstractActionGoal<T extends AbstractPlant & ISunProducer>
-
shouldTickAction
public boolean shouldTickAction()- Overrides:
shouldTickActionin classAbstractActionGoal<T extends AbstractPlant & ISunProducer>
-
setLookAtEntity
public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity) -
level
public net.minecraft.world.level.Level level()
-