Package net.minecraft.entity.mob
Class SilverfishEntity.WanderAndInfestGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WanderAroundGoal
net.minecraft.entity.mob.SilverfishEntity.WanderAndInfestGoal
- Enclosing class:
- SilverfishEntity
static class SilverfishEntity.WanderAndInfestGoal extends WanderAroundGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.WanderAroundGoal
chance, ignoringChance, mob, speed, targetX, targetY, targetZ
-
Constructor Summary
Constructors Constructor Description WanderAndInfestGoal(SilverfishEntity silverfish)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
Methods inherited from class net.minecraft.entity.ai.goal.WanderAroundGoal
getWanderTarget, ignoreChanceOnce, setChance, stop
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
direction
-
canInfest
private boolean canInfest
-
-
Constructor Details
-
WanderAndInfestGoal
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classWanderAroundGoal
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classWanderAroundGoal
-
start
public void start()- Overrides:
start
in classWanderAroundGoal
-