Package net.minecraft.entity.raid
Class RaiderEntity.AttackHomeGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.raid.RaiderEntity.AttackHomeGoal
- Enclosing class:
- RaiderEntity
static class RaiderEntity.AttackHomeGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
-
Constructor Summary
Constructors Constructor Description AttackHomeGoal(RaiderEntity raider, double speed, int distance) -
Method Summary
Modifier and Type Method Description private booleancanLootHome(BlockPos pos)booleancanStart()private booleanisRaiding()private voidpurgeMemory()booleanshouldContinue()voidstart()voidstop()voidtick()private booleantryFindHome()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
raider
-
speed
private final double speed -
home
-
lastHomes
-
distance
private final int distance -
finished
private boolean finished
-
-
Constructor Details
-
AttackHomeGoal
-
-
Method Details
-
canStart
public boolean canStart() -
isRaiding
private boolean isRaiding() -
tryFindHome
private boolean tryFindHome() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal
-
stop
public void stop() -
start
public void start() -
tick
public void tick() -
canLootHome
-
purgeMemory
private void purgeMemory()
-