Class Rabbit.RaidGardenGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.world.entity.animal.Rabbit.RaidGardenGoal
- Enclosing class:
- Rabbit
- 
Nested Class Summary
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoalblockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanisValidTarget(LevelReader p_29785_, BlockPos p_29786_) voidtick()Methods inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoalacceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, shouldRecalculatePath, startMethods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, stop, toString
- 
Field Details- 
rabbit
- 
wantsToRaidprivate boolean wantsToRaid
- 
canRaidprivate boolean canRaid
 
- 
- 
Constructor Details- 
RaidGardenGoal
 
- 
- 
Method Details- 
canUsepublic boolean canUse()- Overrides:
- canUsein class- MoveToBlockGoal
 
- 
canContinueToUsepublic boolean canContinueToUse()- Overrides:
- canContinueToUsein class- MoveToBlockGoal
 
- 
tickpublic void tick()- Overrides:
- tickin class- MoveToBlockGoal
 
- 
isValidTarget- Specified by:
- isValidTargetin class- MoveToBlockGoal
 
 
-