Class RandomWalkingGoal

    • Field Detail

      • wantedX

        protected double wantedX
      • wantedY

        protected double wantedY
      • wantedZ

        protected double wantedZ
      • speedModifier

        protected final double speedModifier
      • interval

        protected int interval
      • forceTrigger

        protected boolean forceTrigger
      • checkNoActionTime

        private boolean checkNoActionTime
    • Constructor Detail

      • RandomWalkingGoal

        public RandomWalkingGoal​(CreatureEntity p_i1648_1_,
                                 double p_i1648_2_)
      • RandomWalkingGoal

        public RandomWalkingGoal​(CreatureEntity p_i45887_1_,
                                 double p_i45887_2_,
                                 int p_i45887_4_)
      • RandomWalkingGoal

        public RandomWalkingGoal​(CreatureEntity p_i231550_1_,
                                 double p_i231550_2_,
                                 int p_i231550_4_,
                                 boolean p_i231550_5_)
    • Method Detail

      • canUse

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

        @Nullable
        protected Vector3d getPosition()
      • start

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

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

        public void trigger()
      • setInterval

        public void setInterval​(int p_179479_1_)