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 Path
path
private List<BlockPos>
possibleHives
private int
ticks
private int
ticksUntilLost
-
Constructor Summary
Constructors Constructor Description MoveToHiveGoal()
-
Method Summary
Modifier and Type Method Description private void
addPossibleHive(BlockPos pos)
boolean
canBeeContinue()
boolean
canBeeStart()
private void
clearPossibleHives()
private boolean
isCloseEnough(BlockPos pos)
private boolean
isPossibleHive(BlockPos pos)
private void
makeChosenHivePossibleHive()
private void
setLost()
void
start()
private boolean
startMovingToFar(BlockPos pos)
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.passive.BeeEntity.NotAngryGoal
canStart, shouldContinue
Methods 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:
canBeeStart
in classBeeEntity.NotAngryGoal
-
canBeeContinue
public boolean canBeeContinue()- Specified by:
canBeeContinue
in 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
-