Class UseItemGoal<T extends MobEntity>

    • Field Detail

      • canUseSelector

        private final java.util.function.Predicate<? super T extends MobEntity> canUseSelector
      • finishUsingSound

        private final SoundEvent finishUsingSound
    • Constructor Detail

      • UseItemGoal

        public UseItemGoal​(T p_i50319_1_,
                           ItemStack p_i50319_2_,
                           @Nullable
                           SoundEvent p_i50319_3_,
                           java.util.function.Predicate<? super T> p_i50319_4_)
    • Method Detail

      • canUse

        public boolean canUse()
        Specified by:
        canUse in class Goal
      • start

        public void start()
        Overrides:
        start in class Goal
      • stop

        public void stop()
        Overrides:
        stop in class Goal