Class LayEggInNestGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
com.lightning.northstar.entity.goals.LayEggInNestGoal

public class LayEggInNestGoal extends net.minecraft.world.entity.ai.goal.MoveToBlockGoal
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal

    net.minecraft.world.entity.ai.goal.Goal.Flag
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoal

    blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
  • Constructor Summary

    Constructors
    Constructor
    Description
    LayEggInNestGoal(MarsWormEntity pRemoverMob, double pSpeedModifier, int pSearchRange)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    boolean
     
    protected boolean
    isValidTarget(net.minecraft.world.level.LevelReader pLevel, net.minecraft.core.BlockPos pPos)
    Return true to set given position as destination
    void
    playBreakSound(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos)
     
    void
    playDestroyProgressSound(net.minecraft.world.level.LevelAccessor pLevel, net.minecraft.core.BlockPos pPos)
     
    void
    Execute a one shot task or start executing a continuous task
    void
    Reset the task's internal state.
    void
    Keep ticking a continuous task that has already been started

    Methods inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoal

    canContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, shouldRecalculatePath

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LayEggInNestGoal

      public LayEggInNestGoal(MarsWormEntity pRemoverMob, double pSpeedModifier, int pSearchRange)
  • Method Details

    • acceptedDistance

      public double acceptedDistance()
      Overrides:
      acceptedDistance in class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
    • canUse

      public boolean canUse()
      Overrides:
      canUse in class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
    • stop

      public void stop()
      Reset the task's internal state. Called when this task is interrupted by another one
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      Execute a one shot task or start executing a continuous task
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
    • playDestroyProgressSound

      public void playDestroyProgressSound(net.minecraft.world.level.LevelAccessor pLevel, net.minecraft.core.BlockPos pPos)
    • playBreakSound

      public void playBreakSound(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos)
    • tick

      public void tick()
      Keep ticking a continuous task that has already been started
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
    • isValidTarget

      protected boolean isValidTarget(net.minecraft.world.level.LevelReader pLevel, net.minecraft.core.BlockPos pPos)
      Return true to set given position as destination
      Specified by:
      isValidTarget in class net.minecraft.world.entity.ai.goal.MoveToBlockGoal