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

    Fields
    Modifier and Type
    Field
    Description
    Predicate<net.minecraft.world.entity.item.ItemEntity>
     
    net.minecraft.world.entity.PathfinderMob
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SearchForItemsGoal(net.minecraft.world.entity.PathfinderMob pMob, Predicate<net.minecraft.world.entity.item.ItemEntity> pAllowedItems)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, canContinueToUse, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, stop, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • mob

      public net.minecraft.world.entity.PathfinderMob mob
    • allowed

      public Predicate<net.minecraft.world.entity.item.ItemEntity> 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 class net.minecraft.world.entity.ai.goal.Goal
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.Goal