Class GoToCelebrateLocation<E extends Mob>

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

public class GoToCelebrateLocation<E extends Mob> extends Behavior<E>
  • Field Details

    • closeEnoughDist

      private final int closeEnoughDist
    • speedModifier

      private final float speedModifier
  • Constructor Details

    • GoToCelebrateLocation

      public GoToCelebrateLocation(int p_23057_, float p_23058_)
  • Method Details

    • start

      protected void start(ServerLevel p_23064_, Mob p_23065_, long p_23066_)
      Overrides:
      start in class Behavior<E extends Mob>
    • getNearbyPos

      private static BlockPos getNearbyPos(Mob p_23070_, BlockPos p_23071_)
    • getRandomOffset

      private static int getRandomOffset(Random p_23073_)
    • getCelebrateLocation

      private static BlockPos getCelebrateLocation(Mob p_23068_)