Package net.minecraft.entity.passive
Class BeeEntity.PollinateGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.BeeEntity.PassiveGoal
net.minecraft.entity.passive.BeeEntity.PollinateGoal
- Enclosing class:
- BeeEntity
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Vector3d
private int
private boolean
private int
private int
private final Predicate<BlockState>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
findNearestBlock
(Predicate<BlockState> p_226500_1_, double p_226500_2_) private float
private boolean
private boolean
private void
void
start()
void
stop()
private void
void
tick()
Methods inherited from class net.minecraft.entity.passive.BeeEntity.PassiveGoal
canContinueToUse, canUse
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
VALID_POLLINATION_BLOCKS
-
successfulPollinatingTicks
private int successfulPollinatingTicks -
lastSoundPlayedTick
private int lastSoundPlayedTick -
pollinating
private boolean pollinating -
hoverPos
-
pollinatingTicks
private int pollinatingTicks
-
-
Constructor Details
-
PollinateGoal
PollinateGoal()
-
-
Method Details
-
canBeeUse
public boolean canBeeUse()- Specified by:
canBeeUse
in classBeeEntity.PassiveGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()- Specified by:
canBeeContinueToUse
in classBeeEntity.PassiveGoal
-
hasPollinatedLongEnough
private boolean hasPollinatedLongEnough() -
isPollinating
private boolean isPollinating() -
stopPollinating
private void stopPollinating() -
start
public void start() -
stop
public void stop() -
tick
public void tick() -
setWantedPos
private void setWantedPos() -
getOffset
private float getOffset() -
findNearbyFlower
-
findNearestBlock
-