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
FieldsModifier and TypeFieldDescriptionprivate static doubleprivate static floatprivate static floatprivate Vec3private intprivate static intprivate static intprivate static intprivate static intprivate booleanprivate intprivate static intprivate static floatprivate intprivate Predicate<BlockState> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfindNearestBlock(Predicate<BlockState> p_28076_, double p_28077_)private floatprivate boolean(package private) booleanprivate voidvoidstart()voidstop()(package private) voidvoidtick()Methods inherited from class net.minecraft.world.entity.animal.Bee.BaseBeeGoal
canContinueToUse, canUseMethods 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:
canBeeUsein classBee.BaseBeeGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()- Specified by:
canBeeContinueToUsein 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
-