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 double
private static float
private static float
private Vec3
private int
private static int
private static int
private static int
private static int
private boolean
private int
private static int
private static float
private int
private 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
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
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
MIN_POLLINATION_TICKS
private static final int MIN_POLLINATION_TICKS- See Also:
- Constant Field Values
-
MIN_FIND_FLOWER_RETRY_COOLDOWN
private static final int MIN_FIND_FLOWER_RETRY_COOLDOWN- See Also:
- Constant Field Values
-
MAX_FIND_FLOWER_RETRY_COOLDOWN
private static final int MAX_FIND_FLOWER_RETRY_COOLDOWN- See Also:
- Constant Field Values
-
VALID_POLLINATION_BLOCKS
-
ARRIVAL_THRESHOLD
private static final double ARRIVAL_THRESHOLD- See Also:
- Constant Field Values
-
POSITION_CHANGE_CHANCE
private static final int POSITION_CHANGE_CHANCE- See Also:
- Constant Field Values
-
SPEED_MODIFIER
private static final float SPEED_MODIFIER- See Also:
- Constant Field Values
-
HOVER_HEIGHT_WITHIN_FLOWER
private static final float HOVER_HEIGHT_WITHIN_FLOWER- See Also:
- Constant Field Values
-
HOVER_POS_OFFSET
private static final float HOVER_POS_OFFSET- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
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() -
tick
public void tick() -
setWantedPos
private void setWantedPos() -
getOffset
private float getOffset() -
findNearbyFlower
-
findNearestBlock
-