class BeeEntity.PollinateGoal extends BeeEntity.NotAngryGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private Predicate<BlockState> |
flowerPredicate |
private int |
lastPollinationTick |
private Vec3d |
nextTarget |
private int |
pollinationTicks |
private boolean |
running |
private int |
ticks |
Constructor and Description |
---|
PollinateGoal() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeeContinue() |
boolean |
canBeeStart() |
private void |
cancel() |
private boolean |
completedPollination() |
private Optional<BlockPos> |
findFlower(Predicate<BlockState> predicate,
double searchDistance) |
private Optional<BlockPos> |
getFlower() |
private float |
getRandomOffset() |
private boolean |
isRunning() |
private void |
moveToNextTarget() |
void |
start() |
void |
stop() |
void |
tick() |
canStart, shouldContinue
canStop, getControls, setControls, toString
private final Predicate<BlockState> flowerPredicate
private int pollinationTicks
private int lastPollinationTick
private boolean running
private Vec3d nextTarget
private int ticks
public boolean canBeeStart()
canBeeStart
in class BeeEntity.NotAngryGoal
public boolean canBeeContinue()
canBeeContinue
in class BeeEntity.NotAngryGoal
private boolean completedPollination()
private boolean isRunning()
private void cancel()
private void moveToNextTarget()
private float getRandomOffset()
private Optional<BlockPos> findFlower(Predicate<BlockState> predicate, double searchDistance)