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 int
distanceToPoi
private BlockPos
poiPos
private AbstractRaiderEntity
raider
private double
speedModifier
private boolean
stuck
private 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 boolean
canContinueToUse()
boolean
canUse()
private boolean
hasNotVisited(BlockPos p_220860_1_)
private boolean
hasSuitablePoi()
private boolean
isValidRaid()
void
start()
void
stop()
void
tick()
private void
updateVisited()
-
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:
canContinueToUse
in classGoal
-
hasNotVisited
private boolean hasNotVisited(BlockPos p_220860_1_)
-
updateVisited
private void updateVisited()
-
-