Package net.minecraft.entity.passive
Class RabbitEntity.RaidFarmGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveToBlockGoal
-
- net.minecraft.entity.passive.RabbitEntity.RaidFarmGoal
-
- Enclosing class:
- RabbitEntity
static class RabbitEntity.RaidFarmGoal extends MoveToBlockGoal
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
canRaid
private RabbitEntity
rabbit
private boolean
wantsToRaid
-
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
-
Constructor Summary
Constructors Constructor Description RaidFarmGoal(RabbitEntity p_i45860_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected boolean
isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
acceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, shouldRecalculatePath, start
-
-
-
-
Field Detail
-
rabbit
private final RabbitEntity rabbit
-
wantsToRaid
private boolean wantsToRaid
-
canRaid
private boolean canRaid
-
-
Constructor Detail
-
RaidFarmGoal
public RaidFarmGoal(RabbitEntity p_i45860_1_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classMoveToBlockGoal
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classMoveToBlockGoal
-
tick
public void tick()
- Overrides:
tick
in classMoveToBlockGoal
-
isValidTarget
protected boolean isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
- Specified by:
isValidTarget
in classMoveToBlockGoal
-
-