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>blacklistedTargetsprivate PathlastPathprivate intticksStuckprivate inttravellingTicks
-
Constructor Summary
Constructors Constructor Description FindBeehiveGoal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidblacklistTarget(BlockPos p_226475_1_)booleancanBeeContinueToUse()booleancanBeeUse()private voidclearBlacklist()private voiddropAndBlacklistHive()private voiddropHive()private booleanhasReachedTarget(BlockPos p_226476_1_)private booleanisTargetBlacklisted(BlockPos p_226473_1_)private booleanpathfindDirectlyTowards(BlockPos p_226472_1_)voidstart()voidstop()voidtick()-
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:
canBeeUsein classBeeEntity.PassiveGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()
- Specified by:
canBeeContinueToUsein 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_)
-
-