Package net.minecraft.entity.monster
Class AbstractRaiderEntity.InvadeHomeGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.monster.AbstractRaiderEntity.InvadeHomeGoal
-
- Enclosing class:
- AbstractRaiderEntity
static class AbstractRaiderEntity.InvadeHomeGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private intdistanceToPoiprivate BlockPospoiPosprivate AbstractRaiderEntityraiderprivate doublespeedModifierprivate booleanstuckprivate java.util.List<BlockPos>visited
-
Constructor Summary
Constructors Constructor Description InvadeHomeGoal(AbstractRaiderEntity p_i50570_1_, double p_i50570_2_, int p_i50570_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()private booleanhasNotVisited(BlockPos p_220860_1_)private booleanhasSuitablePoi()private booleanisValidRaid()voidstart()voidstop()voidtick()private voidupdateVisited()-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
raider
private final AbstractRaiderEntity raider
-
speedModifier
private final double speedModifier
-
poiPos
private BlockPos poiPos
-
visited
private final java.util.List<BlockPos> visited
-
distanceToPoi
private final int distanceToPoi
-
stuck
private boolean stuck
-
-
Constructor Detail
-
InvadeHomeGoal
public InvadeHomeGoal(AbstractRaiderEntity p_i50570_1_, double p_i50570_2_, int p_i50570_4_)
-
-
Method Detail
-
isValidRaid
private boolean isValidRaid()
-
hasSuitablePoi
private boolean hasSuitablePoi()
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUsein classGoal
-
hasNotVisited
private boolean hasNotVisited(BlockPos p_220860_1_)
-
updateVisited
private void updateVisited()
-
-