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
ConstructorDescriptionRemoveBlockGoal
(net.minecraft.world.level.block.Block pBlockToRemove, net.minecraft.world.entity.PathfinderMob pRemoverMob, double pSpeedModifier, int pSearchRange) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUse()
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
start()
void
stop()
void
tick()
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
-
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 classnet.minecraft.world.entity.ai.goal.MoveToBlockGoal
-
stop
public void stop()- Overrides:
stop
in classnet.minecraft.world.entity.ai.goal.Goal
-
start
public void start()- Overrides:
start
in classnet.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 classnet.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 classnet.minecraft.world.entity.ai.goal.MoveToBlockGoal
-