Package net.minecraft.entity.passive
Class BeeEntity.MoveToHiveGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.BeeEntity.NotAngryGoal
net.minecraft.entity.passive.BeeEntity.MoveToHiveGoal
- Enclosing class:
- BeeEntity
public class BeeEntity.MoveToHiveGoal extends BeeEntity.NotAngryGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private Pathpathprivate List<BlockPos>possibleHivesprivate intticksprivate intticksUntilLost -
Constructor Summary
Constructors Constructor Description MoveToHiveGoal() -
Method Summary
Modifier and Type Method Description private voidaddPossibleHive(BlockPos pos)booleancanBeeContinue()booleancanBeeStart()private voidclearPossibleHives()private booleanisCloseEnough(BlockPos pos)private booleanisPossibleHive(BlockPos pos)private voidmakeChosenHivePossibleHive()private voidsetLost()voidstart()private booleanstartMovingToFar(BlockPos pos)voidstop()voidtick()Methods inherited from class net.minecraft.entity.passive.BeeEntity.NotAngryGoal
canStart, shouldContinueMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
ticks
private int ticks -
possibleHives
-
path
-
ticksUntilLost
private int ticksUntilLost
-
-
Constructor Details
-
MoveToHiveGoal
MoveToHiveGoal()
-
-
Method Details
-
canBeeStart
public boolean canBeeStart()- Specified by:
canBeeStartin classBeeEntity.NotAngryGoal
-
canBeeContinue
public boolean canBeeContinue()- Specified by:
canBeeContinuein classBeeEntity.NotAngryGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
startMovingToFar
-
isPossibleHive
-
addPossibleHive
-
clearPossibleHives
private void clearPossibleHives() -
makeChosenHivePossibleHive
private void makeChosenHivePossibleHive() -
setLost
private void setLost() -
isCloseEnough
-