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
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
blacklistTarget
(BlockPos p_226475_1_) boolean
boolean
private void
private void
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
-
Field Details
-
travellingTicks
private int travellingTicks -
blacklistedTargets
-
lastPath
-
ticksStuck
private int ticksStuck
-
-
Constructor Details
-
FindBeehiveGoal
FindBeehiveGoal()
-
-
Method Details
-
canBeeUse
public boolean canBeeUse()- Specified by:
canBeeUse
in classBeeEntity.PassiveGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()- Specified by:
canBeeContinueToUse
in classBeeEntity.PassiveGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
pathfindDirectlyTowards
-
isTargetBlacklisted
-
blacklistTarget
-
clearBlacklist
private void clearBlacklist() -
dropAndBlacklistHive
private void dropAndBlacklistHive() -
dropHive
private void dropHive() -
hasReachedTarget
-