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 booleancanStart()booleanshouldContinue()voidstart()Methods inherited from class net.minecraft.entity.ai.goal.WanderAroundGoal
getWanderTarget, ignoreChanceOnce, setChance, stopMethods 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:
canStartin classWanderAroundGoal
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classWanderAroundGoal
-
start
public void start()- Overrides:
startin classWanderAroundGoal
-