Class SearchForItemsGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.idark.valoria.registries.entity.ai.goals.SearchForItemsGoal
public class SearchForItemsGoal
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
-
Constructor Summary
ConstructorDescriptionSearchForItemsGoal
(net.minecraft.world.entity.PathfinderMob pMob, Predicate<net.minecraft.world.entity.item.ItemEntity> pAllowedItems) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, stop, toString
-
Field Details
-
mob
public net.minecraft.world.entity.PathfinderMob mob -
allowed
-
-
Constructor Details
-
SearchForItemsGoal
public SearchForItemsGoal(net.minecraft.world.entity.PathfinderMob pMob, Predicate<net.minecraft.world.entity.item.ItemEntity> pAllowedItems)
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUse
in classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()- Overrides:
tick
in classnet.minecraft.world.entity.ai.goal.Goal
-
start
public void start()- Overrides:
start
in classnet.minecraft.world.entity.ai.goal.Goal
-