Package net.minecraft.entity.passive
Class BeeEntity.FindBeehiveGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.passive.BeeEntity.PassiveGoal
-
- net.minecraft.entity.passive.BeeEntity.FindBeehiveGoal
-
- Enclosing class:
- BeeEntity
public class BeeEntity.FindBeehiveGoal extends BeeEntity.PassiveGoal
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<BlockPos>
blacklistedTargets
private Path
lastPath
private int
ticksStuck
private int
travellingTicks
-
Constructor Summary
Constructors Constructor Description FindBeehiveGoal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
blacklistTarget(BlockPos p_226475_1_)
boolean
canBeeContinueToUse()
boolean
canBeeUse()
private void
clearBlacklist()
private void
dropAndBlacklistHive()
private void
dropHive()
private boolean
hasReachedTarget(BlockPos p_226476_1_)
private boolean
isTargetBlacklisted(BlockPos p_226473_1_)
private boolean
pathfindDirectlyTowards(BlockPos p_226472_1_)
void
start()
void
stop()
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
-
-
-
-
Method Detail
-
canBeeUse
public boolean canBeeUse()
- Specified by:
canBeeUse
in classBeeEntity.PassiveGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()
- Specified by:
canBeeContinueToUse
in classBeeEntity.PassiveGoal
-
pathfindDirectlyTowards
private boolean pathfindDirectlyTowards(BlockPos p_226472_1_)
-
isTargetBlacklisted
private boolean isTargetBlacklisted(BlockPos p_226473_1_)
-
blacklistTarget
private void blacklistTarget(BlockPos p_226475_1_)
-
clearBlacklist
private void clearBlacklist()
-
dropAndBlacklistHive
private void dropAndBlacklistHive()
-
dropHive
private void dropHive()
-
hasReachedTarget
private boolean hasReachedTarget(BlockPos p_226476_1_)
-
-