Class TomeSummonMinionsGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
johnsmith.enchantingoverhauled.entity.ai.goal.TomeSummonMinionsGoal
public class TomeSummonMinionsGoal
extends net.minecraft.world.entity.ai.goal.Goal
AI Goal that directs
EnchantedTomeEntity instances to approach nearby bookshelves
and summon EnchantedBookEntity minions.
Optimized to throttle combat scan attempts, filter loaded chunk sections via
LevelChunkSection.maybeHas(Predicate), and cap 3D A* pathfinding checks
to at most the 3 closest non-visible shelves.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Constructor Details
-
TomeSummonMinionsGoal
-
-
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
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.goal.Goal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classnet.minecraft.world.entity.ai.goal.Goal
-
stop
public void stop()- Overrides:
stopin classnet.minecraft.world.entity.ai.goal.Goal
-