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 boolean
canLootHome(BlockPos pos)
boolean
canStart()
private boolean
isRaiding()
private void
purgeMemory()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
private boolean
tryFindHome()
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:
shouldContinue
in classGoal
-
stop
public void stop() -
start
public void start() -
tick
public void tick() -
canLootHome
-
purgeMemory
private void purgeMemory()
-