Class GoToWantedItem<E extends LivingEntity>

java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.GoToWantedItem<E>

public class GoToWantedItem<E extends LivingEntity> extends Behavior<E>
  • Field Details

    • predicate

      private final Predicate<E extends LivingEntity> predicate
    • maxDistToWalk

      private final int maxDistToWalk
    • speedModifier

      private final float speedModifier
  • Constructor Details

    • GoToWantedItem

      public GoToWantedItem(float p_23140_, boolean p_23141_, int p_23142_)
    • GoToWantedItem

      public GoToWantedItem(Predicate<E> p_23144_, float p_23145_, boolean p_23146_, int p_23147_)
  • Method Details