Class CustomHurtByGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.targeting.CustomTargetGoal
nokunami.floral_warfare.common.entity.ai.goal.plants.targeting.CustomHurtByGoal
-
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
Fields inherited from class nokunami.floral_warfare.common.entity.ai.goal.plants.targeting.CustomTargetGoal
mob, mustReach, mustSee, reachCache, reachCacheTime, targetMob, unseenMemoryTicks, unseenTicks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalertOther(net.minecraft.world.entity.Mob mob, net.minecraft.world.entity.LivingEntity target) protected voidbooleancanUse()protected doublesetAlertOthers(Class<?>... pReinforcementTypes) voidstart()Execute a one shot task or start executing a continuous taskMethods inherited from class nokunami.floral_warfare.common.entity.ai.goal.plants.targeting.CustomTargetGoal
canAttack, canContinueToUse, getTarget, isInvalid, setTarget, setUnseenMemoryTicks, stopMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Constructor Details
-
CustomHurtByGoal
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
setAlertOthers
-
start
public void start()Execute a one shot task or start executing a continuous task- Overrides:
startin classCustomTargetGoal
-
alertOthers
protected void alertOthers() -
alertOther
protected void alertOther(net.minecraft.world.entity.Mob mob, net.minecraft.world.entity.LivingEntity target) -
getFollowDistance
protected double getFollowDistance()- Overrides:
getFollowDistancein classCustomTargetGoal
-