Class RemoveBlockGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
com.idark.valoria.registries.entity.ai.goals.RemoveBlockGoal

public class RemoveBlockGoal 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
    RemoveBlockGoal(net.minecraft.world.level.block.Block pBlockToRemove, net.minecraft.world.entity.PathfinderMob pRemoverMob, double pSpeedModifier, int pSearchRange)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected boolean
    isValidTarget(net.minecraft.world.level.LevelReader pLevel, net.minecraft.core.BlockPos pPos)
     
    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
     
    void
     
    void
     

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

    acceptedDistance, 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

    • RemoveBlockGoal

      public RemoveBlockGoal(net.minecraft.world.level.block.Block pBlockToRemove, net.minecraft.world.entity.PathfinderMob pRemoverMob, double pSpeedModifier, int pSearchRange)
  • Method Details

    • canUse

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

      public void stop()
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      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()
      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)
      Specified by:
      isValidTarget in class net.minecraft.world.entity.ai.goal.MoveToBlockGoal