class BeeEntity.PollinateGoal extends BeeEntity.PassiveGoal
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.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 java.util.Optional<BlockPos> |
findFlower(java.util.function.Predicate<BlockState> p_226500_1_,
double distance) |
private java.util.Optional<BlockPos> |
getFlower() |
private float |
getRandomOffset() |
private boolean |
isRunning() |
private void |
moveToNextTarget() |
void |
resetTask() |
void |
startExecuting() |
void |
tick() |
shouldContinueExecuting, shouldExecutegetMutexFlags, isPreemptible, setMutexFlags, toStringprivate final java.util.function.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.PassiveGoalpublic boolean canBeeContinue()
canBeeContinue in class BeeEntity.PassiveGoalprivate boolean completedPollination()
private boolean isRunning()
private void cancel()
public void startExecuting()
startExecuting in class Goalprivate void moveToNextTarget()
private float getRandomOffset()
private java.util.Optional<BlockPos> getFlower()
private java.util.Optional<BlockPos> findFlower(java.util.function.Predicate<BlockState> p_226500_1_, double distance)