Class ChargeAtTargetGoal

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

public class ChargeAtTargetGoal 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
    ChargeAtTargetGoal(VenusStoneBullEntity mob, double pSpeedModifier, int pSearchRange)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    net.minecraft.world.phys.Vec3
    blockPosToVec3(net.minecraft.core.BlockPos pos)
     
    boolean
     
    boolean
    Returns whether execution should begin.
    protected boolean
    isValidTarget(net.minecraft.world.level.LevelReader pLevel, net.minecraft.core.BlockPos pPos)
    Return true to set given position as destination
    protected void
     
    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

    findNearestBlock, getMoveToTarget, isReachedTarget, 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

    • ChargeAtTargetGoal

      public ChargeAtTargetGoal(VenusStoneBullEntity mob, 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()
      Returns whether execution should begin. You can also read and cache any state necessary for execution in this method as well.
      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
    • blockPosToVec3

      public net.minecraft.world.phys.Vec3 blockPosToVec3(net.minecraft.core.BlockPos pos)
    • canContinueToUse

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

      protected void moveMobToBlock()
      Overrides:
      moveMobToBlock 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