Class LookAtGoal

    • Field Detail

      • lookAt

        protected Entity lookAt
      • lookDistance

        protected final float lookDistance
      • lookTime

        private int lookTime
      • probability

        protected final float probability
      • lookAtType

        protected final java.lang.Class<? extends LivingEntity> lookAtType
    • Constructor Detail

      • LookAtGoal

        public LookAtGoal​(MobEntity p_i1631_1_,
                          java.lang.Class<? extends LivingEntity> p_i1631_2_,
                          float p_i1631_3_)
      • LookAtGoal

        public LookAtGoal​(MobEntity p_i1632_1_,
                          java.lang.Class<? extends LivingEntity> p_i1632_2_,
                          float p_i1632_3_,
                          float p_i1632_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
      • tick

        public void tick()
        Overrides:
        tick in class Goal