Class Bee.BeePollinateGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Bee.BaseBeeGoal
net.minecraft.world.entity.animal.Bee.BeePollinateGoal
- Enclosing class:
Bee
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private static final float
private static final float
private Vec3
private int
private static final int
private static final int
private static final int
private static final int
private boolean
private int
private static final int
private static final float
private int
private final Predicate
<BlockState> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
findNearestBlock
(Predicate<BlockState> p_28076_, double p_28077_) private float
private boolean
(package private) boolean
boolean
private void
void
start()
void
stop()
(package private) void
void
tick()
Methods inherited from class net.minecraft.world.entity.animal.Bee.BaseBeeGoal
canContinueToUse, canUse
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Field Details
-
MIN_POLLINATION_TICKS
private static final int MIN_POLLINATION_TICKS- See Also:
-
MIN_FIND_FLOWER_RETRY_COOLDOWN
private static final int MIN_FIND_FLOWER_RETRY_COOLDOWN- See Also:
-
MAX_FIND_FLOWER_RETRY_COOLDOWN
private static final int MAX_FIND_FLOWER_RETRY_COOLDOWN- See Also:
-
VALID_POLLINATION_BLOCKS
-
ARRIVAL_THRESHOLD
private static final double ARRIVAL_THRESHOLD- See Also:
-
POSITION_CHANGE_CHANCE
private static final int POSITION_CHANGE_CHANCE- See Also:
-
SPEED_MODIFIER
private static final float SPEED_MODIFIER- See Also:
-
HOVER_HEIGHT_WITHIN_FLOWER
private static final float HOVER_HEIGHT_WITHIN_FLOWER- See Also:
-
HOVER_POS_OFFSET
private static final float HOVER_POS_OFFSET- See Also:
-
successfulPollinatingTicks
private int successfulPollinatingTicks -
lastSoundPlayedTick
private int lastSoundPlayedTick -
pollinating
private boolean pollinating -
hoverPos
-
pollinatingTicks
private int pollinatingTicks -
MAX_POLLINATING_TICKS
private static final int MAX_POLLINATING_TICKS- See Also:
-
-
Constructor Details
-
BeePollinateGoal
BeePollinateGoal()
-
-
Method Details
-
canBeeUse
public boolean canBeeUse()- Specified by:
canBeeUse
in classBee.BaseBeeGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()- Specified by:
canBeeContinueToUse
in classBee.BaseBeeGoal
-
hasPollinatedLongEnough
private boolean hasPollinatedLongEnough() -
isPollinating
boolean isPollinating() -
stopPollinating
void stopPollinating() -
start
public void start() -
stop
public void stop() -
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTick
in classGoal
-
tick
public void tick() -
setWantedPos
private void setWantedPos() -
getOffset
private float getOffset() -
findNearbyFlower
-
findNearestBlock
-